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 named net/minecraft/block/HorizontalConnectingBlockintermediary net/minecraft/class_2310official dmb
-
Nested Class Summary
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
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertystatic final Map<Direction, BooleanProperty> private final Function<BlockState, VoxelShape> private final Function<BlockState, VoxelShape> static final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
CODEC, field_31023, field_31024, field_31025, field_31035, field_55739, field_55740, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHorizontalConnectingBlock(float radius1, float radius2, float boundingHeight1, float boundingHeight2, float collisionHeight, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanPathfindThrough(BlockState state, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.protected Function<BlockState, VoxelShape> createShapes(float radius1, float radius2, float height1, float offset2, float height2) protected abstract com.mojang.serialization.MapCodec<? extends HorizontalConnectingBlock> getCodec()protected VoxelShapegetCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected FluidStategetFluidState(BlockState state) Returns the state's associated fluid state.protected VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected booleanisTransparent(BlockState state) protected BlockStatemirror(BlockState state, BlockMirror mirror) Returnsstatemirrored bymirror.protected BlockStaterotate(BlockState state, BlockRotation rotation) Returnsstaterotated 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, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, method_66393, method_66394, method_66395, method_66396, method_66397, method_66403, method_66404, method_66405, method_66408, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, method_66388, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabledMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
NORTH
- Mappings:
Namespace Name Mixin selector named NORTHLnet/minecraft/block/HorizontalConnectingBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;intermediary field_10905Lnet/minecraft/class_2310;field_10905:Lnet/minecraft/class_2746;official aLdmb;a:Ldyh;
-
EAST
- Mappings:
Namespace Name Mixin selector named EASTLnet/minecraft/block/HorizontalConnectingBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;intermediary field_10907Lnet/minecraft/class_2310;field_10907:Lnet/minecraft/class_2746;official bLdmb;b:Ldyh;
-
SOUTH
- Mappings:
Namespace Name Mixin selector named SOUTHLnet/minecraft/block/HorizontalConnectingBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;intermediary field_10904Lnet/minecraft/class_2310;field_10904:Lnet/minecraft/class_2746;official cLdmb;c:Ldyh;
-
WEST
- Mappings:
Namespace Name Mixin selector named WESTLnet/minecraft/block/HorizontalConnectingBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;intermediary field_10903Lnet/minecraft/class_2310;field_10903:Lnet/minecraft/class_2746;official dLdmb;d:Ldyh;
-
WATERLOGGED
- Mappings:
Namespace Name Mixin selector named WATERLOGGEDLnet/minecraft/block/HorizontalConnectingBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;intermediary field_10900Lnet/minecraft/class_2310;field_10900:Lnet/minecraft/class_2746;official eLdmb;e:Ldyh;
-
FACING_PROPERTIES
- Mappings:
Namespace Name Mixin selector named FACING_PROPERTIESLnet/minecraft/block/HorizontalConnectingBlock;FACING_PROPERTIES:Ljava/util/Map;intermediary field_10902Lnet/minecraft/class_2310;field_10902:Ljava/util/Map;official fLdmb;f:Ljava/util/Map;
-
field_55751
- Mappings:
Namespace Name Mixin selector named field_55751Lnet/minecraft/block/HorizontalConnectingBlock;field_55751:Ljava/util/function/Function;intermediary field_55751Lnet/minecraft/class_2310;field_55751:Ljava/util/function/Function;official gLdmb;g:Ljava/util/function/Function;
-
field_55752
- Mappings:
Namespace Name Mixin selector named field_55752Lnet/minecraft/block/HorizontalConnectingBlock;field_55752:Ljava/util/function/Function;intermediary field_55752Lnet/minecraft/class_2310;field_55752:Ljava/util/function/Function;official hLdmb;h:Ljava/util/function/Function;
-
-
Constructor Details
-
HorizontalConnectingBlock
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;)Vintermediary <init>Lnet/minecraft/class_2310;<init>(FFFFFLnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldmb;<init>(FFFFFLdxp$d;)V
-
-
Method Details
-
getCodec
protected abstract com.mojang.serialization.MapCodec<? extends HorizontalConnectingBlock> getCodec()- Overrides:
getCodecin classBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLdxp;a()Lcom/mojang/serialization/MapCodec;
-
createShapes
protected Function<BlockState,VoxelShape> createShapes(float radius1, float radius2, float height1, float offset2, float height2) - Mappings:
Namespace Name Mixin selector named createShapesLnet/minecraft/block/HorizontalConnectingBlock;createShapes(FFFFF)Ljava/util/function/Function;intermediary method_9984Lnet/minecraft/class_2310;method_9984(FFFFF)Ljava/util/function/Function;official aLdmb;a(FFFFF)Ljava/util/function/Function;
-
isTransparent
- Overrides:
isTransparentin classAbstractBlock- Mappings:
Namespace Name Mixin selector named isTransparentLnet/minecraft/block/AbstractBlock;isTransparent(Lnet/minecraft/block/BlockState;)Zintermediary method_9579Lnet/minecraft/class_4970;method_9579(Lnet/minecraft/class_2680;)Zofficial e_Ldxp;e_(Ldxq;)Z
-
getOutlineShape
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named getOutlineShapeLnet/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_9530Lnet/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 aLdxp;a(Ldxq;Ldgf;Lji;Lfcc;)Lfcr;
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named getCollisionShapeLnet/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_9549Lnet/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 bLdxp;b(Ldxq;Ldgf;Lji;Lfcc;)Lfcr;
-
getFluidState
Returns the state's associated fluid state.Waterloggable blocks must override this to return
Fluids.WATER.getStill(false)when waterlogged.- Overrides:
getFluidStatein classAbstractBlock- Returns:
- the state's associated fluid state
- See Also:
- Mappings:
Namespace Name Mixin selector named getFluidStateLnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;intermediary method_9545Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;official b_Ldxp;b_(Ldxq;)Letw;
-
rotate
Returnsstaterotated byrotation.By default, this returns the provided block state.
- Overrides:
rotatein classAbstractBlock- Returns:
staterotated byrotation- See Also:
- Mappings:
Namespace Name Mixin selector named rotateLnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;intermediary method_9598Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;official aLdxp;a(Ldxq;Ldqw;)Ldxq;
-
mirror
Returnsstatemirrored bymirror.By default, this returns the provided block state.
- Overrides:
mirrorin classAbstractBlock- Returns:
statemirrored bymirror- See Also:
- Mappings:
Namespace Name Mixin selector named mirrorLnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;intermediary method_9569Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;official aLdxp;a(Ldxq;Ldpf;)Ldxq;
-