Package net.minecraft.block
Class AbstractBlock.AbstractBlockState
- Direct Known Subclasses:
BlockState
- Enclosing class:
- AbstractBlock
public abstract static class AbstractBlock.AbstractBlockState extends State<Block,BlockState>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
AbstractBlock.AbstractBlockState.ShapeCache
-
Field Summary
Fields Modifier and Type Field Description private AbstractBlock.ContextPredicate
blockVisionPredicate
private AbstractBlock.ContextPredicate
emissiveLightingPredicate
private float
hardness
private boolean
hasSidedTransparency
private boolean
isAir
private int
luminance
private Material
material
private MaterialColor
materialColor
private boolean
opaque
private AbstractBlock.ContextPredicate
postProcessPredicate
protected AbstractBlock.AbstractBlockState.ShapeCache
shapeCache
private AbstractBlock.ContextPredicate
solidBlockPredicate
private AbstractBlock.ContextPredicate
suffocationPredicate
private boolean
toolRequired
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBlockState(Block block, ImmutableMap<Property<?>,Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<BlockState> mapCodec)
-
Method Summary
Methods inherited from class net.minecraft.state.State
contains, createCodec, createWithTable, cycle, get, getEntries, getNext, getProperties, method_28500, toString, with
-
Field Details
-
luminance
private final int luminance -
hasSidedTransparency
private final boolean hasSidedTransparency -
isAir
private final boolean isAir -
material
-
materialColor
-
hardness
private final float hardness -
toolRequired
private final boolean toolRequired -
opaque
private final boolean opaque -
solidBlockPredicate
-
suffocationPredicate
-
blockVisionPredicate
-
postProcessPredicate
-
emissiveLightingPredicate
-
shapeCache
-
-
Constructor Details
-
AbstractBlockState
protected AbstractBlockState(Block block, ImmutableMap<Property<?>,Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<BlockState> mapCodec)
-
-
Method Details
-
initShapeCache
public void initShapeCache() -
getBlock
-
getMaterial
-
allowsSpawning
-
isTranslucent
-
getOpacity
-
getCullingFace
-
getCullingShape
-
exceedsCube
public boolean exceedsCube() -
hasSidedTransparency
public boolean hasSidedTransparency() -
getLuminance
public int getLuminance()Returns the light level emitted by this block state. -
isAir
public boolean isAir() -
getTopMaterialColor
-
rotate
-
mirror
-
getRenderType
-
hasEmissiveLighting
-
getAmbientOcclusionLightLevel
-
isSolidBlock
-
emitsRedstonePower
public boolean emitsRedstonePower() -
getWeakRedstonePower
-
hasComparatorOutput
public boolean hasComparatorOutput() -
getComparatorOutput
-
getHardness
-
calcBlockBreakingDelta
-
getStrongRedstonePower
-
getPistonBehavior
-
isOpaqueFullCube
-
isOpaque
public boolean isOpaque() -
isSideInvisible
-
getOutlineShape
-
getOutlineShape
-
getCollisionShape
-
getCollisionShape
-
getSidesShape
-
getVisualShape
-
getRaycastShape
-
hasSolidTopSurface
-
hasSolidTopSurface
-
getModelOffset
-
onSyncedBlockEvent
-
neighborUpdate
-
updateNeighbors
-
updateNeighbors
-
prepare
-
prepare
-
onBlockAdded
-
onStateReplaced
-
scheduledTick
-
randomTick
-
onEntityCollision
-
onStacksDropped
-
getDroppedStacks
-
onUse
-
onBlockBreakStart
-
shouldSuffocate
-
shouldBlockVision
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(Direction direction, BlockState state, WorldAccess world, BlockPos pos, BlockPos fromPos) -
canReplace
-
canBucketPlace
-
canPlaceAt
-
shouldPostProcess
-
createScreenHandlerFactory
-
isIn
-
method_27851
-
isOf
-
getFluidState
-
hasRandomTicks
public boolean hasRandomTicks() -
getRenderingSeed
-
getSoundGroup
-
onProjectileHit
public void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) -
isSideSolidFullSquare
-
isSideSolid
public boolean isSideSolid(BlockView world, BlockPos pos, Direction direction, SideShapeType shapeType) -
isFullCube
-
asBlockState
-
isToolRequired
public boolean isToolRequired()
-