Class BlockUsePacketC2S
java.lang.Object
com.binaris.wizardry.core.networking.c2s.BlockUsePacketC2S
- All Implemented Interfaces:
Message
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockUsePacketC2S(net.minecraft.core.BlockPos pos) BlockUsePacketC2S(net.minecraft.network.FriendlyByteBuf pBuf) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(net.minecraft.network.FriendlyByteBuf pBuf) net.minecraft.resources.ResourceLocationgetId()voidhandleServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.binaris.wizardry.core.networking.abst.Message
handleClient
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
BlockUsePacketC2S
public BlockUsePacketC2S(net.minecraft.core.BlockPos pos) -
BlockUsePacketC2S
public BlockUsePacketC2S(net.minecraft.network.FriendlyByteBuf pBuf)
-
-
Method Details
-
getId
public net.minecraft.resources.ResourceLocation getId() -
encode
public void encode(net.minecraft.network.FriendlyByteBuf pBuf) -
handleServer
public void handleServer(net.minecraft.server.MinecraftServer server, net.minecraft.server.level.ServerPlayer player) - Specified by:
handleServerin interfaceMessage
-