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
- Mappings:
Namespace Name official chtintermediary net/minecraft/class_2680named net/minecraft/block/BlockState
-
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>CODECFields 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> codec) -
Method Summary
Modifier and Type Method Description protected BlockStateasBlockState()Methods inherited from class net.minecraft.block.AbstractBlock.AbstractBlockState
allowsSpawning, calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, exceedsCube, getAmbientOcclusionLightLevel, getBlock, getBlockEntityTicker, getCollisionShape, getCollisionShape, getComparatorOutput, getCullingFace, getCullingShape, getDroppedStacks, getFluidState, getHardness, getLuminance, getMapColor, getMaterial, getModelOffset, getOpacity, getOutlineShape, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasEmissiveLighting, hasRandomTicks, hasSidedTransparency, hasSolidTopSurface, hasSolidTopSurface, initShapeCache, isAir, isFullCube, isIn, isIn, isOf, isOpaque, isOpaqueFullCube, isSideInvisible, isSideSolid, isSideSolidFullSquare, isSolidBlock, isToolRequired, isTranslucent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, prepare, randomTick, rotate, scheduledTick, shouldBlockVision, shouldPostProcess, shouldSuffocate, updateNeighbors, updateNeighborsMethods inherited from class net.minecraft.state.State
contains, createCodec, createWithTable, cycle, get, getEntries, getNext, getOrEmpty, getProperties, toString, with
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLcht;b:Lcom/mojang/serialization/Codec;intermediary field_24734Lnet/minecraft/class_2680;field_24734:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/block/BlockState;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BlockState
public BlockState(Block block, ImmutableMap<Property<?>,Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<BlockState> codec)- Mappings:
Namespace Name Mixin selector official <init>Lchs$a;<init>(Lbwu;Lcom/google/common/collect/ImmutableMap;Lcom/mojang/serialization/MapCodec;)Vintermediary <init>Lnet/minecraft/class_4970$class_4971;<init>(Lnet/minecraft/class_2248;Lcom/google/common/collect/ImmutableMap;Lcom/mojang/serialization/MapCodec;)Vnamed <init>Lnet/minecraft/block/AbstractBlock$AbstractBlockState;<init>(Lnet/minecraft/block/Block;Lcom/google/common/collect/ImmutableMap;Lcom/mojang/serialization/MapCodec;)V
-
-
Method Details
-
asBlockState
- Specified by:
asBlockStatein classAbstractBlock.AbstractBlockState- Mappings:
Namespace Name Mixin selector official qLchs$a;q()Lcht;intermediary method_26233Lnet/minecraft/class_4970$class_4971;method_26233()Lnet/minecraft/class_2680;named asBlockStateLnet/minecraft/block/AbstractBlock$AbstractBlockState;asBlockState()Lnet/minecraft/block/BlockState;
-