public class WallBlock extends Block implements Waterloggable
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and 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 |
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Constructor and Description |
---|
WallBlock(AbstractBlock.Settings settings) |
Modifier and Type | Method and 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) |
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, is, isFaceFullSquare, isIn, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTick
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canFillWithFluid, tryDrainFluid, tryFillWithFluid
public static final BooleanProperty UP
public static final EnumProperty<WallShape> EAST_SHAPE
public static final EnumProperty<WallShape> NORTH_SHAPE
public static final EnumProperty<WallShape> SOUTH_SHAPE
public static final EnumProperty<WallShape> WEST_SHAPE
public static final BooleanProperty WATERLOGGED
private static final VoxelShape TALL_POST_SHAPE
private static final VoxelShape TALL_NORTH_SHAPE
private static final VoxelShape TALL_SOUTH_SHAPE
private static final VoxelShape TALL_WEST_SHAPE
private static final VoxelShape TALL_EAST_SHAPE
private final Map<BlockState,VoxelShape> shapeMap
private final Map<BlockState,VoxelShape> collisionShapeMap
public WallBlock(AbstractBlock.Settings settings)
private static VoxelShape method_24426(VoxelShape voxelShape, WallShape wallShape, VoxelShape voxelShape2, VoxelShape voxelShape3)
private Map<BlockState,VoxelShape> getShapeMap(float float2, float float3, float float4, float float5, float float6, float float7)
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape
in class AbstractBlock
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getCollisionShape
in class AbstractBlock
public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
canPathfindThrough
in class AbstractBlock
private boolean shouldConnectTo(BlockState state, boolean faceFullSquare, Direction side)
public BlockState getPlacementState(ItemPlacementContext ctx)
getPlacementState
in class Block
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate
in class AbstractBlock
private static boolean method_24424(BlockState blockState, Property<WallShape> property)
private static boolean method_24427(VoxelShape voxelShape, VoxelShape voxelShape2)
private BlockState method_24421(WorldView worldView, BlockState blockState, BlockPos blockPos, BlockState blockState2)
private BlockState method_24423(WorldView worldView, BlockPos blockPos, BlockState blockState, BlockPos blockPos2, BlockState blockState2, Direction direction)
private BlockState method_24422(WorldView worldView, BlockState blockState, BlockPos blockPos, BlockState blockState2, boolean bool, boolean bool2, boolean bool3, boolean bool4)
private boolean method_27092(BlockState blockState, BlockState blockState2, VoxelShape voxelShape)
private BlockState method_24425(BlockState blockState, boolean bool, boolean bool2, boolean bool3, boolean bool4, VoxelShape voxelShape)
private WallShape method_24428(boolean bool, VoxelShape voxelShape, VoxelShape voxelShape2)
public FluidState getFluidState(BlockState state)
getFluidState
in class AbstractBlock
public boolean isTranslucent(BlockState state, BlockView world, BlockPos pos)
isTranslucent
in class Block
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties
in class Block
public BlockState rotate(BlockState state, BlockRotation rotation)
By default, this returns the provided block state.
rotate
in class AbstractBlock
public BlockState mirror(BlockState state, BlockMirror mirror)
mirror
in class AbstractBlock