Skip to content

Commit

Permalink
Moved PrinterPlacementContext into implementation/ as it now varies o…
Browse files Browse the repository at this point in the history
…n each implementation and synchronized implementations
  • Loading branch information
aleksilassila committed Apr 18, 2023
1 parent 0931cf5 commit 89547fb
Show file tree
Hide file tree
Showing 50 changed files with 50 additions and 108 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_17.actions;

import me.aleksilassila.litematica.printer.v1_17.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.util.Hand;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_17.actions;

import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_17.guides.interaction;

import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_17.actions.Action;
import me.aleksilassila.litematica.printer.v1_17.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_17.guides.placement;

import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.SchematicBlockState;
import net.minecraft.block.CandleBlock;
import net.minecraft.block.SeaPickleBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_17.guides.placement;

import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.SchematicBlockState;
import net.minecraft.block.SlabBlock;
import net.minecraft.block.enums.SlabType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_17.guides.placement;

import me.aleksilassila.litematica.printer.v1_17.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.SchematicBlockState;
import net.minecraft.block.BlockState;
import net.minecraft.block.ChestBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_17.guides.placement;

import me.aleksilassila.litematica.printer.v1_17.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_17.actions.Action;
import me.aleksilassila.litematica.printer.v1_17.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_17.guides.placement;

import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_17.actions.Action;
import me.aleksilassila.litematica.printer.v1_17.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.aleksilassila.litematica.printer.v1_17;
package me.aleksilassila.litematica.printer.v1_17.implementation;

import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemPlacementContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_17.implementation.actions;

import me.aleksilassila.litematica.printer.v1_17.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_17.actions.InteractAction;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_18.actions;

import me.aleksilassila.litematica.printer.v1_18.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.util.Hand;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_18.actions;

import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_18.guides.interaction;

import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_18.actions.Action;
import me.aleksilassila.litematica.printer.v1_18.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_18.guides.placement;

import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.SchematicBlockState;
import net.minecraft.block.CandleBlock;
import net.minecraft.block.SeaPickleBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_18.guides.placement;

import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.SchematicBlockState;
import net.minecraft.block.SlabBlock;
import net.minecraft.block.enums.SlabType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_18.guides.placement;

import me.aleksilassila.litematica.printer.v1_18.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.SchematicBlockState;
import net.minecraft.block.BlockState;
import net.minecraft.block.ChestBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_18.guides.placement;

import me.aleksilassila.litematica.printer.v1_18.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_18.actions.Action;
import me.aleksilassila.litematica.printer.v1_18.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_18.guides.placement;

import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_18.actions.Action;
import me.aleksilassila.litematica.printer.v1_18.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.aleksilassila.litematica.printer.v1_18;
package me.aleksilassila.litematica.printer.v1_18.implementation;

import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemPlacementContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_18.implementation.actions;

import me.aleksilassila.litematica.printer.v1_18.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_18.actions.InteractAction;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_19.actions;

import me.aleksilassila.litematica.printer.v1_19.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.util.Hand;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19.actions;

import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19.guides.interaction;

import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_19.actions.Action;
import me.aleksilassila.litematica.printer.v1_19.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19.guides.placement;

import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.SchematicBlockState;
import net.minecraft.block.CandleBlock;
import net.minecraft.block.SeaPickleBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19.guides.placement;

import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.SchematicBlockState;
import net.minecraft.block.SlabBlock;
import net.minecraft.block.enums.SlabType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_19.guides.placement;

import me.aleksilassila.litematica.printer.v1_19.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.SchematicBlockState;
import net.minecraft.block.BlockState;
import net.minecraft.block.ChestBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_19.guides.placement;

import me.aleksilassila.litematica.printer.v1_19.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_19.actions.Action;
import me.aleksilassila.litematica.printer.v1_19.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19.guides.placement;

import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_19.actions.Action;
import me.aleksilassila.litematica.printer.v1_19.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.aleksilassila.litematica.printer.v1_19;
package me.aleksilassila.litematica.printer.v1_19.implementation;

import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemPlacementContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19.implementation.actions;

import me.aleksilassila.litematica.printer.v1_19.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19.actions.InteractAction;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_19_3.actions;

import me.aleksilassila.litematica.printer.v1_19_3.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.util.Hand;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19_3.actions;

import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19_3.guides.interaction;

import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_19_3.actions.Action;
import me.aleksilassila.litematica.printer.v1_19_3.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19_3.guides.placement;

import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.SchematicBlockState;
import net.minecraft.block.CandleBlock;
import net.minecraft.block.SeaPickleBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19_3.guides.placement;

import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.SchematicBlockState;
import net.minecraft.block.SlabBlock;
import net.minecraft.block.enums.SlabType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_19_3.guides.placement;

import me.aleksilassila.litematica.printer.v1_19_3.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.SchematicBlockState;
import net.minecraft.block.BlockState;
import net.minecraft.block.ChestBlock;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.aleksilassila.litematica.printer.v1_19_3.guides.placement;

import me.aleksilassila.litematica.printer.v1_19_3.LitematicaMixinMod;
import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_19_3.actions.Action;
import me.aleksilassila.litematica.printer.v1_19_3.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19_3.guides.placement;

import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.SchematicBlockState;
import me.aleksilassila.litematica.printer.v1_19_3.actions.Action;
import me.aleksilassila.litematica.printer.v1_19_3.actions.PrepareAction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.aleksilassila.litematica.printer.v1_19_3;
package me.aleksilassila.litematica.printer.v1_19_3.implementation;

import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemPlacementContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.aleksilassila.litematica.printer.v1_19_3.implementation.actions;

import me.aleksilassila.litematica.printer.v1_19_3.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.implementation.PrinterPlacementContext;
import me.aleksilassila.litematica.printer.v1_19_3.actions.InteractAction;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ public class UpdateChecker {
// }
// }

@SuppressWarnings("deprecation")
public static String getPrinterVersion() {
try (InputStream inputStream = new URL("https://api.github.com/repos/aleksilassila/litematica-printer/tags").openStream(); Scanner scanner = new Scanner(inputStream)) {
if (scanner.hasNext()) {
JsonArray tags = JsonParser.parseString(scanner.next()).getAsJsonArray();
JsonArray tags = new JsonParser().parse(scanner.next()).getAsJsonArray();
return ((JsonObject) tags.get(0)).get("name").getAsString();
}
} catch (Exception exception) {
Expand Down
Loading

0 comments on commit 89547fb

Please sign in to comment.