Class JigsawBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.JigsawBlockEntity

public class JigsawBlockEntity extends BlockEntity
Mappings:
Namespace Name
named net/minecraft/block/entity/JigsawBlockEntity
intermediary net/minecraft/class_3751
official dvz
  • Field Details

    • TARGET_KEY

      public static final String TARGET_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TARGET_KEY Lnet/minecraft/block/entity/JigsawBlockEntity;TARGET_KEY:Ljava/lang/String;
      intermediary field_31343 Lnet/minecraft/class_3751;field_31343:Ljava/lang/String;
      official a Ldvz;a:Ljava/lang/String;
    • POOL_KEY

      public static final String POOL_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named POOL_KEY Lnet/minecraft/block/entity/JigsawBlockEntity;POOL_KEY:Ljava/lang/String;
      intermediary field_31344 Lnet/minecraft/class_3751;field_31344:Ljava/lang/String;
      official b Ldvz;b:Ljava/lang/String;
    • JOINT_KEY

      public static final String JOINT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named JOINT_KEY Lnet/minecraft/block/entity/JigsawBlockEntity;JOINT_KEY:Ljava/lang/String;
      intermediary field_31345 Lnet/minecraft/class_3751;field_31345:Ljava/lang/String;
      official c Ldvz;c:Ljava/lang/String;
    • PLACEMENT_PRIORITY_KEY

      public static final String PLACEMENT_PRIORITY_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named PLACEMENT_PRIORITY_KEY Lnet/minecraft/block/entity/JigsawBlockEntity;PLACEMENT_PRIORITY_KEY:Ljava/lang/String;
      intermediary field_47096 Lnet/minecraft/class_3751;field_47096:Ljava/lang/String;
      official d Ldvz;d:Ljava/lang/String;
    • SELECTION_PRIORITY_KEY

      public static final String SELECTION_PRIORITY_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SELECTION_PRIORITY_KEY Lnet/minecraft/block/entity/JigsawBlockEntity;SELECTION_PRIORITY_KEY:Ljava/lang/String;
      intermediary field_47097 Lnet/minecraft/class_3751;field_47097:Ljava/lang/String;
      official e Ldvz;e:Ljava/lang/String;
    • NAME_KEY

      public static final String NAME_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named NAME_KEY Lnet/minecraft/block/entity/JigsawBlockEntity;NAME_KEY:Ljava/lang/String;
      intermediary field_31346 Lnet/minecraft/class_3751;field_31346:Ljava/lang/String;
      official f Ldvz;f:Ljava/lang/String;
    • FINAL_STATE_KEY

      public static final String FINAL_STATE_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FINAL_STATE_KEY Lnet/minecraft/block/entity/JigsawBlockEntity;FINAL_STATE_KEY:Ljava/lang/String;
      intermediary field_31347 Lnet/minecraft/class_3751;field_31347:Ljava/lang/String;
      official g Ldvz;g:Ljava/lang/String;
    • name

      private Identifier name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/block/entity/JigsawBlockEntity;name:Lnet/minecraft/util/Identifier;
      intermediary field_16550 Lnet/minecraft/class_3751;field_16550:Lnet/minecraft/class_2960;
      official h Ldvz;h:Lalz;
    • target

      private Identifier target
      Mappings:
      Namespace Name Mixin selector
      named target Lnet/minecraft/block/entity/JigsawBlockEntity;target:Lnet/minecraft/util/Identifier;
      intermediary field_16552 Lnet/minecraft/class_3751;field_16552:Lnet/minecraft/class_2960;
      official i Ldvz;i:Lalz;
    • pool

      private RegistryKey<StructurePool> pool
      Mappings:
      Namespace Name Mixin selector
      named pool Lnet/minecraft/block/entity/JigsawBlockEntity;pool:Lnet/minecraft/registry/RegistryKey;
      intermediary field_23327 Lnet/minecraft/class_3751;field_23327:Lnet/minecraft/class_5321;
      official j Ldvz;j:Laly;
    • joint

      private JigsawBlockEntity.Joint joint
      Mappings:
      Namespace Name Mixin selector
      named joint Lnet/minecraft/block/entity/JigsawBlockEntity;joint:Lnet/minecraft/block/entity/JigsawBlockEntity$Joint;
      intermediary field_23328 Lnet/minecraft/class_3751;field_23328:Lnet/minecraft/class_3751$class_4991;
      official k Ldvz;k:Ldvz$a;
    • finalState

      private String finalState
      Mappings:
      Namespace Name Mixin selector
      named finalState Lnet/minecraft/block/entity/JigsawBlockEntity;finalState:Ljava/lang/String;
      intermediary field_16551 Lnet/minecraft/class_3751;field_16551:Ljava/lang/String;
      official l Ldvz;l:Ljava/lang/String;
    • placementPriority

      private int placementPriority
      Mappings:
      Namespace Name Mixin selector
      named placementPriority Lnet/minecraft/block/entity/JigsawBlockEntity;placementPriority:I
      intermediary field_47098 Lnet/minecraft/class_3751;field_47098:I
      official m Ldvz;m:I
    • selectionPriority

      private int selectionPriority
      Mappings:
      Namespace Name Mixin selector
      named selectionPriority Lnet/minecraft/block/entity/JigsawBlockEntity;selectionPriority:I
      intermediary field_47099 Lnet/minecraft/class_3751;field_47099:I
      official n Ldvz;n:I
  • Constructor Details

    • JigsawBlockEntity

      public JigsawBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/JigsawBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_3751;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Ldvz;<init>(Ljh;Ldxu;)V
  • Method Details

    • getName

      public Identifier getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/block/entity/JigsawBlockEntity;getName()Lnet/minecraft/util/Identifier;
      intermediary method_16381 Lnet/minecraft/class_3751;method_16381()Lnet/minecraft/class_2960;
      official b Ldvz;b()Lalz;
    • getTarget

      public Identifier getTarget()
      Mappings:
      Namespace Name Mixin selector
      named getTarget Lnet/minecraft/block/entity/JigsawBlockEntity;getTarget()Lnet/minecraft/util/Identifier;
      intermediary method_26399 Lnet/minecraft/class_3751;method_26399()Lnet/minecraft/class_2960;
      official c Ldvz;c()Lalz;
    • getPool

      public RegistryKey<StructurePool> getPool()
      Mappings:
      Namespace Name Mixin selector
      named getPool Lnet/minecraft/block/entity/JigsawBlockEntity;getPool()Lnet/minecraft/registry/RegistryKey;
      intermediary method_16382 Lnet/minecraft/class_3751;method_16382()Lnet/minecraft/class_5321;
      official d Ldvz;d()Laly;
    • getFinalState

      public String getFinalState()
      Mappings:
      Namespace Name Mixin selector
      named getFinalState Lnet/minecraft/block/entity/JigsawBlockEntity;getFinalState()Ljava/lang/String;
      intermediary method_16380 Lnet/minecraft/class_3751;method_16380()Ljava/lang/String;
      official f Ldvz;f()Ljava/lang/String;
    • getJoint

      public JigsawBlockEntity.Joint getJoint()
      Mappings:
      Namespace Name Mixin selector
      named getJoint Lnet/minecraft/block/entity/JigsawBlockEntity;getJoint()Lnet/minecraft/block/entity/JigsawBlockEntity$Joint;
      intermediary method_26400 Lnet/minecraft/class_3751;method_26400()Lnet/minecraft/class_3751$class_4991;
      official j Ldvz;j()Ldvz$a;
    • getPlacementPriority

      public int getPlacementPriority()
      Mappings:
      Namespace Name Mixin selector
      named getPlacementPriority Lnet/minecraft/block/entity/JigsawBlockEntity;getPlacementPriority()I
      intermediary method_54777 Lnet/minecraft/class_3751;method_54777()I
      official k Ldvz;k()I
    • getSelectionPriority

      public int getSelectionPriority()
      Mappings:
      Namespace Name Mixin selector
      named getSelectionPriority Lnet/minecraft/block/entity/JigsawBlockEntity;getSelectionPriority()I
      intermediary method_54778 Lnet/minecraft/class_3751;method_54778()I
      official t Ldvz;t()I
    • setName

      public void setName(Identifier name)
      Mappings:
      Namespace Name Mixin selector
      named setName Lnet/minecraft/block/entity/JigsawBlockEntity;setName(Lnet/minecraft/util/Identifier;)V
      intermediary method_16379 Lnet/minecraft/class_3751;method_16379(Lnet/minecraft/class_2960;)V
      official a Ldvz;a(Lalz;)V
    • setTarget

      public void setTarget(Identifier target)
      Mappings:
      Namespace Name Mixin selector
      named setTarget Lnet/minecraft/block/entity/JigsawBlockEntity;setTarget(Lnet/minecraft/util/Identifier;)V
      intermediary method_16378 Lnet/minecraft/class_3751;method_16378(Lnet/minecraft/class_2960;)V
      official b Ldvz;b(Lalz;)V
    • setPool

      public void setPool(RegistryKey<StructurePool> pool)
      Mappings:
      Namespace Name Mixin selector
      named setPool Lnet/minecraft/block/entity/JigsawBlockEntity;setPool(Lnet/minecraft/registry/RegistryKey;)V
      intermediary method_26398 Lnet/minecraft/class_3751;method_26398(Lnet/minecraft/class_5321;)V
      official a Ldvz;a(Laly;)V
    • setFinalState

      public void setFinalState(String finalState)
      Mappings:
      Namespace Name Mixin selector
      named setFinalState Lnet/minecraft/block/entity/JigsawBlockEntity;setFinalState(Ljava/lang/String;)V
      intermediary method_16377 Lnet/minecraft/class_3751;method_16377(Ljava/lang/String;)V
      official a Ldvz;a(Ljava/lang/String;)V
    • setJoint

      public void setJoint(JigsawBlockEntity.Joint joint)
      Mappings:
      Namespace Name Mixin selector
      named setJoint Lnet/minecraft/block/entity/JigsawBlockEntity;setJoint(Lnet/minecraft/block/entity/JigsawBlockEntity$Joint;)V
      intermediary method_26396 Lnet/minecraft/class_3751;method_26396(Lnet/minecraft/class_3751$class_4991;)V
      official a Ldvz;a(Ldvz$a;)V
    • setPlacementPriority

      public void setPlacementPriority(int placementPriority)
      Mappings:
      Namespace Name Mixin selector
      named setPlacementPriority Lnet/minecraft/block/entity/JigsawBlockEntity;setPlacementPriority(I)V
      intermediary method_54775 Lnet/minecraft/class_3751;method_54775(I)V
      official a Ldvz;a(I)V
    • setSelectionPriority

      public void setSelectionPriority(int selectionPriority)
      Mappings:
      Namespace Name Mixin selector
      named setSelectionPriority Lnet/minecraft/block/entity/JigsawBlockEntity;setSelectionPriority(I)V
      intermediary method_54776 Lnet/minecraft/class_3751;method_54776(I)V
      official b Ldvz;b(I)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Writes data to nbt. 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:
      writeNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official b Lduw;b(Lux;Ljs$a;)V
    • readNbt

      protected void readNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Reads data from nbt. 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.

      nbt might 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:
      readNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official a Lduw;a(Lux;Ljs$a;)V
    • toUpdatePacket

      public BlockEntityUpdateS2CPacket toUpdatePacket()
      Description copied from class: BlockEntity
      Returns the packet to send to nearby players when the block entity's observable state changes, or null to not send the packet.

      If the data returned by initial chunk data is suitable for updates, the following shortcut can be used to create an update packet: BlockEntityUpdateS2CPacket.create(this). The NBT will be passed to BlockEntity.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:
      toUpdatePacket in class BlockEntity
      Returns:
      the packet to send to nearby players when the block entity's observable state changes, or null to not send the packet
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named toUpdatePacket Lnet/minecraft/block/entity/JigsawBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      intermediary method_38248 Lnet/minecraft/class_3751;method_38248()Lnet/minecraft/class_2622;
      official u Ldvz;u()Lacy;
    • toInitialChunkDataNbt

      public NbtCompound toInitialChunkDataNbt(RegistryWrapper.WrapperLookup registries)
      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 default BlockEntityUpdateS2CPacket.

      "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:
      toInitialChunkDataNbt in class BlockEntity
      Returns:
      the serialized state of this block entity that is observable by clients
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named toInitialChunkDataNbt Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_16887 Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
      official a Lduw;a(Ljs$a;)Lux;
    • generate

      public void generate(ServerWorld world, int maxDepth, boolean keepJigsaws)
      Mappings:
      Namespace Name Mixin selector
      named generate Lnet/minecraft/block/entity/JigsawBlockEntity;generate(Lnet/minecraft/server/world/ServerWorld;IZ)V
      intermediary method_27191 Lnet/minecraft/class_3751;method_27191(Lnet/minecraft/class_3218;IZ)V
      official a Ldvz;a(Lash;IZ)V