public class FourWayBlock extends Block implements IWaterLoggable
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
protected VoxelShape[] |
collisionShapes |
static BooleanProperty |
EAST |
protected static java.util.Map<Direction,BooleanProperty> |
FACING_TO_PROPERTY_MAP |
private it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> |
field_223008_i |
static BooleanProperty |
NORTH |
protected VoxelShape[] |
shapes |
static BooleanProperty |
SOUTH |
static BooleanProperty |
WATERLOGGED |
static BooleanProperty |
WEST |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
Modifier | Constructor and Description |
---|---|
protected |
FourWayBlock(float nodeWidth,
float extensionWidth,
float p_i48420_3_,
float p_i48420_4_,
float collisionY,
Block.Properties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsMovement(BlockState state,
IBlockReader worldIn,
BlockPos pos,
PathType type) |
VoxelShape |
getCollisionShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
IFluidState |
getFluidState(BlockState state) |
protected int |
getIndex(BlockState state) |
private static int |
getMask(Direction facing) |
VoxelShape |
getShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
protected VoxelShape[] |
makeShapes(float nodeWidth,
float extensionWidth,
float p_196408_3_,
float p_196408_4_,
float p_196408_5_) |
BlockState |
mirror(BlockState state,
Mirror mirrorIn) |
boolean |
propagatesSkylightDown(BlockState state,
IBlockReader reader,
BlockPos pos) |
BlockState |
rotate(BlockState state,
Rotation rot) |
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillStateContainer, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canContainFluid, pickupFluid, receiveFluid
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final BooleanProperty NORTH
public static final BooleanProperty EAST
public static final BooleanProperty SOUTH
public static final BooleanProperty WEST
public static final BooleanProperty WATERLOGGED
protected static final java.util.Map<Direction,BooleanProperty> FACING_TO_PROPERTY_MAP
protected final VoxelShape[] collisionShapes
protected final VoxelShape[] shapes
private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> field_223008_i
protected FourWayBlock(float nodeWidth, float extensionWidth, float p_i48420_3_, float p_i48420_4_, float collisionY, Block.Properties properties)
protected VoxelShape[] makeShapes(float nodeWidth, float extensionWidth, float p_196408_3_, float p_196408_4_, float p_196408_5_)
public boolean propagatesSkylightDown(BlockState state, IBlockReader reader, BlockPos pos)
propagatesSkylightDown
in class Block
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public VoxelShape getCollisionShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
getCollisionShape
in class Block
private static int getMask(Direction facing)
protected int getIndex(BlockState state)
public IFluidState getFluidState(BlockState state)
getFluidState
in class Block
public boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
in class Block
public BlockState rotate(BlockState state, Rotation rot)
public BlockState mirror(BlockState state, Mirror mirrorIn)