public class MCBlockProperties
extends java.lang.Object
implements crafttweaker.api.block.IBlockProperties
Constructor and Description |
---|
MCBlockProperties(net.minecraft.block.state.IBlockProperties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEntitySpawn(crafttweaker.api.entity.IEntity entity) |
boolean |
canProvidePower() |
boolean |
causesSuffocation() |
boolean |
doesSideBlockRendering(crafttweaker.api.world.IBlockAccess access,
crafttweaker.api.world.IBlockPos pos,
crafttweaker.api.world.IFacing facing) |
crafttweaker.api.block.IBlockState |
getActualState(crafttweaker.api.world.IBlockAccess access,
crafttweaker.api.world.IBlockPos pos) |
float |
getBlockHardness(crafttweaker.api.world.IWorld world,
crafttweaker.api.world.IBlockPos pos) |
int |
getComparatorInputOverride(crafttweaker.api.world.IWorld world,
crafttweaker.api.world.IBlockPos blockPos) |
java.lang.Object |
getInternal() |
int |
getLightOpacity(crafttweaker.api.world.IBlockAccess access,
crafttweaker.api.world.IBlockPos pos) |
int |
getLightValue(crafttweaker.api.world.IBlockAccess access,
crafttweaker.api.world.IBlockPos blockPos) |
crafttweaker.api.block.IMaterial |
getMaterial() |
crafttweaker.api.block.IMobilityFlag |
getMobilityFlag() |
float |
getPlayerRelativeBlockHardness(crafttweaker.api.player.IPlayer player,
crafttweaker.api.world.IWorld world,
crafttweaker.api.world.IBlockPos pos) |
int |
getStrongPower(crafttweaker.api.world.IBlockAccess access,
crafttweaker.api.world.IBlockPos pos,
crafttweaker.api.world.IFacing facing) |
int |
getWeakPower(crafttweaker.api.world.IBlockAccess access,
crafttweaker.api.world.IBlockPos blockPos,
crafttweaker.api.world.IFacing facing) |
boolean |
hasCustomBreakingProgress() |
boolean |
isBlockNormalCube() |
boolean |
isFullBlock() |
boolean |
isFullCube() |
boolean |
isNormalCube() |
boolean |
isOpaqueCube() |
boolean |
isSideSolid(crafttweaker.api.world.IBlockAccess access,
crafttweaker.api.world.IBlockPos pos,
crafttweaker.api.world.IFacing facing) |
boolean |
useNeighborBrightness() |
public MCBlockProperties(net.minecraft.block.state.IBlockProperties properties)
public int getLightValue(crafttweaker.api.world.IBlockAccess access, crafttweaker.api.world.IBlockPos blockPos)
getLightValue
in interface crafttweaker.api.block.IBlockProperties
public boolean canProvidePower()
canProvidePower
in interface crafttweaker.api.block.IBlockProperties
public int getWeakPower(crafttweaker.api.world.IBlockAccess access, crafttweaker.api.world.IBlockPos blockPos, crafttweaker.api.world.IFacing facing)
getWeakPower
in interface crafttweaker.api.block.IBlockProperties
public int getComparatorInputOverride(crafttweaker.api.world.IWorld world, crafttweaker.api.world.IBlockPos blockPos)
getComparatorInputOverride
in interface crafttweaker.api.block.IBlockProperties
public crafttweaker.api.block.IMobilityFlag getMobilityFlag()
getMobilityFlag
in interface crafttweaker.api.block.IBlockProperties
public java.lang.Object getInternal()
getInternal
in interface crafttweaker.api.block.IBlockProperties
public crafttweaker.api.block.IMaterial getMaterial()
getMaterial
in interface crafttweaker.api.block.IBlockProperties
public boolean canEntitySpawn(crafttweaker.api.entity.IEntity entity)
canEntitySpawn
in interface crafttweaker.api.block.IBlockProperties
public boolean causesSuffocation()
causesSuffocation
in interface crafttweaker.api.block.IBlockProperties
public boolean doesSideBlockRendering(crafttweaker.api.world.IBlockAccess access, crafttweaker.api.world.IBlockPos pos, crafttweaker.api.world.IFacing facing)
doesSideBlockRendering
in interface crafttweaker.api.block.IBlockProperties
public crafttweaker.api.block.IBlockState getActualState(crafttweaker.api.world.IBlockAccess access, crafttweaker.api.world.IBlockPos pos)
getActualState
in interface crafttweaker.api.block.IBlockProperties
public float getBlockHardness(crafttweaker.api.world.IWorld world, crafttweaker.api.world.IBlockPos pos)
getBlockHardness
in interface crafttweaker.api.block.IBlockProperties
public int getLightOpacity(crafttweaker.api.world.IBlockAccess access, crafttweaker.api.world.IBlockPos pos)
getLightOpacity
in interface crafttweaker.api.block.IBlockProperties
public float getPlayerRelativeBlockHardness(crafttweaker.api.player.IPlayer player, crafttweaker.api.world.IWorld world, crafttweaker.api.world.IBlockPos pos)
getPlayerRelativeBlockHardness
in interface crafttweaker.api.block.IBlockProperties
public int getStrongPower(crafttweaker.api.world.IBlockAccess access, crafttweaker.api.world.IBlockPos pos, crafttweaker.api.world.IFacing facing)
getStrongPower
in interface crafttweaker.api.block.IBlockProperties
public boolean hasCustomBreakingProgress()
hasCustomBreakingProgress
in interface crafttweaker.api.block.IBlockProperties
public boolean isBlockNormalCube()
isBlockNormalCube
in interface crafttweaker.api.block.IBlockProperties
public boolean isFullBlock()
isFullBlock
in interface crafttweaker.api.block.IBlockProperties
public boolean isFullCube()
isFullCube
in interface crafttweaker.api.block.IBlockProperties
public boolean isNormalCube()
isNormalCube
in interface crafttweaker.api.block.IBlockProperties
public boolean isOpaqueCube()
isOpaqueCube
in interface crafttweaker.api.block.IBlockProperties
public boolean isSideSolid(crafttweaker.api.world.IBlockAccess access, crafttweaker.api.world.IBlockPos pos, crafttweaker.api.world.IFacing facing)
isSideSolid
in interface crafttweaker.api.block.IBlockProperties
public boolean useNeighborBrightness()
useNeighborBrightness
in interface crafttweaker.api.block.IBlockProperties