Class UpdateStructureBlockC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.UpdateStructureBlockC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class UpdateStructureBlockC2SPacket extends Object implements Packet<ServerPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private StructureBlockBlockEntity.Actionactionprivate booleanignoreEntitiesprivate floatintegrityprivate Stringmetadataprivate BlockMirrormirrorprivate StructureBlockModemodeprivate BlockPosoffsetprivate BlockPosposprivate BlockRotationrotationprivate longseedprivate booleanshowAirprivate booleanshowBoundingBoxprivate BlockPossizeprivate StringstructureName -
Constructor Summary
Constructors Constructor Description UpdateStructureBlockC2SPacket()UpdateStructureBlockC2SPacket(BlockPos pos, StructureBlockBlockEntity.Action action, StructureBlockMode mode, String structureName, BlockPos offset, BlockPos size, BlockMirror mirror, BlockRotation rotation, String metadata, boolean ignoreEntities, boolean showAir, boolean showBoundingBox, float integrity, long seed) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)StructureBlockBlockEntity.ActiongetAction()booleangetIgnoreEntities()floatgetIntegrity()StringgetMetadata()BlockMirrorgetMirror()StructureBlockModegetMode()BlockPosgetOffset()BlockPosgetPos()BlockRotationgetRotation()longgetSeed()BlockPosgetSize()StringgetStructureName()voidread(PacketByteBuf buf)booleanshouldShowAir()booleanshouldShowBoundingBox()voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
pos
-
action
-
mode
-
structureName
-
offset
-
size
-
mirror
-
rotation
-
metadata
-
ignoreEntities
private boolean ignoreEntities -
showAir
private boolean showAir -
showBoundingBox
private boolean showBoundingBox -
integrity
private float integrity -
seed
private long seed
-
-
Constructor Details
-
UpdateStructureBlockC2SPacket
public UpdateStructureBlockC2SPacket() -
UpdateStructureBlockC2SPacket
@Environment(CLIENT) public UpdateStructureBlockC2SPacket(BlockPos pos, StructureBlockBlockEntity.Action action, StructureBlockMode mode, String structureName, BlockPos offset, BlockPos size, BlockMirror mirror, BlockRotation rotation, String metadata, boolean ignoreEntities, boolean showAir, boolean showBoundingBox, float integrity, long seed)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>
-
getPos
-
getAction
-
getMode
-
getStructureName
-
getOffset
-
getSize
-
getMirror
-
getRotation
-
getMetadata
-
getIgnoreEntities
public boolean getIgnoreEntities() -
shouldShowAir
public boolean shouldShowAir() -
shouldShowBoundingBox
public boolean shouldShowBoundingBox() -
getIntegrity
public float getIntegrity() -
getSeed
public long getSeed()
-