Package net.minecraft.block
Class WallBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.WallBlock
- All Implemented Interfaces:
FluidDrainable,FluidFillable,Waterloggable,ItemConvertible
public class WallBlock extends Block implements Waterloggable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description private Map<BlockState,VoxelShape>collisionShapeMapstatic EnumProperty<WallShape>EAST_SHAPEstatic EnumProperty<WallShape>NORTH_SHAPEprivate Map<BlockState,VoxelShape>shapeMapstatic EnumProperty<WallShape>SOUTH_SHAPEprivate static VoxelShapeTALL_EAST_SHAPEprivate static VoxelShapeTALL_NORTH_SHAPEprivate static VoxelShapeTALL_POST_SHAPEprivate static VoxelShapeTALL_SOUTH_SHAPEprivate static VoxelShapeTALL_WEST_SHAPEstatic BooleanPropertyUPstatic BooleanPropertyWATERLOGGEDstatic EnumProperty<WallShape>WEST_SHAPEFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description WallBlock(AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)VoxelShapegetCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)FluidStategetFluidState(BlockState state)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)BlockStategetPlacementState(ItemPlacementContext ctx)private Map<BlockState,VoxelShape>getShapeMap(float float2, float float3, float float4, float float5, float float6, float float7)BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)booleanisTranslucent(BlockState state, BlockView world, BlockPos pos)private BlockStatemethod_24421(WorldView worldView, BlockState blockState, BlockPos blockPos, BlockState blockState2)private BlockStatemethod_24422(WorldView worldView, BlockState blockState, BlockPos blockPos, BlockState blockState2, boolean bool, boolean bool2, boolean bool3, boolean bool4)private BlockStatemethod_24423(WorldView worldView, BlockPos blockPos, BlockState blockState, BlockPos blockPos2, BlockState blockState2, Direction direction)private static booleanmethod_24424(BlockState blockState, Property<WallShape> property)private BlockStatemethod_24425(BlockState blockState, boolean bool, boolean bool2, boolean bool3, boolean bool4, VoxelShape voxelShape)private static VoxelShapemethod_24426(VoxelShape voxelShape, WallShape wallShape, VoxelShape voxelShape2, VoxelShape voxelShape3)private static booleanmethod_24427(VoxelShape voxelShape, VoxelShape voxelShape2)private WallShapemethod_24428(boolean bool, VoxelShape voxelShape, VoxelShape voxelShape2)private booleanmethod_27092(BlockState blockState, BlockState blockState2, VoxelShape voxelShape)BlockStatemirror(BlockState state, BlockMirror mirror)BlockStaterotate(BlockState state, BlockRotation rotation)Applies a block rotation to a block state.private booleanshouldConnectTo(BlockState state, boolean faceFullSquare, Direction side)Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getDrainSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
UP
-
EAST_SHAPE
-
NORTH_SHAPE
-
SOUTH_SHAPE
-
WEST_SHAPE
-
WATERLOGGED
-
TALL_POST_SHAPE
-
TALL_NORTH_SHAPE
-
TALL_SOUTH_SHAPE
-
TALL_WEST_SHAPE
-
TALL_EAST_SHAPE
-
shapeMap
-
collisionShapeMap
-
-
Constructor Details
-
WallBlock
-
-
Method Details
-
method_24426
private static VoxelShape method_24426(VoxelShape voxelShape, WallShape wallShape, VoxelShape voxelShape2, VoxelShape voxelShape3) -
getShapeMap
private Map<BlockState,VoxelShape> getShapeMap(float float2, float float3, float float4, float float5, float float6, float float7) -
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getCollisionShapein classAbstractBlock
-
shouldConnectTo
-
getPlacementState
- Overrides:
getPlacementStatein classBlock
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)- Overrides:
getStateForNeighborUpdatein classAbstractBlock
-
method_24424
-
method_24427
-
method_24421
private BlockState method_24421(WorldView worldView, BlockState blockState, BlockPos blockPos, BlockState blockState2) -
method_24423
private BlockState method_24423(WorldView worldView, BlockPos blockPos, BlockState blockState, BlockPos blockPos2, BlockState blockState2, Direction direction) -
method_24422
private BlockState method_24422(WorldView worldView, BlockState blockState, BlockPos blockPos, BlockState blockState2, boolean bool, boolean bool2, boolean bool3, boolean bool4) -
method_27092
-
method_24425
private BlockState method_24425(BlockState blockState, boolean bool, boolean bool2, boolean bool3, boolean bool4, VoxelShape voxelShape) -
method_24428
-
getFluidState
- Overrides:
getFluidStatein classAbstractBlock
-
isTranslucent
- Overrides:
isTranslucentin classBlock
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-
rotate
Applies a block rotation to a block state.By default, this returns the provided block state.
- Overrides:
rotatein classAbstractBlock- Returns:
- the rotated block state
-
mirror
- Overrides:
mirrorin classAbstractBlock
-