Package net.minecraft.block
Class HorizontalConnectingBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.HorizontalConnectingBlock
- All Implemented Interfaces:
FluidDrainable
,FluidFillable
,Waterloggable
,ItemConvertible
,ToggleableFeature
- Direct Known Subclasses:
FenceBlock
,PaneBlock
- Mappings:
Namespace Name official crd
intermediary net/minecraft/class_2310
named net/minecraft/block/HorizontalConnectingBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final VoxelShape[]
protected final VoxelShape[]
static final BooleanProperty
protected static final Map<Direction,
BooleanProperty> static final BooleanProperty
private final Object2IntMap<BlockState>
static final BooleanProperty
static final BooleanProperty
static final BooleanProperty
Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
ModifierConstructorDescriptionprotected
HorizontalConnectingBlock
(float radius1, float radius2, float boundingHeight1, float boundingHeight2, float collisionHeight, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.protected VoxelShape[]
createShapes
(float radius1, float radius2, float height1, float offset2, float height2) getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private static int
getFluidState
(BlockState state) Returns the state's associated fluid state.getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected int
getShapeIndex
(BlockState state) boolean
isTransparent
(BlockState state, BlockView world, BlockPos pos) mirror
(BlockState state, BlockMirror mirror) Returnsstate
mirrored bymirror
.rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.Methods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
Methods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
NORTH
- Mappings:
Namespace Name Mixin selector official a
Lcrd;a:Ldcp;
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
- Mappings:
Namespace Name Mixin selector official b
Lcrd;b:Ldcp;
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
- Mappings:
Namespace Name Mixin selector official c
Lcrd;c:Ldcp;
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
- Mappings:
Namespace Name Mixin selector official d
Lcrd;d:Ldcp;
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
- Mappings:
Namespace Name Mixin selector official e
Lcrd;e:Ldcp;
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
- Mappings:
Namespace Name Mixin selector official f
Lcrd;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
- Mappings:
Namespace Name Mixin selector official g
Lcrd;g:[Leet;
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
- Mappings:
Namespace Name Mixin selector official h
Lcrd;h:[Leet;
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
- Mappings:
Namespace Name Mixin selector official i
Lcrd;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>
Lcrd;<init>(FFFFFLdbx$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
Lcrd;a(FFFFF)[Leet;
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
- Overrides:
isTransparent
in classBlock
- Mappings:
Namespace Name Mixin selector official c
Lcpl;c(Ldby;Lclq;Lgu;)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 classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Ldbx;a(Ldby;Lclq;Lgu;Leef;)Leet;
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 classAbstractBlock
- Mappings:
Namespace Name Mixin selector official c
Ldbx;c(Ldby;Lclq;Lgu;Leef;)Leet;
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
- Mappings:
Namespace Name Mixin selector official a
Lcrd;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
- Mappings:
Namespace Name Mixin selector official g
Lcrd;g(Ldby;)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
Returns the state's associated fluid state.Waterloggable blocks must override this to return
Fluids.WATER.getStill(false)
when waterlogged.- Overrides:
getFluidState
in classAbstractBlock
- Returns:
- the state's associated fluid state
- See Also:
- Mappings:
Namespace Name Mixin selector official c_
Ldbx;c_(Ldby;)Ldxb;
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;
-
rotate
Returnsstate
rotated byrotation
.By default, this returns the provided block state.
- Overrides:
rotate
in classAbstractBlock
- Returns:
state
rotated byrotation
- Mappings:
Namespace Name Mixin selector official a
Ldbx;a(Ldby;Lcvw;)Ldby;
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
Returnsstate
mirrored bymirror
.By default, this returns the provided block state.
- Overrides:
mirror
in classAbstractBlock
- Returns:
state
mirrored bymirror
- Mappings:
Namespace Name Mixin selector official a
Ldbx;a(Ldby;Lcuf;)Ldby;
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;
-