public interface IBlockState extends IStateHolder<IBlockState>, IForgeBlockState
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteMap<IBlockState>> |
field_208776_a |
static java.lang.ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteMap<IBlockState>> |
OPACITY_CACHE |
static java.lang.ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteMap<IBlockState>> |
OPAQUE_CUBE_CACHE |
Modifier and Type | Method and Description |
---|---|
default boolean |
allowsMovement(IBlockReader worldIn,
BlockPos pos,
PathType type) |
default boolean |
blockNeedsPostProcessing(IBlockReader worldIn,
BlockPos pos) |
default boolean |
canEntitySpawn(Entity entityIn) |
default boolean |
canProvidePower() |
default boolean |
causesSuffocation() |
default void |
dropBlockAsItem(World worldIn,
BlockPos pos,
int fortune) |
default void |
dropBlockAsItemWithChance(World worldIn,
BlockPos pos,
float chancePerItem,
int fortune) |
default float |
getAmbientOcclusionLightValue() |
Block |
getBlock() |
default BlockFaceShape |
getBlockFaceShape(IBlockReader worldIn,
BlockPos pos,
EnumFacing facing) |
default float |
getBlockHardness(IBlockReader worldIn,
BlockPos pos) |
default VoxelShape |
getCollisionShape(IBlockReader worldIn,
BlockPos pos) |
default int |
getComparatorInputOverride(World worldIn,
BlockPos pos) |
default IFluidState |
getFluidState() |
default int |
getLightValue() |
default MaterialColor |
getMapColor(IBlockReader worldIn,
BlockPos pos) |
default Material |
getMaterial() |
default Vec3d |
getOffset(IBlockReader access,
BlockPos pos) |
default int |
getOpacity(IBlockReader worldIn,
BlockPos pos) |
default int |
getPackedLightmapCoords(IWorldReader source,
BlockPos pos) |
default float |
getPlayerRelativeBlockHardness(EntityPlayer player,
IBlockReader worldIn,
BlockPos pos) |
default long |
getPositionRandom(BlockPos pos) |
default EnumPushReaction |
getPushReaction() |
default VoxelShape |
getRaytraceShape(IBlockReader worldIn,
BlockPos pos) |
default VoxelShape |
getRenderShape(IBlockReader worldIn,
BlockPos pos) |
default EnumBlockRenderType |
getRenderType() |
default VoxelShape |
getShape(IBlockReader worldIn,
BlockPos pos) |
default int |
getStrongPower(IBlockReader blockAccess,
BlockPos pos,
EnumFacing side) |
default int |
getWeakPower(IBlockReader blockAccess,
BlockPos pos,
EnumFacing side) |
default boolean |
hasComparatorInputOverride() |
default boolean |
hasCustomBreakingProgress() |
default boolean |
isAir()
Deprecated.
use {@link IBlockState#isAir(IBlockReader, BlockPos)
|
default boolean |
isBlockNormalCube() |
default boolean |
isFullCube() |
default boolean |
isIn(Tag<Block> tagIn) |
default boolean |
isNormalCube() |
default boolean |
isOpaqueCube(IBlockReader worldIn,
BlockPos pos) |
default boolean |
isReplaceable(BlockItemUseContext useContext) |
default boolean |
isSideInvisible(IBlockState state,
EnumFacing face) |
default boolean |
isSolid() |
default boolean |
isTopSolid() |
default boolean |
isValidPosition(IWorldReaderBase worldIn,
BlockPos pos) |
default IBlockState |
mirror(Mirror mirrorIn) |
default boolean |
needsRandomTick() |
default void |
neighborChanged(World worldIn,
BlockPos pos,
Block blockIn,
BlockPos fromPos) |
default boolean |
onBlockActivated(World worldIn,
BlockPos pos,
EntityPlayer player,
EnumHand hand,
EnumFacing side,
float hitX,
float hitY,
float hitZ) |
default void |
onBlockAdded(World worldIn,
BlockPos pos,
IBlockState oldState) |
default void |
onBlockClicked(World worldIn,
BlockPos pos,
EntityPlayer player) |
default boolean |
onBlockEventReceived(World worldIn,
BlockPos pos,
int id,
int param) |
default void |
onEntityCollision(World worldIn,
BlockPos pos,
Entity entityIn) |
default void |
onReplaced(World worldIn,
BlockPos pos,
IBlockState newState,
boolean isMoving) |
default boolean |
propagatesSkylightDown(IBlockReader worldIn,
BlockPos pos) |
default void |
randomTick(World worldIn,
BlockPos pos,
java.util.Random random) |
default IBlockState |
rotate(Rotation rot)
Deprecated.
use {@link IBlockState#rotate(IWorld, BlockPos, Rotation)
|
default void |
tick(World worldIn,
BlockPos pos,
java.util.Random random) |
default void |
updateDiagonalNeighbors(IWorld worldIn,
BlockPos pos,
int flags) |
default void |
updateNeighbors(IWorld worldIn,
BlockPos pos,
int flags) |
default IBlockState |
updatePostPlacement(EnumFacing face,
IBlockState queried,
IWorld worldIn,
BlockPos currentPos,
BlockPos offsetPos) |
default boolean |
useNeighborBrightness(IBlockReader worldIn,
BlockPos pos) |
cycle, get, getProperties, getValues, has, with
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canRenderInLayer, canSilkHarvest, canSustainPlant, createTileEntity, doesSideBlockChestOpening, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockState, getDrops, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getLightValue, getPickBlock, getSlipperiness, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isNormalCube, isReplaceableOreGen, isStickyBlock, isToolEffective, isTopSolid, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
static final java.lang.ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteMap<IBlockState>> field_208776_a
static final java.lang.ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteMap<IBlockState>> OPACITY_CACHE
static final java.lang.ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteMap<IBlockState>> OPAQUE_CUBE_CACHE
Block getBlock()
default Material getMaterial()
default boolean canEntitySpawn(Entity entityIn)
default boolean propagatesSkylightDown(IBlockReader worldIn, BlockPos pos)
default int getOpacity(IBlockReader worldIn, BlockPos pos)
default int getLightValue()
@Deprecated default boolean isAir()
default boolean useNeighborBrightness(IBlockReader worldIn, BlockPos pos)
default MaterialColor getMapColor(IBlockReader worldIn, BlockPos pos)
@Deprecated default IBlockState rotate(Rotation rot)
default IBlockState mirror(Mirror mirrorIn)
default boolean isFullCube()
default boolean hasCustomBreakingProgress()
default EnumBlockRenderType getRenderType()
default int getPackedLightmapCoords(IWorldReader source, BlockPos pos)
default float getAmbientOcclusionLightValue()
default boolean isBlockNormalCube()
default boolean isNormalCube()
default boolean canProvidePower()
default int getWeakPower(IBlockReader blockAccess, BlockPos pos, EnumFacing side)
default boolean hasComparatorInputOverride()
default float getBlockHardness(IBlockReader worldIn, BlockPos pos)
default float getPlayerRelativeBlockHardness(EntityPlayer player, IBlockReader worldIn, BlockPos pos)
default int getStrongPower(IBlockReader blockAccess, BlockPos pos, EnumFacing side)
default EnumPushReaction getPushReaction()
default boolean isOpaqueCube(IBlockReader worldIn, BlockPos pos)
default boolean isSolid()
default boolean isSideInvisible(IBlockState state, EnumFacing face)
default VoxelShape getShape(IBlockReader worldIn, BlockPos pos)
default VoxelShape getCollisionShape(IBlockReader worldIn, BlockPos pos)
default VoxelShape getRenderShape(IBlockReader worldIn, BlockPos pos)
default VoxelShape getRaytraceShape(IBlockReader worldIn, BlockPos pos)
default boolean isTopSolid()
default Vec3d getOffset(IBlockReader access, BlockPos pos)
default boolean onBlockEventReceived(World worldIn, BlockPos pos, int id, int param)
default void neighborChanged(World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos)
default void updateDiagonalNeighbors(IWorld worldIn, BlockPos pos, int flags)
default void onBlockAdded(World worldIn, BlockPos pos, IBlockState oldState)
default void onReplaced(World worldIn, BlockPos pos, IBlockState newState, boolean isMoving)
default void dropBlockAsItemWithChance(World worldIn, BlockPos pos, float chancePerItem, int fortune)
default boolean onBlockActivated(World worldIn, BlockPos pos, EntityPlayer player, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)
default void onBlockClicked(World worldIn, BlockPos pos, EntityPlayer player)
default boolean causesSuffocation()
default BlockFaceShape getBlockFaceShape(IBlockReader worldIn, BlockPos pos, EnumFacing facing)
default IBlockState updatePostPlacement(EnumFacing face, IBlockState queried, IWorld worldIn, BlockPos currentPos, BlockPos offsetPos)
default boolean allowsMovement(IBlockReader worldIn, BlockPos pos, PathType type)
default boolean isReplaceable(BlockItemUseContext useContext)
default boolean isValidPosition(IWorldReaderBase worldIn, BlockPos pos)
default boolean blockNeedsPostProcessing(IBlockReader worldIn, BlockPos pos)
default IFluidState getFluidState()
default boolean needsRandomTick()
default long getPositionRandom(BlockPos pos)