public class ContraptionInteractionPacket extends SimplePacketBase
| Constructor and Description |
|---|
ContraptionInteractionPacket(AbstractContraptionEntity target,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockPos localPos,
net.minecraft.util.Direction side) |
ContraptionInteractionPacket(net.minecraft.network.PacketBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(java.util.function.Supplier<net.minecraftforge.fml.network.NetworkEvent.Context> context) |
void |
write(net.minecraft.network.PacketBuffer buffer) |
public ContraptionInteractionPacket(AbstractContraptionEntity target, net.minecraft.util.Hand hand, net.minecraft.util.math.BlockPos localPos, net.minecraft.util.Direction side)
public ContraptionInteractionPacket(net.minecraft.network.PacketBuffer buffer)
public void write(net.minecraft.network.PacketBuffer buffer)
write in class SimplePacketBasepublic void handle(java.util.function.Supplier<net.minecraftforge.fml.network.NetworkEvent.Context> context)
handle in class SimplePacketBase