Class BlockState
java.lang.Object
net.minecraft.world.level.block.state.StateHolder<Block, BlockState>
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase
net.minecraft.world.level.block.state.BlockState
- All Implemented Interfaces:
TypedInstance<Block>, IBlockStateExtension, TypedInstanceExtension<Block>, IWithData<Block>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockState> private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Block, BlockState>> static final com.mojang.serialization.Codec<BlockState> Fields inherited from class StateHolder
ID_TAG, owner, PROPERTIES_TAG -
Constructor Summary
ConstructorsConstructorDescriptionBlockState(Block owner, Property<?>[] propertyKeys, Comparable<?>[] propertyValues) -
Method Summary
Methods inherited from class BlockBehaviour.BlockStateBase
affectNeighborsAfterRemoval, attack, canBeReplaced, canBeReplaced, canBeReplaced, canOcclude, canSurvive, copyProperty, emissiveRendering, entityCanStandOn, entityCanStandOnFace, entityInside, getAnalogOutputSignal, getBlock, getBlockSupportShape, getCloneItemStack, getCollisionShape, getCollisionShape, getDestroyProgress, getDestroySpeed, getDirectSignal, getDrops, getEntityInsideCollisionShape, getFaceOcclusionShape, getFluidState, getInteractionShape, getLightDampening, getLightEmission, getMapColor, getMenuProvider, getOcclusionShape, getOffset, getOwnSignal, getPistonPushReaction, getPostProcessPos, getRenderShape, getSeed, getShadeBrightness, getShape, getShape, getSignal, getSoundType, getTicker, getVisualShape, handleNeighborChanged, hasAnalogOutputSignal, hasBlockEntity, hasLargeCollisionShape, hasOffsetFunction, ignitedByLava, initCache, instrument, is, isAir, isCollisionShapeFullBlock, isFaceSturdy, isFaceSturdy, isLightPermeable, isPathfindable, isRandomlyTicking, isRedstoneConductor, isSignalSource, isSolid, isSolidRender, isSuffocating, isValidSpawn, isViewBlocking, liquid, mirror, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, randomTick, requiresCorrectToolForDrops, rotate, shouldChangedStateKeepBlockEntity, shouldRedstoneWireConnectTo, shouldSpawnTerrainParticles, showAsInteractableInSpectatorMode, skipRendering, spawnAfterBreak, tick, triggerEvent, typeHolder, updateIndirectNeighbourShapes, updateIndirectNeighbourShapes, updateNeighbourShapes, updateNeighbourShapes, updateShape, useItemOn, useShapeForLightOcclusion, useWithoutItem, withPropertiesOfMethods inherited from class StateHolder
codec, cycle, equals, findNextInCollection, getOptionalValue, getProperties, getValue, getValueOrElse, getValues, hashCode, hasProperty, initializeNeighbors, isSingletonState, setValue, toString, trySetValueMethods inherited from interface IBlockStateExtension
addLandingEffects, addRunningEffects, canBeHydrated, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBlockPathType, getBounceRestitution, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getRelocability, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, ignitedByLava, isBurning, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isScaffolding, isSlimeBlock, isStickyBlock, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, playFallSound, playStepSound, rotate, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHidingMethods inherited from interface TypedInstanceExtension
getData
-
Field Details
-
FULL_CODEC
-
CONSTANT_OR_DISPATCH_CODEC
private static final com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<Block, BlockState>> CONSTANT_OR_DISPATCH_CODEC -
CODEC
-
-
Constructor Details
-
BlockState
-
-
Method Details
-
asState
- Specified by:
asStatein classBlockBehaviour.BlockStateBase
-