public class UpdateStructureBlockC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private StructureBlockBlockEntity.Action |
action |
private boolean |
ignoreEntities |
private float |
integrity |
private String |
metadata |
private BlockMirror |
mirror |
private StructureBlockMode |
mode |
private BlockPos |
offset |
private BlockPos |
pos |
private BlockRotation |
rotation |
private long |
seed |
private boolean |
showAir |
private boolean |
showBoundingBox |
private BlockPos |
size |
private String |
structureName |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
StructureBlockBlockEntity.Action |
getAction() |
boolean |
getIgnoreEntities() |
float |
getIntegrity() |
String |
getMetadata() |
BlockMirror |
getMirror() |
StructureBlockMode |
getMode() |
BlockPos |
getOffset() |
BlockPos |
getPos() |
BlockRotation |
getRotation() |
long |
getSeed() |
BlockPos |
getSize() |
String |
getStructureName() |
void |
read(PacketByteBuf buf) |
boolean |
shouldShowAir() |
boolean |
shouldShowBoundingBox() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private BlockPos pos
private StructureBlockBlockEntity.Action action
private StructureBlockMode mode
private String structureName
private BlockPos offset
private BlockPos size
private BlockMirror mirror
private BlockRotation rotation
private String metadata
private boolean ignoreEntities
private boolean showAir
private boolean showBoundingBox
private float integrity
private long seed
public UpdateStructureBlockC2SPacket()
@Environment(value=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)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public BlockPos getPos()
public StructureBlockBlockEntity.Action getAction()
public StructureBlockMode getMode()
public String getStructureName()
public BlockPos getOffset()
public BlockPos getSize()
public BlockMirror getMirror()
public BlockRotation getRotation()
public String getMetadata()
public boolean getIgnoreEntities()
public boolean shouldShowAir()
public boolean shouldShowBoundingBox()
public float getIntegrity()
public long getSeed()