Class JigsawBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/JigsawBlockEntityintermediary net/minecraft/class_3751official dzg
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RegistryKey<StructurePool>> static final Identifierstatic final Stringprivate static final intprivate static final intstatic final Stringprivate Stringprivate JigsawBlockEntity.Jointstatic final Stringprivate Identifierstatic final Stringstatic final Stringprivate intprivate RegistryKey<StructurePool> static final Stringstatic final Stringprivate intprivate Identifierstatic final StringFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(ServerWorld world, int maxDepth, boolean keepJigsaws) getJoint()getName()intgetPool()intprotected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt.voidsetFinalState(String finalState) voidsetJoint(JigsawBlockEntity.Joint joint) voidsetName(Identifier name) voidsetPlacementPriority(int placementPriority) voidsetPool(RegistryKey<StructurePool> pool) voidsetSelectionPriority(int selectionPriority) voidsetTarget(Identifier target) toInitialChunkDataNbt(RegistryWrapper.WrapperLookup registries) Returns the serialized state of this block entity that is observable by clients.Returns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.protected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setWorld, supports, tryParseCustomName, writeIdToNbt
-
Field Details
-
field_57779
- Mappings:
Namespace Name Mixin selector named field_57779Lnet/minecraft/block/entity/JigsawBlockEntity;field_57779:Lcom/mojang/serialization/Codec;intermediary field_57779Lnet/minecraft/class_3751;field_57779:Lcom/mojang/serialization/Codec;official aLdzg;a:Lcom/mojang/serialization/Codec;
-
field_57780
- Mappings:
Namespace Name Mixin selector named field_57780Lnet/minecraft/block/entity/JigsawBlockEntity;field_57780:Lnet/minecraft/util/Identifier;intermediary field_57780Lnet/minecraft/class_3751;field_57780:Lnet/minecraft/class_2960;official bLdzg;b:Lali;
-
field_57782
private static final int field_57782- See Also:
- Mappings:
Namespace Name Mixin selector named field_57782Lnet/minecraft/block/entity/JigsawBlockEntity;field_57782:Iintermediary field_57782Lnet/minecraft/class_3751;field_57782:Iofficial kLdzg;k:I
-
field_57783
private static final int field_57783- See Also:
- Mappings:
Namespace Name Mixin selector named field_57783Lnet/minecraft/block/entity/JigsawBlockEntity;field_57783:Iintermediary field_57783Lnet/minecraft/class_3751;field_57783:Iofficial lLdzg;l:I
-
TARGET_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named TARGET_KEYLnet/minecraft/block/entity/JigsawBlockEntity;TARGET_KEY:Ljava/lang/String;intermediary field_31343Lnet/minecraft/class_3751;field_31343:Ljava/lang/String;official cLdzg;c:Ljava/lang/String;
-
POOL_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named POOL_KEYLnet/minecraft/block/entity/JigsawBlockEntity;POOL_KEY:Ljava/lang/String;intermediary field_31344Lnet/minecraft/class_3751;field_31344:Ljava/lang/String;official dLdzg;d:Ljava/lang/String;
-
JOINT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named JOINT_KEYLnet/minecraft/block/entity/JigsawBlockEntity;JOINT_KEY:Ljava/lang/String;intermediary field_31345Lnet/minecraft/class_3751;field_31345:Ljava/lang/String;official eLdzg;e:Ljava/lang/String;
-
PLACEMENT_PRIORITY_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named PLACEMENT_PRIORITY_KEYLnet/minecraft/block/entity/JigsawBlockEntity;PLACEMENT_PRIORITY_KEY:Ljava/lang/String;intermediary field_47096Lnet/minecraft/class_3751;field_47096:Ljava/lang/String;official fLdzg;f:Ljava/lang/String;
-
SELECTION_PRIORITY_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SELECTION_PRIORITY_KEYLnet/minecraft/block/entity/JigsawBlockEntity;SELECTION_PRIORITY_KEY:Ljava/lang/String;intermediary field_47097Lnet/minecraft/class_3751;field_47097:Ljava/lang/String;official gLdzg;g:Ljava/lang/String;
-
NAME_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named NAME_KEYLnet/minecraft/block/entity/JigsawBlockEntity;NAME_KEY:Ljava/lang/String;intermediary field_31346Lnet/minecraft/class_3751;field_31346:Ljava/lang/String;official hLdzg;h:Ljava/lang/String;
-
FINAL_STATE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FINAL_STATE_KEYLnet/minecraft/block/entity/JigsawBlockEntity;FINAL_STATE_KEY:Ljava/lang/String;intermediary field_31347Lnet/minecraft/class_3751;field_31347:Ljava/lang/String;official iLdzg;i:Ljava/lang/String;
-
field_57781
- See Also:
- Mappings:
Namespace Name Mixin selector named field_57781Lnet/minecraft/block/entity/JigsawBlockEntity;field_57781:Ljava/lang/String;intermediary field_57781Lnet/minecraft/class_3751;field_57781:Ljava/lang/String;official jLdzg;j:Ljava/lang/String;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/block/entity/JigsawBlockEntity;name:Lnet/minecraft/util/Identifier;intermediary field_16550Lnet/minecraft/class_3751;field_16550:Lnet/minecraft/class_2960;official mLdzg;m:Lali;
-
target
- Mappings:
Namespace Name Mixin selector named targetLnet/minecraft/block/entity/JigsawBlockEntity;target:Lnet/minecraft/util/Identifier;intermediary field_16552Lnet/minecraft/class_3751;field_16552:Lnet/minecraft/class_2960;official qLdzg;q:Lali;
-
pool
- Mappings:
Namespace Name Mixin selector named poolLnet/minecraft/block/entity/JigsawBlockEntity;pool:Lnet/minecraft/registry/RegistryKey;intermediary field_23327Lnet/minecraft/class_3751;field_23327:Lnet/minecraft/class_5321;official rLdzg;r:Lalh;
-
joint
- Mappings:
Namespace Name Mixin selector named jointLnet/minecraft/block/entity/JigsawBlockEntity;joint:Lnet/minecraft/block/entity/JigsawBlockEntity$Joint;intermediary field_23328Lnet/minecraft/class_3751;field_23328:Lnet/minecraft/class_3751$class_4991;official sLdzg;s:Ldzg$a;
-
finalState
- Mappings:
Namespace Name Mixin selector named finalStateLnet/minecraft/block/entity/JigsawBlockEntity;finalState:Ljava/lang/String;intermediary field_16551Lnet/minecraft/class_3751;field_16551:Ljava/lang/String;official tLdzg;t:Ljava/lang/String;
-
placementPriority
private int placementPriority- Mappings:
Namespace Name Mixin selector named placementPriorityLnet/minecraft/block/entity/JigsawBlockEntity;placementPriority:Iintermediary field_47098Lnet/minecraft/class_3751;field_47098:Iofficial uLdzg;u:I
-
selectionPriority
private int selectionPriority- Mappings:
Namespace Name Mixin selector named selectionPriorityLnet/minecraft/block/entity/JigsawBlockEntity;selectionPriority:Iintermediary field_47099Lnet/minecraft/class_3751;field_47099:Iofficial vLdzg;v:I
-
-
Constructor Details
-
JigsawBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/JigsawBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_3751;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldzg;<init>(Liv;Lebe;)V
-
-
Method Details
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/block/entity/JigsawBlockEntity;getName()Lnet/minecraft/util/Identifier;intermediary method_16381Lnet/minecraft/class_3751;method_16381()Lnet/minecraft/class_2960;official aLdzg;a()Lali;
-
getTarget
- Mappings:
Namespace Name Mixin selector named getTargetLnet/minecraft/block/entity/JigsawBlockEntity;getTarget()Lnet/minecraft/util/Identifier;intermediary method_26399Lnet/minecraft/class_3751;method_26399()Lnet/minecraft/class_2960;official cLdzg;c()Lali;
-
getPool
- Mappings:
Namespace Name Mixin selector named getPoolLnet/minecraft/block/entity/JigsawBlockEntity;getPool()Lnet/minecraft/registry/RegistryKey;intermediary method_16382Lnet/minecraft/class_3751;method_16382()Lnet/minecraft/class_5321;official dLdzg;d()Lalh;
-
getFinalState
- Mappings:
Namespace Name Mixin selector named getFinalStateLnet/minecraft/block/entity/JigsawBlockEntity;getFinalState()Ljava/lang/String;intermediary method_16380Lnet/minecraft/class_3751;method_16380()Ljava/lang/String;official fLdzg;f()Ljava/lang/String;
-
getJoint
- Mappings:
Namespace Name Mixin selector named getJointLnet/minecraft/block/entity/JigsawBlockEntity;getJoint()Lnet/minecraft/block/entity/JigsawBlockEntity$Joint;intermediary method_26400Lnet/minecraft/class_3751;method_26400()Lnet/minecraft/class_3751$class_4991;official jLdzg;j()Ldzg$a;
-
getPlacementPriority
public int getPlacementPriority()- Mappings:
Namespace Name Mixin selector named getPlacementPriorityLnet/minecraft/block/entity/JigsawBlockEntity;getPlacementPriority()Iintermediary method_54777Lnet/minecraft/class_3751;method_54777()Iofficial kLdzg;k()I
-
getSelectionPriority
public int getSelectionPriority()- Mappings:
Namespace Name Mixin selector named getSelectionPriorityLnet/minecraft/block/entity/JigsawBlockEntity;getSelectionPriority()Iintermediary method_54778Lnet/minecraft/class_3751;method_54778()Iofficial sLdzg;s()I
-
setName
- Mappings:
Namespace Name Mixin selector named setNameLnet/minecraft/block/entity/JigsawBlockEntity;setName(Lnet/minecraft/util/Identifier;)Vintermediary method_16379Lnet/minecraft/class_3751;method_16379(Lnet/minecraft/class_2960;)Vofficial aLdzg;a(Lali;)V
-
setTarget
- Mappings:
Namespace Name Mixin selector named setTargetLnet/minecraft/block/entity/JigsawBlockEntity;setTarget(Lnet/minecraft/util/Identifier;)Vintermediary method_16378Lnet/minecraft/class_3751;method_16378(Lnet/minecraft/class_2960;)Vofficial bLdzg;b(Lali;)V
-
setPool
- Mappings:
Namespace Name Mixin selector named setPoolLnet/minecraft/block/entity/JigsawBlockEntity;setPool(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_26398Lnet/minecraft/class_3751;method_26398(Lnet/minecraft/class_5321;)Vofficial aLdzg;a(Lalh;)V
-
setFinalState
- Mappings:
Namespace Name Mixin selector named setFinalStateLnet/minecraft/block/entity/JigsawBlockEntity;setFinalState(Ljava/lang/String;)Vintermediary method_16377Lnet/minecraft/class_3751;method_16377(Ljava/lang/String;)Vofficial aLdzg;a(Ljava/lang/String;)V
-
setJoint
- Mappings:
Namespace Name Mixin selector named setJointLnet/minecraft/block/entity/JigsawBlockEntity;setJoint(Lnet/minecraft/block/entity/JigsawBlockEntity$Joint;)Vintermediary method_26396Lnet/minecraft/class_3751;method_26396(Lnet/minecraft/class_3751$class_4991;)Vofficial aLdzg;a(Ldzg$a;)V
-
setPlacementPriority
public void setPlacementPriority(int placementPriority) - Mappings:
Namespace Name Mixin selector named setPlacementPriorityLnet/minecraft/block/entity/JigsawBlockEntity;setPlacementPriority(I)Vintermediary method_54775Lnet/minecraft/class_3751;method_54775(I)Vofficial aLdzg;a(I)V
-
setSelectionPriority
public void setSelectionPriority(int selectionPriority) - Mappings:
Namespace Name Mixin selector named setSelectionPriorityLnet/minecraft/block/entity/JigsawBlockEntity;setSelectionPriority(I)Vintermediary method_54776Lnet/minecraft/class_3751;method_54776(I)Vofficial bLdzg;b(I)V
-
writeNbt
Writes data tonbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdyc;b(Ltz;Ljh$a;)V
-
readNbt
Reads data fromnbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLdyc;a(Ltz;Ljh$a;)V
-
toUpdatePacket
Description copied from class:BlockEntityReturns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.If the data returned by
initial chunk datais suitable for updates, the following shortcut can be used to create an update packet:BlockEntityUpdateS2CPacket.create(this). The NBT will be passed toBlockEntity.readNbt(net.minecraft.nbt.NbtCompound, net.minecraft.registry.RegistryWrapper.WrapperLookup)on the client."Observable state" is a state that clients can observe without specific interaction. For example,
CampfireBlockEntity's cooked items are observable states, but chests' inventories are not observable states, since the player must first open that chest before they can see the contents.To sync block entity data using this method, use
serverWorld.getChunkManager().markForUpdate(this.getPos());.- Overrides:
toUpdatePacketin classBlockEntity- Returns:
- the packet to send to nearby players when the block entity's observable
state changes, or
nullto not send the packet - See Also:
- Mappings:
Namespace Name Mixin selector named toUpdatePacketLnet/minecraft/block/entity/JigsawBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_38248Lnet/minecraft/class_3751;method_38248()Lnet/minecraft/class_2622;official tLdzg;t()Lacc;
-
toInitialChunkDataNbt
Returns the serialized state of this block entity that is observable by clients.This is sent alongside the initial chunk data, as well as when the block entity implements
toUpdatePacket()and decides to use the defaultBlockEntityUpdateS2CPacket."Observable state" is a state that clients can observe without specific interaction. For example,
CampfireBlockEntity's cooked items are observable states, but chests' inventories are not observable states, since the player must first open that chest before they can see the contents.To send all NBT data of this block entity saved to disk, return
BlockEntity.createNbt(net.minecraft.registry.RegistryWrapper.WrapperLookup).- Overrides:
toInitialChunkDataNbtin classBlockEntity- Returns:
- the serialized state of this block entity that is observable by clients
- See Also:
- Mappings:
Namespace Name Mixin selector named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;intermediary method_16887Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;official aLdyc;a(Ljh$a;)Ltz;
-
generate
- Mappings:
Namespace Name Mixin selector named generateLnet/minecraft/block/entity/JigsawBlockEntity;generate(Lnet/minecraft/server/world/ServerWorld;IZ)Vintermediary method_27191Lnet/minecraft/class_3751;method_27191(Lnet/minecraft/class_3218;IZ)Vofficial aLdzg;a(Lars;IZ)V
-