public class WallBlock extends Block implements IWaterLoggable
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<BlockState,VoxelShape> |
collisionShapeByIndex |
private static VoxelShape |
EAST_TEST |
static EnumProperty<WallHeight> |
EAST_WALL |
private static VoxelShape |
NORTH_TEST |
static EnumProperty<WallHeight> |
NORTH_WALL |
private static VoxelShape |
POST_TEST |
private java.util.Map<BlockState,VoxelShape> |
shapeByIndex |
private static VoxelShape |
SOUTH_TEST |
static EnumProperty<WallHeight> |
SOUTH_WALL |
static BooleanProperty |
UP |
static BooleanProperty |
WATERLOGGED |
private static VoxelShape |
WEST_TEST |
static EnumProperty<WallHeight> |
WEST_WALL |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
WallBlock(AbstractBlock.Properties p_i48301_1_) |
Modifier and Type | Method and Description |
---|---|
private static VoxelShape |
applyWallShape(VoxelShape p_235631_0_,
WallHeight p_235631_1_,
VoxelShape p_235631_2_,
VoxelShape p_235631_3_) |
private boolean |
connectsTo(BlockState p_220113_1_,
boolean p_220113_2_,
Direction p_220113_3_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
VoxelShape |
getCollisionShape(BlockState p_220071_1_,
IBlockReader p_220071_2_,
BlockPos p_220071_3_,
ISelectionContext p_220071_4_) |
FluidState |
getFluidState(BlockState p_204507_1_) |
VoxelShape |
getShape(BlockState p_220053_1_,
IBlockReader p_220053_2_,
BlockPos p_220053_3_,
ISelectionContext p_220053_4_) |
BlockState |
getStateForPlacement(BlockItemUseContext p_196258_1_) |
private static boolean |
isConnected(BlockState p_235629_0_,
Property<WallHeight> p_235629_1_) |
private static boolean |
isCovered(VoxelShape p_235632_0_,
VoxelShape p_235632_1_) |
boolean |
isPathfindable(BlockState p_196266_1_,
IBlockReader p_196266_2_,
BlockPos p_196266_3_,
PathType p_196266_4_) |
private java.util.Map<BlockState,VoxelShape> |
makeShapes(float p_235624_1_,
float p_235624_2_,
float p_235624_3_,
float p_235624_4_,
float p_235624_5_,
float p_235624_6_) |
private WallHeight |
makeWallState(boolean p_235633_1_,
VoxelShape p_235633_2_,
VoxelShape p_235633_3_) |
BlockState |
mirror(BlockState p_185471_1_,
Mirror p_185471_2_) |
boolean |
propagatesSkylightDown(BlockState p_200123_1_,
IBlockReader p_200123_2_,
BlockPos p_200123_3_) |
BlockState |
rotate(BlockState p_185499_1_,
Rotation p_185499_2_) |
private boolean |
shouldRaisePost(BlockState p_235628_1_,
BlockState p_235628_2_,
VoxelShape p_235628_3_) |
private BlockState |
sideUpdate(IWorldReader p_235627_1_,
BlockPos p_235627_2_,
BlockState p_235627_3_,
BlockPos p_235627_4_,
BlockState p_235627_5_,
Direction p_235627_6_) |
private BlockState |
topUpdate(IWorldReader p_235625_1_,
BlockState p_235625_2_,
BlockPos p_235625_3_,
BlockState p_235625_4_) |
BlockState |
updateShape(BlockState p_196271_1_,
Direction p_196271_2_,
BlockState p_196271_3_,
IWorld p_196271_4_,
BlockPos p_196271_5_,
BlockPos p_196271_6_) |
private BlockState |
updateShape(IWorldReader p_235626_1_,
BlockState p_235626_2_,
BlockPos p_235626_3_,
BlockState p_235626_4_,
boolean p_235626_5_,
boolean p_235626_6_,
boolean p_235626_7_,
boolean p_235626_8_) |
private BlockState |
updateSides(BlockState p_235630_1_,
boolean p_235630_2_,
boolean p_235630_3_,
boolean p_235630_4_,
boolean p_235630_5_,
VoxelShape p_235630_6_) |
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isSignalSource, neighborChanged, onPlace, onProjectileHit, onRemove, randomTick, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canPlaceLiquid, placeLiquid, takeLiquid
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final BooleanProperty UP
public static final EnumProperty<WallHeight> EAST_WALL
public static final EnumProperty<WallHeight> NORTH_WALL
public static final EnumProperty<WallHeight> SOUTH_WALL
public static final EnumProperty<WallHeight> WEST_WALL
public static final BooleanProperty WATERLOGGED
private final java.util.Map<BlockState,VoxelShape> shapeByIndex
private final java.util.Map<BlockState,VoxelShape> collisionShapeByIndex
private static final VoxelShape POST_TEST
private static final VoxelShape NORTH_TEST
private static final VoxelShape SOUTH_TEST
private static final VoxelShape WEST_TEST
private static final VoxelShape EAST_TEST
public WallBlock(AbstractBlock.Properties p_i48301_1_)
private static VoxelShape applyWallShape(VoxelShape p_235631_0_, WallHeight p_235631_1_, VoxelShape p_235631_2_, VoxelShape p_235631_3_)
private java.util.Map<BlockState,VoxelShape> makeShapes(float p_235624_1_, float p_235624_2_, float p_235624_3_, float p_235624_4_, float p_235624_5_, float p_235624_6_)
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
getShape
in class AbstractBlock
public VoxelShape getCollisionShape(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_)
getCollisionShape
in class AbstractBlock
public boolean isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)
isPathfindable
in class AbstractBlock
private boolean connectsTo(BlockState p_220113_1_, boolean p_220113_2_, Direction p_220113_3_)
public BlockState getStateForPlacement(BlockItemUseContext p_196258_1_)
getStateForPlacement
in class Block
public BlockState updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_)
updateShape
in class AbstractBlock
private static boolean isConnected(BlockState p_235629_0_, Property<WallHeight> p_235629_1_)
private static boolean isCovered(VoxelShape p_235632_0_, VoxelShape p_235632_1_)
private BlockState topUpdate(IWorldReader p_235625_1_, BlockState p_235625_2_, BlockPos p_235625_3_, BlockState p_235625_4_)
private BlockState sideUpdate(IWorldReader p_235627_1_, BlockPos p_235627_2_, BlockState p_235627_3_, BlockPos p_235627_4_, BlockState p_235627_5_, Direction p_235627_6_)
private BlockState updateShape(IWorldReader p_235626_1_, BlockState p_235626_2_, BlockPos p_235626_3_, BlockState p_235626_4_, boolean p_235626_5_, boolean p_235626_6_, boolean p_235626_7_, boolean p_235626_8_)
private boolean shouldRaisePost(BlockState p_235628_1_, BlockState p_235628_2_, VoxelShape p_235628_3_)
private BlockState updateSides(BlockState p_235630_1_, boolean p_235630_2_, boolean p_235630_3_, boolean p_235630_4_, boolean p_235630_5_, VoxelShape p_235630_6_)
private WallHeight makeWallState(boolean p_235633_1_, VoxelShape p_235633_2_, VoxelShape p_235633_3_)
public FluidState getFluidState(BlockState p_204507_1_)
getFluidState
in class AbstractBlock
public boolean propagatesSkylightDown(BlockState p_200123_1_, IBlockReader p_200123_2_, BlockPos p_200123_3_)
propagatesSkylightDown
in class Block
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block
public BlockState rotate(BlockState p_185499_1_, Rotation p_185499_2_)
rotate
in class AbstractBlock
public BlockState mirror(BlockState p_185471_1_, Mirror p_185471_2_)
mirror
in class AbstractBlock