From 000219a5ff183e469129e5804d0a6090d6b47b26 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sun, 30 Jul 2023 18:12:47 -0400 Subject: 1.7.5 rc4 --- .../hideAndSeek/util/packet/BlockChangePacket.java | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 src/main/java/net/tylermurphy/hideAndSeek/util/packet/BlockChangePacket.java (limited to 'src/main/java/net/tylermurphy/hideAndSeek/util/packet/BlockChangePacket.java') diff --git a/src/main/java/net/tylermurphy/hideAndSeek/util/packet/BlockChangePacket.java b/src/main/java/net/tylermurphy/hideAndSeek/util/packet/BlockChangePacket.java deleted file mode 100644 index 53f3f9c..0000000 --- a/src/main/java/net/tylermurphy/hideAndSeek/util/packet/BlockChangePacket.java +++ /dev/null @@ -1,24 +0,0 @@ -package net.tylermurphy.hideAndSeek.util.packet; - -import com.comphenix.protocol.PacketType; -import com.comphenix.protocol.wrappers.BlockPosition; -import com.comphenix.protocol.wrappers.WrappedBlockData; -import org.bukkit.Location; -import org.bukkit.Material; -import org.jetbrains.annotations.NotNull; - -public class BlockChangePacket extends AbstractPacket { - - public BlockChangePacket(){ - super(PacketType.Play.Server.BLOCK_CHANGE); - } - - public void setBlockPosition(@NotNull Location location){ - super.packet.getBlockPositionModifier().write(0, new BlockPosition(location.toVector())); - } - - public void setMaterial(Material material){ - super.packet.getBlockData().write(0, WrappedBlockData.createData(material)); - } - -} -- cgit v1.2.3-freya