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 classAbstractBlock.AbstractBlockState.ShapeCache -
Field Summary
Fields Modifier and Type Field Description private AbstractBlock.ContextPredicateblockVisionPredicateprivate AbstractBlock.ContextPredicateemissiveLightingPredicateprivate floathardnessprivate booleanhasSidedTransparencyprivate booleanisAirprivate intluminanceprivate MapColormapColorprivate Materialmaterialprivate booleanopaqueprivate AbstractBlock.ContextPredicatepostProcessPredicateprotected AbstractBlock.AbstractBlockState.ShapeCacheshapeCacheprivate AbstractBlock.ContextPredicatesolidBlockPredicateprivate AbstractBlock.ContextPredicatesuffocationPredicateprivate booleantoolRequired -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBlockState(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
-
mapColor
-
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() -
getMapColor
-
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
-
isIn
-
hasBlockEntity
public boolean hasBlockEntity() -
getBlockEntityTicker
@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getBlockEntityTicker(World world, BlockEntityType<T> blockEntityType) -
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()
-