public static class BlockStateContainer.StateImplementation extends BlockStateBase
Modifier and Type | Field and Description |
---|---|
protected <any> |
propertyValueTable |
Modifier | Constructor and Description |
---|---|
protected |
StateImplementation(Block blockIn,
<any> propertiesIn) |
protected |
StateImplementation(Block blockIn,
<any> propertiesIn,
<any> propertyValueTable) |
Modifier and Type | Method and Description |
---|---|
void |
addCollisionBoxToList(World worldIn,
BlockPos pos,
AxisAlignedBB entityBox,
java.util.List<AxisAlignedBB> collidingBoxes,
Entity entityIn,
boolean p_185908_6_) |
void |
buildPropertyValueTable(java.util.Map<java.util.Map<IProperty<?>,java.lang.Comparable<?>>,BlockStateContainer.StateImplementation> map) |
boolean |
canEntitySpawn(Entity entityIn) |
boolean |
canProvidePower() |
boolean |
causesSuffocation() |
RayTraceResult |
collisionRayTrace(World worldIn,
BlockPos pos,
Vec3d start,
Vec3d end) |
boolean |
doesSideBlockRendering(IBlockAccess world,
BlockPos pos,
EnumFacing side) |
boolean |
equals(java.lang.Object p_equals_1_) |
IBlockState |
getActualState(IBlockAccess blockAccess,
BlockPos pos) |
float |
getAmbientOcclusionLightValue() |
Block |
getBlock() |
float |
getBlockHardness(World worldIn,
BlockPos pos) |
AxisAlignedBB |
getBoundingBox(IBlockAccess blockAccess,
BlockPos pos) |
AxisAlignedBB |
getCollisionBoundingBox(IBlockAccess worldIn,
BlockPos pos) |
int |
getComparatorInputOverride(World worldIn,
BlockPos pos) |
int |
getLightOpacity() |
int |
getLightOpacity(IBlockAccess world,
BlockPos pos) |
int |
getLightValue() |
int |
getLightValue(IBlockAccess world,
BlockPos pos) |
MapColor |
getMapColor() |
Material |
getMaterial() |
EnumPushReaction |
getMobilityFlag() |
Vec3d |
getOffset(IBlockAccess access,
BlockPos pos) |
int |
getPackedLightmapCoords(IBlockAccess source,
BlockPos pos) |
float |
getPlayerRelativeBlockHardness(EntityPlayer player,
World worldIn,
BlockPos pos) |
<any> |
getProperties() |
java.util.Collection<IProperty<?>> |
getPropertyKeys() |
<any> |
getPropertyValueTable() |
EnumBlockRenderType |
getRenderType() |
AxisAlignedBB |
getSelectedBoundingBox(World worldIn,
BlockPos pos) |
int |
getStrongPower(IBlockAccess blockAccess,
BlockPos pos,
EnumFacing side) |
<T extends java.lang.Comparable<T>> |
getValue(IProperty<T> property)
Get the value of the given Property for this BlockState
|
int |
getWeakPower(IBlockAccess blockAccess,
BlockPos pos,
EnumFacing side) |
boolean |
hasComparatorInputOverride() |
boolean |
hasCustomBreakingProgress() |
int |
hashCode() |
boolean |
isBlockNormalCube() |
boolean |
isFullBlock() |
boolean |
isFullCube() |
boolean |
isFullyOpaque() |
boolean |
isNormalCube() |
boolean |
isOpaqueCube() |
boolean |
isSideSolid(IBlockAccess world,
BlockPos pos,
EnumFacing side) |
boolean |
isTranslucent() |
void |
neighborChanged(World worldIn,
BlockPos pos,
Block blockIn,
BlockPos fromPos)
Called when a neighboring block was changed and marks that this state should perform any checks during a
neighbor change.
|
boolean |
onBlockEventReceived(World worldIn,
BlockPos pos,
int id,
int param)
Called on both Client and Server when World#addBlockEvent is called.
|
boolean |
shouldSideBeRendered(IBlockAccess blockAccess,
BlockPos pos,
EnumFacing facing) |
boolean |
useNeighborBrightness() |
IBlockState |
withMirror(Mirror mirrorIn)
Returns the blockstate mirrored in the given way.
|
<T extends java.lang.Comparable<T>,V extends T> |
withProperty(IProperty<T> property,
V value)
Get a version of this BlockState with the given Property now set to the given value
|
IBlockState |
withRotation(Rotation rot)
Returns the blockstate with the given rotation.
|
cycleProperty, cyclePropertyValue, toString
protected StateImplementation(Block blockIn, <any> propertiesIn)
protected StateImplementation(Block blockIn, <any> propertiesIn, <any> propertyValueTable)
public java.util.Collection<IProperty<?>> getPropertyKeys()
public <T extends java.lang.Comparable<T>> T getValue(IProperty<T> property)
public <T extends java.lang.Comparable<T>,V extends T> IBlockState withProperty(IProperty<T> property, V value)
public <any> getProperties()
public Block getBlock()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void buildPropertyValueTable(java.util.Map<java.util.Map<IProperty<?>,java.lang.Comparable<?>>,BlockStateContainer.StateImplementation> map)
public Material getMaterial()
public boolean isFullBlock()
public boolean canEntitySpawn(Entity entityIn)
public int getLightOpacity()
public int getLightValue()
public boolean isTranslucent()
public boolean useNeighborBrightness()
public MapColor getMapColor()
public IBlockState withRotation(Rotation rot)
public IBlockState withMirror(Mirror mirrorIn)
public boolean isFullCube()
public boolean hasCustomBreakingProgress()
public EnumBlockRenderType getRenderType()
public int getPackedLightmapCoords(IBlockAccess source, BlockPos pos)
public float getAmbientOcclusionLightValue()
public boolean isBlockNormalCube()
public boolean isNormalCube()
public boolean canProvidePower()
public int getWeakPower(IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
public boolean hasComparatorInputOverride()
public float getPlayerRelativeBlockHardness(EntityPlayer player, World worldIn, BlockPos pos)
public int getStrongPower(IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
public EnumPushReaction getMobilityFlag()
public IBlockState getActualState(IBlockAccess blockAccess, BlockPos pos)
public AxisAlignedBB getSelectedBoundingBox(World worldIn, BlockPos pos)
public boolean shouldSideBeRendered(IBlockAccess blockAccess, BlockPos pos, EnumFacing facing)
public boolean isOpaqueCube()
public AxisAlignedBB getCollisionBoundingBox(IBlockAccess worldIn, BlockPos pos)
public void addCollisionBoxToList(World worldIn, BlockPos pos, AxisAlignedBB entityBox, java.util.List<AxisAlignedBB> collidingBoxes, Entity entityIn, boolean p_185908_6_)
public AxisAlignedBB getBoundingBox(IBlockAccess blockAccess, BlockPos pos)
public RayTraceResult collisionRayTrace(World worldIn, BlockPos pos, Vec3d start, Vec3d end)
public boolean isFullyOpaque()
public Vec3d getOffset(IBlockAccess access, BlockPos pos)
public boolean onBlockEventReceived(World worldIn, BlockPos pos, int id, int param)
public void neighborChanged(World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos)
public boolean causesSuffocation()
public <any> getPropertyValueTable()
getPropertyValueTable
in class BlockStateBase
public int getLightOpacity(IBlockAccess world, BlockPos pos)
public int getLightValue(IBlockAccess world, BlockPos pos)
public boolean isSideSolid(IBlockAccess world, BlockPos pos, EnumFacing side)
public boolean doesSideBlockRendering(IBlockAccess world, BlockPos pos, EnumFacing side)