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.NeighborGroup
Nested 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>
collisionShapeMap
static EnumProperty<WallShape>
EAST_SHAPE
static EnumProperty<WallShape>
NORTH_SHAPE
private Map<BlockState,VoxelShape>
shapeMap
static EnumProperty<WallShape>
SOUTH_SHAPE
private static VoxelShape
TALL_EAST_SHAPE
private static VoxelShape
TALL_NORTH_SHAPE
private static VoxelShape
TALL_POST_SHAPE
private static VoxelShape
TALL_SOUTH_SHAPE
private static VoxelShape
TALL_WEST_SHAPE
static BooleanProperty
UP
static BooleanProperty
WATERLOGGED
static EnumProperty<WallShape>
WEST_SHAPE
Fields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManager
Fields 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 void
appendProperties(StateManager.Builder<Block,BlockState> builder)
boolean
canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
VoxelShape
getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
FluidState
getFluidState(BlockState state)
VoxelShape
getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
BlockState
getPlacementState(ItemPlacementContext ctx)
private Map<BlockState,VoxelShape>
getShapeMap(float float2, float float3, float float4, float float5, float float6, float float7)
BlockState
getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
boolean
isTranslucent(BlockState state, BlockView world, BlockPos pos)
private BlockState
method_24421(WorldView worldView, BlockState blockState, BlockPos blockPos, BlockState blockState2)
private BlockState
method_24422(WorldView worldView, BlockState blockState, BlockPos blockPos, BlockState blockState2, boolean bool, boolean bool2, boolean bool3, boolean bool4)
private BlockState
method_24423(WorldView worldView, BlockPos blockPos, BlockState blockState, BlockPos blockPos2, BlockState blockState2, Direction direction)
private static boolean
method_24424(BlockState blockState, Property<WallShape> property)
private BlockState
method_24425(BlockState blockState, boolean bool, boolean bool2, boolean bool3, boolean bool4, VoxelShape voxelShape)
private static VoxelShape
method_24426(VoxelShape voxelShape, WallShape wallShape, VoxelShape voxelShape2, VoxelShape voxelShape3)
private static boolean
method_24427(VoxelShape voxelShape, VoxelShape voxelShape2)
private WallShape
method_24428(boolean bool, VoxelShape voxelShape, VoxelShape voxelShape2)
private boolean
method_27092(BlockState blockState, BlockState blockState2, VoxelShape voxelShape)
BlockState
mirror(BlockState state, BlockMirror mirror)
BlockState
rotate(BlockState state, BlockRotation rotation)
Applies a block rotation to a block state.private boolean
shouldConnectTo(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, toString
Methods 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, scheduledTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
getOutlineShape
in classAbstractBlock
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getCollisionShape
in classAbstractBlock
-
shouldConnectTo
-
getPlacementState
- Overrides:
getPlacementState
in classBlock
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)- Overrides:
getStateForNeighborUpdate
in 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:
getFluidState
in classAbstractBlock
-
isTranslucent
- Overrides:
isTranslucent
in classBlock
-
appendProperties
- Overrides:
appendProperties
in classBlock
-
rotate
Applies a block rotation to a block state.By default, this returns the provided block state.
- Overrides:
rotate
in classAbstractBlock
- Returns:
- the rotated block state
-
mirror
- Overrides:
mirror
in classAbstractBlock
-