aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/re
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-10-18 20:44:43 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-10-18 20:44:43 +0200
commit5404ec638b0b01d68caff7af9763383060de256e (patch)
treea1db3097153e71eb86f3d4577605e8fe85a6b7f6 /src/main/java/re
parentd461f261d9dac104ad93b5baca6a353780db0114 (diff)
downloadparquet-5404ec638b0b01d68caff7af9763383060de256e.tar.gz
moved Dispenser behavior to own package
Diffstat (limited to 'src/main/java/re')
-rw-r--r--src/main/java/re/jag/parquet/Parquet.java8
-rw-r--r--src/main/java/re/jag/parquet/dispenser/BucketDispenserBehavior.java (renamed from src/main/java/re/jag/parquet/BucketDispenserBehavior.java)2
-rw-r--r--src/main/java/re/jag/parquet/dispenser/DyeItemDispenserBehavior.java (renamed from src/main/java/re/jag/parquet/DyeItemDispenserBehavior.java)2
-rw-r--r--src/main/java/re/jag/parquet/dispenser/GlassBottleDispenserBehavior.java (renamed from src/main/java/re/jag/parquet/GlassBottleDispenserBehavior.java)2
-rw-r--r--src/main/java/re/jag/parquet/dispenser/MusicDiscDispenserBehavior.java (renamed from src/main/java/re/jag/parquet/MusicDiscDispenserBehavior.java)2
-rw-r--r--src/main/java/re/jag/parquet/dispenser/PotionDispenserBehavior.java (renamed from src/main/java/re/jag/parquet/PotionDispenserBehavior.java)2
-rw-r--r--src/main/java/re/jag/parquet/dispenser/ShulkerPlacementDispenserBehavior.java (renamed from src/main/java/re/jag/parquet/ShulkerPlacementDispenserBehavior.java)2
-rw-r--r--src/main/java/re/jag/parquet/dispenser/WaterBucketDispenserBehavior.java (renamed from src/main/java/re/jag/parquet/WaterBucketDispenserBehavior.java)2
8 files changed, 9 insertions, 13 deletions
diff --git a/src/main/java/re/jag/parquet/Parquet.java b/src/main/java/re/jag/parquet/Parquet.java
index 123ac23..617faf7 100644
--- a/src/main/java/re/jag/parquet/Parquet.java
+++ b/src/main/java/re/jag/parquet/Parquet.java
@@ -1,10 +1,6 @@
package re.jag.parquet;
import net.minecraft.item.MusicDiscItem;
-import net.minecraft.sound.SoundCategory;
-import net.minecraft.sound.SoundEvent;
-import net.minecraft.sound.SoundEvents;
-import net.minecraft.util.Identifier;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -20,7 +16,7 @@ import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.util.DyeColor;
import re.jag.parquet.commands.*;
-import net.minecraft.util.registry.Registry;
+import re.jag.parquet.dispenser.*;
public class Parquet implements ModInitializer {
public static final Logger LOG = LogManager.getLogger();
@@ -45,7 +41,7 @@ public class Parquet implements ModInitializer {
//refactor CauldronBlock onUse
//This is a rather hacky implementation
- DispenserBlock.registerBehavior(Blocks.SHULKER_BOX.asItem(), new ShulkerPlacementDispenserBehavior());
+ DispenserBlock.registerBehavior(Blocks.SHULKER_BOX.asItem(), new ShulkerPlacementDispenserBehavior());
for (DyeColor dye_color : DyeColor.values()) {
DispenserBlock.registerBehavior(ShulkerBoxBlock.get(dye_color).asItem(), new ShulkerPlacementDispenserBehavior());
diff --git a/src/main/java/re/jag/parquet/BucketDispenserBehavior.java b/src/main/java/re/jag/parquet/dispenser/BucketDispenserBehavior.java
index e4bd88d..ad7a6ca 100644
--- a/src/main/java/re/jag/parquet/BucketDispenserBehavior.java
+++ b/src/main/java/re/jag/parquet/dispenser/BucketDispenserBehavior.java
@@ -1,4 +1,4 @@
-package re.jag.parquet;
+package re.jag.parquet.dispenser;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
diff --git a/src/main/java/re/jag/parquet/DyeItemDispenserBehavior.java b/src/main/java/re/jag/parquet/dispenser/DyeItemDispenserBehavior.java
index 8075914..a62a1c9 100644
--- a/src/main/java/re/jag/parquet/DyeItemDispenserBehavior.java
+++ b/src/main/java/re/jag/parquet/dispenser/DyeItemDispenserBehavior.java
@@ -1,4 +1,4 @@
-package re.jag.parquet;
+package re.jag.parquet.dispenser;
import java.util.List;
diff --git a/src/main/java/re/jag/parquet/GlassBottleDispenserBehavior.java b/src/main/java/re/jag/parquet/dispenser/GlassBottleDispenserBehavior.java
index 30f31cf..a0c5844 100644
--- a/src/main/java/re/jag/parquet/GlassBottleDispenserBehavior.java
+++ b/src/main/java/re/jag/parquet/dispenser/GlassBottleDispenserBehavior.java
@@ -1,4 +1,4 @@
-package re.jag.parquet;
+package re.jag.parquet.dispenser;
import net.minecraft.block.BeehiveBlock;
import net.minecraft.block.Block;
diff --git a/src/main/java/re/jag/parquet/MusicDiscDispenserBehavior.java b/src/main/java/re/jag/parquet/dispenser/MusicDiscDispenserBehavior.java
index 4a64e3a..9d9f109 100644
--- a/src/main/java/re/jag/parquet/MusicDiscDispenserBehavior.java
+++ b/src/main/java/re/jag/parquet/dispenser/MusicDiscDispenserBehavior.java
@@ -1,4 +1,4 @@
-package re.jag.parquet;
+package re.jag.parquet.dispenser;
import net.minecraft.block.*;
import net.minecraft.block.dispenser.FallibleItemDispenserBehavior;
diff --git a/src/main/java/re/jag/parquet/PotionDispenserBehavior.java b/src/main/java/re/jag/parquet/dispenser/PotionDispenserBehavior.java
index 90c4c6b..a31ab3e 100644
--- a/src/main/java/re/jag/parquet/PotionDispenserBehavior.java
+++ b/src/main/java/re/jag/parquet/dispenser/PotionDispenserBehavior.java
@@ -1,4 +1,4 @@
-package re.jag.parquet;
+package re.jag.parquet.dispenser;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
diff --git a/src/main/java/re/jag/parquet/ShulkerPlacementDispenserBehavior.java b/src/main/java/re/jag/parquet/dispenser/ShulkerPlacementDispenserBehavior.java
index dc048b3..42c5f10 100644
--- a/src/main/java/re/jag/parquet/ShulkerPlacementDispenserBehavior.java
+++ b/src/main/java/re/jag/parquet/dispenser/ShulkerPlacementDispenserBehavior.java
@@ -1,4 +1,4 @@
-package re.jag.parquet;
+package re.jag.parquet.dispenser;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
diff --git a/src/main/java/re/jag/parquet/WaterBucketDispenserBehavior.java b/src/main/java/re/jag/parquet/dispenser/WaterBucketDispenserBehavior.java
index 336ffda..d11e1e5 100644
--- a/src/main/java/re/jag/parquet/WaterBucketDispenserBehavior.java
+++ b/src/main/java/re/jag/parquet/dispenser/WaterBucketDispenserBehavior.java
@@ -1,4 +1,4 @@
-package re.jag.parquet;
+package re.jag.parquet.dispenser;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;