Package net.minecraft.block
Class BlockState
java.lang.Object
net.minecraft.state.State<Block,BlockState>
net.minecraft.block.AbstractBlock.AbstractBlockState
net.minecraft.block.BlockState
public class BlockState extends AbstractBlock.AbstractBlockState
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock.AbstractBlockState
AbstractBlock.AbstractBlockState.ShapeCache
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<BlockState>
CODEC
Fields inherited from class net.minecraft.block.AbstractBlock.AbstractBlockState
shapeCache
-
Constructor Summary
Constructors Constructor Description BlockState(Block block, ImmutableMap<Property<?>,Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<BlockState> mapCodec)
-
Method Summary
Modifier and Type Method Description protected BlockState
asBlockState()
Methods inherited from class net.minecraft.block.AbstractBlock.AbstractBlockState
allowsSpawning, calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, exceedsCube, getAmbientOcclusionLightLevel, getBlock, getCollisionShape, getCollisionShape, getComparatorOutput, getCullingFace, getCullingShape, getDroppedStacks, getFluidState, getHardness, getLuminance, getMaterial, getModelOffset, getOpacity, getOutlineShape, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTopMaterialColor, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasEmissiveLighting, hasRandomTicks, hasSidedTransparency, hasSolidTopSurface, hasSolidTopSurface, initShapeCache, isAir, isFullCube, isIn, isOf, isOpaque, isOpaqueFullCube, isSideInvisible, isSideSolid, isSideSolidFullSquare, isSolidBlock, isToolRequired, isTranslucent, method_27851, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, prepare, randomTick, rotate, scheduledTick, shouldBlockVision, shouldPostProcess, shouldSuffocate, updateNeighbors, updateNeighbors
Methods inherited from class net.minecraft.state.State
contains, createCodec, createWithTable, cycle, get, getEntries, getNext, getProperties, method_28500, toString, with
-
Field Details
-
CODEC
-
-
Constructor Details
-
BlockState
public BlockState(Block block, ImmutableMap<Property<?>,Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<BlockState> mapCodec)
-
-
Method Details
-
asBlockState
- Specified by:
asBlockState
in classAbstractBlock.AbstractBlockState
-