Class HorizontalConnectingBlock

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

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

    • NORTH Link icon

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

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

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

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

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

      public static final Map<Direction,BooleanProperty> FACING_PROPERTIES
      Mappings:
      Namespace Name Mixin selector
      named FACING_PROPERTIES Lnet/minecraft/block/HorizontalConnectingBlock;FACING_PROPERTIES:Ljava/util/Map;
      intermediary field_10902 Lnet/minecraft/class_2310;field_10902:Ljava/util/Map;
      official f Ldpm;f:Ljava/util/Map;
    • collisionShapeFunction Link icon

      private final Function<BlockState,VoxelShape> collisionShapeFunction
      Mappings:
      Namespace Name Mixin selector
      named collisionShapeFunction Lnet/minecraft/block/HorizontalConnectingBlock;collisionShapeFunction:Ljava/util/function/Function;
      intermediary field_55751 Lnet/minecraft/class_2310;field_55751:Ljava/util/function/Function;
      official g Ldpm;g:Ljava/util/function/Function;
    • outlineShapeFunction Link icon

      private final Function<BlockState,VoxelShape> outlineShapeFunction
      Mappings:
      Namespace Name Mixin selector
      named outlineShapeFunction Lnet/minecraft/block/HorizontalConnectingBlock;outlineShapeFunction:Ljava/util/function/Function;
      intermediary field_55752 Lnet/minecraft/class_2310;field_55752:Ljava/util/function/Function;
      official h Ldpm;h:Ljava/util/function/Function;
  • Constructor Details Link icon

    • HorizontalConnectingBlock Link icon

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

    • getCodec Link icon

      protected abstract com.mojang.serialization.MapCodec<? extends HorizontalConnectingBlock> 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 Lebp;a()Lcom/mojang/serialization/MapCodec;
    • createShapeFunction Link icon

      protected Function<BlockState,VoxelShape> createShapeFunction(float radius1, float radius2, float height1, float offset2, float height2)
      Mappings:
      Namespace Name Mixin selector
      named createShapeFunction Lnet/minecraft/block/HorizontalConnectingBlock;createShapeFunction(FFFFF)Ljava/util/function/Function;
      intermediary method_9984 Lnet/minecraft/class_2310;method_9984(FFFFF)Ljava/util/function/Function;
      official a Ldpm;a(FFFFF)Ljava/util/function/Function;
    • isTransparent Link icon

      protected boolean isTransparent(BlockState state)
      Overrides:
      isTransparent in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      named isTransparent Lnet/minecraft/block/AbstractBlock;isTransparent(Lnet/minecraft/block/BlockState;)Z
      intermediary method_9579 Lnet/minecraft/class_4970;method_9579(Lnet/minecraft/class_2680;)Z
      official e_ Lebp;e_(Lebq;)Z
    • getOutlineShape Link icon

      protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Lebp;a(Lebq;Ldjn;Liw;Lfgh;)Lfgw;
    • getCollisionShape Link icon

      protected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getCollisionShape in class AbstractBlock
      See Also:
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official b Lebp;b(Lebq;Ldjn;Liw;Lfgh;)Lfgw;
    • getFluidState Link icon

      protected 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
      named getFluidState Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
      intermediary method_9545 Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
      official b_ Lebp;b_(Lebq;)Leya;
    • canPathfindThrough Link icon

      protected boolean canPathfindThrough(BlockState state, 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
      See Also:
      API Note:
      Subclasses may override this to prevent or restrict pathfinding through the block. For example, DoorBlock restricts it to open doors only.
      Mappings:
      Namespace Name Mixin selector
      named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
      intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_10;)Z
      official a Lebp;a(Lebq;Leyp;)Z
    • rotate Link icon

      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 Lebp;a(Lebq;Ldui;)Lebq;
    • mirror Link icon

      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 Lebp;a(Lebq;Ldsr;)Lebq;