Class HorizontalConnectingBlock

All Implemented Interfaces:
FluidDrainable, FluidFillable, Waterloggable, ItemConvertible, ToggleableFeature
Direct Known Subclasses:
FenceBlock, PaneBlock

public class HorizontalConnectingBlock extends Block implements Waterloggable
Mappings:
Namespace Name
official cun
intermediary net/minecraft/class_2310
named net/minecraft/block/HorizontalConnectingBlock
  • Field Details

    • NORTH

      public static final BooleanProperty NORTH
      Mappings:
      Namespace Name Mixin selector
      official a Lcun;a:Ldga;
      intermediary field_10905 Lnet/minecraft/class_2310;field_10905:Lnet/minecraft/class_2746;
      named NORTH Lnet/minecraft/block/HorizontalConnectingBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
    • EAST

      public static final BooleanProperty EAST
      Mappings:
      Namespace Name Mixin selector
      official b Lcun;b:Ldga;
      intermediary field_10907 Lnet/minecraft/class_2310;field_10907:Lnet/minecraft/class_2746;
      named EAST Lnet/minecraft/block/HorizontalConnectingBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
    • SOUTH

      public static final BooleanProperty SOUTH
      Mappings:
      Namespace Name Mixin selector
      official c Lcun;c:Ldga;
      intermediary field_10904 Lnet/minecraft/class_2310;field_10904:Lnet/minecraft/class_2746;
      named SOUTH Lnet/minecraft/block/HorizontalConnectingBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
    • WEST

      public static final BooleanProperty WEST
      Mappings:
      Namespace Name Mixin selector
      official d Lcun;d:Ldga;
      intermediary field_10903 Lnet/minecraft/class_2310;field_10903:Lnet/minecraft/class_2746;
      named WEST Lnet/minecraft/block/HorizontalConnectingBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
    • WATERLOGGED

      public static final BooleanProperty WATERLOGGED
      Mappings:
      Namespace Name Mixin selector
      official e Lcun;e:Ldga;
      intermediary field_10900 Lnet/minecraft/class_2310;field_10900:Lnet/minecraft/class_2746;
      named WATERLOGGED Lnet/minecraft/block/HorizontalConnectingBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;
    • FACING_PROPERTIES

      protected static final Map<Direction,BooleanProperty> FACING_PROPERTIES
      Mappings:
      Namespace Name Mixin selector
      official f Lcun;f:Ljava/util/Map;
      intermediary field_10902 Lnet/minecraft/class_2310;field_10902:Ljava/util/Map;
      named FACING_PROPERTIES Lnet/minecraft/block/HorizontalConnectingBlock;FACING_PROPERTIES:Ljava/util/Map;
    • collisionShapes

      protected final VoxelShape[] collisionShapes
      Mappings:
      Namespace Name Mixin selector
      official g Lcun;g:[Leig;
      intermediary field_10901 Lnet/minecraft/class_2310;field_10901:[Lnet/minecraft/class_265;
      named collisionShapes Lnet/minecraft/block/HorizontalConnectingBlock;collisionShapes:[Lnet/minecraft/util/shape/VoxelShape;
    • boundingShapes

      protected final VoxelShape[] boundingShapes
      Mappings:
      Namespace Name Mixin selector
      official h Lcun;h:[Leig;
      intermediary field_10906 Lnet/minecraft/class_2310;field_10906:[Lnet/minecraft/class_265;
      named boundingShapes Lnet/minecraft/block/HorizontalConnectingBlock;boundingShapes:[Lnet/minecraft/util/shape/VoxelShape;
    • SHAPE_INDEX_CACHE

      private final Object2IntMap<BlockState> SHAPE_INDEX_CACHE
      Mappings:
      Namespace Name Mixin selector
      official i Lcun;i:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_19313 Lnet/minecraft/class_2310;field_19313:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      named SHAPE_INDEX_CACHE Lnet/minecraft/block/HorizontalConnectingBlock;SHAPE_INDEX_CACHE:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
  • Constructor Details

    • HorizontalConnectingBlock

      protected HorizontalConnectingBlock(float radius1, float radius2, float boundingHeight1, float boundingHeight2, float collisionHeight, AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcun;<init>(FFFFFLdfi$d;)V
      intermediary <init> Lnet/minecraft/class_2310;<init>(FFFFFLnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/HorizontalConnectingBlock;<init>(FFFFFLnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • createShapes

      protected VoxelShape[] createShapes(float radius1, float radius2, float height1, float offset2, float height2)
      Mappings:
      Namespace Name Mixin selector
      official a Lcun;a(FFFFF)[Leig;
      intermediary method_9984 Lnet/minecraft/class_2310;method_9984(FFFFF)[Lnet/minecraft/class_265;
      named createShapes Lnet/minecraft/block/HorizontalConnectingBlock;createShapes(FFFFF)[Lnet/minecraft/util/shape/VoxelShape;
    • isTransparent

      public boolean isTransparent(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      isTransparent in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lcsv;c(Ldfj;Lcpb;Lgw;)Z
      intermediary method_9579 Lnet/minecraft/class_2248;method_9579(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      named isTransparent Lnet/minecraft/block/Block;isTransparent(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Ldfi;a(Ldfj;Lcpb;Lgw;Lehs;)Leig;
      intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • getCollisionShape

      public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getCollisionShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official c Ldfi;c(Ldfj;Lcpb;Lgw;Lehs;)Leig;
      intermediary method_9549 Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getCollisionShape Lnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • getDirectionMask

      private static int getDirectionMask(Direction dir)
      Mappings:
      Namespace Name Mixin selector
      official a Lcun;a(Lha;)I
      intermediary method_9985 Lnet/minecraft/class_2310;method_9985(Lnet/minecraft/class_2350;)I
      named getDirectionMask Lnet/minecraft/block/HorizontalConnectingBlock;getDirectionMask(Lnet/minecraft/util/math/Direction;)I
    • getShapeIndex

      protected int getShapeIndex(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official g Lcun;g(Ldfj;)I
      intermediary method_9987 Lnet/minecraft/class_2310;method_9987(Lnet/minecraft/class_2680;)I
      named getShapeIndex Lnet/minecraft/block/HorizontalConnectingBlock;getShapeIndex(Lnet/minecraft/block/BlockState;)I
    • getFluidState

      public FluidState getFluidState(BlockState state)
      Returns the state's associated fluid state.

      Waterloggable blocks must override this to return Fluids.WATER.getStill(false) when waterlogged.

      Overrides:
      getFluidState in class AbstractBlock
      Returns:
      the state's associated fluid state
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c_ Ldfi;c_(Ldfj;)Leam;
      intermediary method_9545 Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
      named getFluidState Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
    • canPathfindThrough

      public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
      Returns if an entity using navigation type type can navigate through this block.
      Overrides:
      canPathfindThrough in class AbstractBlock
      Returns:
      if an entity using navigation type type can navigate through this block
      Mappings:
      Namespace Name Mixin selector
      official a Ldfi;a(Ldfj;Lcpb;Lgw;Lebc;)Z
      intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Z
      named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
    • rotate

      public 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
      Mappings:
      Namespace Name Mixin selector
      official a Ldfi;a(Ldfj;Lczh;)Ldfj;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • mirror

      public 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
      Mappings:
      Namespace Name Mixin selector
      official a Ldfi;a(Ldfj;Lcxq;)Ldfj;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;