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 String
private static final int
private static final int
private static final int
private final boolean
private final float
private final Mirror
private final StructureMode
private final String
private final BlockPos
private final BlockPos
private final Rotation
private final long
private final boolean
private final boolean
private final Vec3i
static 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()
float
getMode()
getName()
getPos()
long
getSeed()
getSize()
void
handle
(ServerGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.boolean
boolean
boolean
type()
private void
write
(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, wait
Methods 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:
type
in interfacePacket<ServerGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in 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()
-