Class ServerboundSetStructureBlockPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundSetStructureBlockPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundSetStructureBlockPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final intprivate static final intprivate static final intprivate final booleanprivate final floatprivate final Mirrorprivate final StructureModeprivate final Stringprivate final BlockPosprivate final BlockPosprivate final Rotationprivate final longprivate final booleanprivate final booleanprivate final Vec3istatic final StreamCodec<FriendlyByteBuf, ServerboundSetStructureBlockPacket> private final StructureBlockEntity.UpdateType -
Constructor Summary
ConstructorsModifierConstructorDescriptionServerboundSetStructureBlockPacket(BlockPos pPos, StructureBlockEntity.UpdateType pUpdateType, StructureMode pMode, String pName, BlockPos pOffset, Vec3i pSize, Mirror pMirror, Rotation pRotation, String pData, boolean pIgnoreEntities, boolean pShowAir, boolean pShowBoundingBox, float pIntegrity, long pSeed) private -
Method Summary
Modifier and TypeMethodDescriptiongetData()floatgetMode()getName()getPos()longgetSeed()getSize()voidhandle(ServerGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.booleanbooleanbooleantype()private voidwrite(FriendlyByteBuf p_134631_) Writes the raw packet data to the data stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
FLAG_IGNORE_ENTITIES
private static final int FLAG_IGNORE_ENTITIES- See Also:
-
FLAG_SHOW_AIR
private static final int FLAG_SHOW_AIR- See Also:
-
FLAG_SHOW_BOUNDING_BOX
private static final int FLAG_SHOW_BOUNDING_BOX- See Also:
-
pos
-
updateType
-
mode
-
name
-
offset
-
size
-
mirror
-
rotation
-
data
-
ignoreEntities
private final boolean ignoreEntities -
showAir
private final boolean showAir -
showBoundingBox
private final boolean showBoundingBox -
integrity
private final float integrity -
seed
private final long seed
-
-
Constructor Details
-
ServerboundSetStructureBlockPacket
public ServerboundSetStructureBlockPacket(BlockPos pPos, StructureBlockEntity.UpdateType pUpdateType, StructureMode pMode, String pName, BlockPos pOffset, Vec3i pSize, Mirror pMirror, Rotation pRotation, String pData, boolean pIgnoreEntities, boolean pShowAir, boolean pShowBoundingBox, float pIntegrity, long pSeed) -
ServerboundSetStructureBlockPacket
-
-
Method Details
-
write
Writes the raw packet data to the data stream. -
type
- Specified by:
typein interfacePacket<ServerGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ServerGamePacketListener>
-
getPos
-
getUpdateType
-
getMode
-
getName
-
getOffset
-
getSize
-
getMirror
-
getRotation
-
getData
-
isIgnoreEntities
public boolean isIgnoreEntities() -
isShowAir
public boolean isShowAir() -
isShowBoundingBox
public boolean isShowBoundingBox() -
getIntegrity
public float getIntegrity() -
getSeed
public long getSeed()
-