Class JigsawBlock

All Implemented Interfaces:
BlockEntityProvider, OperatorBlock, ItemConvertible, ToggleableFeature

public class JigsawBlock extends Block implements BlockEntityProvider, OperatorBlock
Mappings:
Namespace Name
named net/minecraft/block/JigsawBlock
intermediary net/minecraft/class_3748
official dop
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<JigsawBlock> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/JigsawBlock;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46376 Lnet/minecraft/class_3748;field_46376:Lcom/mojang/serialization/MapCodec;
      official a Ldop;a:Lcom/mojang/serialization/MapCodec;
    • ORIENTATION

      public static final EnumProperty<Orientation> ORIENTATION
      Mappings:
      Namespace Name Mixin selector
      named ORIENTATION Lnet/minecraft/block/JigsawBlock;ORIENTATION:Lnet/minecraft/state/property/EnumProperty;
      intermediary field_23262 Lnet/minecraft/class_3748;field_23262:Lnet/minecraft/class_2754;
      official b Ldop;b:Ldyr;
  • Constructor Details

    • JigsawBlock

      protected JigsawBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      official <init> Ldxt;<init>(Ldxt$d;)V
  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<JigsawBlock> getCodec()
      Overrides:
      getCodec in class Block
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_53969 Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
      official a Ldxt;a()Lcom/mojang/serialization/MapCodec;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Appends block state properties to this block. To use this, override and call StateManager.Builder.add(net.minecraft.state.property.Property<?>[]) inside the method. See Properties for the list of pre-defined properties.
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      official a Ldkl;a(Ldxv$a;)V
    • rotate

      protected BlockState rotate(BlockState state, BlockRotation rotation)
      Returns state rotated by rotation.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      state rotated by rotation
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      official a Ldxt;a(Ldxu;Ldrb;)Ldxu;
    • mirror

      protected BlockState mirror(BlockState state, BlockMirror mirror)
      Returns state mirrored by mirror.

      By default, this returns the provided block state.

      Overrides:
      mirror in class AbstractBlock
      Returns:
      state mirrored by mirror
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      official a Ldxt;a(Ldxu;Ldpk;)Ldxu;
    • getPlacementState

      public BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      official a Ldkl;a(Ldbf;)Ldxu;
    • createBlockEntity

      public BlockEntity createBlockEntity(BlockPos pos, BlockState state)
      Returns a new block entity instance.

      For example:

      
       @Override
       public BlockEntity createBlockEntity(BlockPos pos, BlockState state) {
         return new MyBlockEntity(pos, state);
       }
       
      Specified by:
      createBlockEntity in interface BlockEntityProvider
      Returns:
      a new block entity instance
      Implementation Note:
      While this is marked as nullable, in practice this should never return null. PistonExtensionBlock is the only block in vanilla that returns null inside the implementation.
      Mappings:
      Namespace Name Mixin selector
      named createBlockEntity Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
      intermediary method_10123 Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
      official a Ldnf;a(Ljh;Ldxu;)Lduw;
    • onUse

      protected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit)
      Overrides:
      onUse in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      named onUse Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
      intermediary method_55766 Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
      official a Ldxt;a(Ldxu;Ldhh;Ljh;Lcpw;Lfbt;)Lbti;
    • attachmentMatches

      public static boolean attachmentMatches(StructureTemplate.JigsawBlockInfo info1, StructureTemplate.JigsawBlockInfo info2)
      Mappings:
      Namespace Name Mixin selector
      named attachmentMatches Lnet/minecraft/block/JigsawBlock;attachmentMatches(Lnet/minecraft/structure/StructureTemplate$JigsawBlockInfo;Lnet/minecraft/structure/StructureTemplate$JigsawBlockInfo;)Z
      intermediary method_16546 Lnet/minecraft/class_3748;method_16546(Lnet/minecraft/class_3499$class_10326;Lnet/minecraft/class_3499$class_10326;)Z
      official a Ldop;a(Lesl$a;Lesl$a;)Z
    • getFacing

      public static Direction getFacing(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named getFacing Lnet/minecraft/block/JigsawBlock;getFacing(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Direction;
      intermediary method_26378 Lnet/minecraft/class_3748;method_26378(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2350;
      official o Ldop;o(Ldxu;)Ljm;
    • getRotation

      public static Direction getRotation(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named getRotation Lnet/minecraft/block/JigsawBlock;getRotation(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Direction;
      intermediary method_26379 Lnet/minecraft/class_3748;method_26379(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2350;
      official p Ldop;p(Ldxu;)Ljm;