From 2e67df209743e5e2101aec9a38fca2d2b09b9bad Mon Sep 17 00:00:00 2001 From: Esoteric Enderman Date: Tue, 29 Oct 2024 12:10:02 +0000 Subject: [PATCH] Use class in dependency --- run/server.properties | 2 +- .../multiblocks/AbstractCustomMultiblock.java | 2 +- .../multiblocks/StoredCustomMultiblock.java | 2 +- .../template/util/types/BlockLocation.java | 45 ------------------- 4 files changed, 3 insertions(+), 48 deletions(-) delete mode 100644 src/main/java/org/esoteric/minecraft/plugins/template/util/types/BlockLocation.java diff --git a/run/server.properties b/run/server.properties index 61aa5afc..55a8c89a 100644 --- a/run/server.properties +++ b/run/server.properties @@ -1,5 +1,5 @@ #Minecraft server properties -#Fri Oct 11 17:09:35 IST 2024 +#Tue Oct 29 12:06:55 GMT 2024 accepts-transfers=false allow-flight=false allow-nether=true diff --git a/src/main/java/org/esoteric/minecraft/plugins/template/custom/multiblocks/AbstractCustomMultiblock.java b/src/main/java/org/esoteric/minecraft/plugins/template/custom/multiblocks/AbstractCustomMultiblock.java index 53af0991..06c79a78 100644 --- a/src/main/java/org/esoteric/minecraft/plugins/template/custom/multiblocks/AbstractCustomMultiblock.java +++ b/src/main/java/org/esoteric/minecraft/plugins/template/custom/multiblocks/AbstractCustomMultiblock.java @@ -1,11 +1,11 @@ package org.esoteric.minecraft.plugins.template.custom.multiblocks; +import foundation.esoteric.minecraft.plugins.library.utility.types.BlockLocation; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.block.Block; import org.bukkit.event.Listener; import org.esoteric.minecraft.plugins.template.PaperTemplatePlugin; -import org.esoteric.minecraft.plugins.template.util.types.BlockLocation; import org.jetbrains.annotations.NotNull; import java.util.ArrayList; diff --git a/src/main/java/org/esoteric/minecraft/plugins/template/custom/multiblocks/StoredCustomMultiblock.java b/src/main/java/org/esoteric/minecraft/plugins/template/custom/multiblocks/StoredCustomMultiblock.java index 4684b07c..809c1d3a 100644 --- a/src/main/java/org/esoteric/minecraft/plugins/template/custom/multiblocks/StoredCustomMultiblock.java +++ b/src/main/java/org/esoteric/minecraft/plugins/template/custom/multiblocks/StoredCustomMultiblock.java @@ -1,6 +1,6 @@ package org.esoteric.minecraft.plugins.template.custom.multiblocks; -import org.esoteric.minecraft.plugins.template.util.types.BlockLocation; +import foundation.esoteric.minecraft.plugins.library.utility.types.BlockLocation; import org.jetbrains.annotations.NotNull; import java.util.List; diff --git a/src/main/java/org/esoteric/minecraft/plugins/template/util/types/BlockLocation.java b/src/main/java/org/esoteric/minecraft/plugins/template/util/types/BlockLocation.java deleted file mode 100644 index 90c0937c..00000000 --- a/src/main/java/org/esoteric/minecraft/plugins/template/util/types/BlockLocation.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.esoteric.minecraft.plugins.template.util.types; - -import org.bukkit.Location; -import org.bukkit.block.Block; -import org.jetbrains.annotations.NotNull; - -public class BlockLocation { - - private String worldName; - - private int x; - private int y; - private int z; - - public String getWorldName() { - return worldName; - } - - public int getX() { - return x; - } - - public int getY() { - return y; - } - - public int getZ() { - return z; - } - - public BlockLocation(String worldName, int x, int y, int z) { - this.worldName = worldName; - this.x = x; - this.y = y; - this.z = z; - } - - public BlockLocation(@NotNull Location location) { - this(location.getWorld().getName(), (int) location.getX(), (int) location.getY(), (int) location.getZ()); - } - - public BlockLocation(@NotNull Block block) { - this(block.getLocation()); - } -}