net.minecraft.world.level.block.state

public abstract class BlockBehaviour$BlockStateBase

extends StateHolder<Block, BlockState>

dwx$a
net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase
net.minecraft.class_4970$class_4971
net.minecraft.block.AbstractBlock$AbstractBlockState
net.minecraft.world.level.block.state.BlockBase$BlockData

Field summary

Modifier and TypeField
private static final Direction[]
a
DIRECTIONS
field_52644
DIRECTIONS
private static final VoxelShape[]
f
EMPTY_OCCLUSION_SHAPES
field_52645
EMPTY_CULLING_FACES
private static final VoxelShape[]
g
FULL_BLOCK_OCCLUSION_SHAPES
field_52646
FULL_CULLING_FACES
private final int
h
lightEmission
field_23167
luminance
private final boolean
i
useShapeForLightOcclusion
field_23168
hasSidedTransparency
private final boolean
j
isAir
field_23169
isAir
private final boolean
k
ignitedByLava
field_43392
burnable
private final boolean
l
liquid
field_44480
liquid
private boolean
m
legacySolid
field_44624
solid
private final PushReaction
n
pushReaction
field_43393
pistonBehavior
private final MapColor
o
mapColor
field_23171
mapColor
private final float
p
destroySpeed
field_23172
hardness
private final boolean
q
requiresCorrectToolForDrops
field_25184
toolRequired
private final boolean
r
canOcclude
field_23173
opaque
private final BlockBehaviour$StatePredicate
s
isRedstoneConductor
field_23174
solidBlockPredicate
private final BlockBehaviour$StatePredicate
t
isSuffocating
field_23175
suffocationPredicate
private final BlockBehaviour$StatePredicate
u
isViewBlocking
field_23176
blockVisionPredicate
private final BlockBehaviour$StatePredicate
v
hasPostProcess
field_23177
postProcessPredicate
private final BlockBehaviour$StatePredicate
w
emissiveRendering
field_23178
emissiveLightingPredicate
private final BlockBehaviour$OffsetFunction
x
offsetFunction
field_42817
offsetter
private final boolean
y
spawnTerrainParticles
field_40338
blockBreakParticles
private final NoteBlockInstrument
z
instrument
field_44625
instrument
private final boolean
A
replaceable
field_44626
replaceable
private BlockBehaviour$BlockStateBase$Cache
B
cache
field_23166
shapeCache
private FluidState
C
fluidState
field_40339
fluidState
private boolean
D
isRandomlyTicking
field_40340
ticksRandomly
private boolean
E
solidRender
field_52639
opaqueFullCube
private VoxelShape
F
occlusionShape
field_52640
cullingShape
private VoxelShape[]
G
occlusionShapesByFace
field_52641
cullingFaces
private boolean
H
propagatesSkylightDown
field_52642
transparent
private int
I
lightBlock
field_52643
opacity

Constructor summary

ModifierConstructor
protected (Block block, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<BlockState> codec)

Method summary

Modifier and TypeMethod
private boolean
H()
calculateSolid()
method_51365()
shouldBeSolid()
public void
a()
initCache()
method_26200()
initShapeCache()
public Block
b()
getBlock()
method_26204()
getBlock()
public Holder<Block>
c()
getBlockHolder()
method_41520()
getRegistryEntry()
public boolean
d()
blocksMotion()
method_51366()
blocksMovement()
public boolean
e()
isSolid()
method_51367()
isSolid()
public boolean
a(dfo arg0, ji arg1, but<?> arg2)
isValidSpawn(BlockGetter arg0, BlockPos arg1, EntityType<?> arg2)
method_26170(class_1922 arg0, class_2338 arg1, class_1299<?> arg2)
allowsSpawning(BlockView world, BlockPos pos, EntityType<?> type)
public boolean
f()
propagatesSkylightDown()
method_26167()
isTransparent()
public int
g()
getLightBlock()
method_26193()
getOpacity()
public VoxelShape
a(jn arg0)
getFaceOcclusionShape(Direction arg0)
method_26173(class_2350 arg0)
getCullingFace(Direction direction)
public VoxelShape
h()
getOcclusionShape()
method_26201()
getCullingShape()
public boolean
i()
hasLargeCollisionShape()
method_26209()
exceedsCube()
public boolean
j()
useShapeForLightOcclusion()
method_26211()
hasSidedTransparency()
public int
k()
getLightEmission()
method_26213()
getLuminance()
public boolean
l()
isAir()
method_26215()
isAir()
public boolean
m()
ignitedByLava()
method_50011()
isBurnable()
public boolean
n()
liquid()
method_51176()
isLiquid()
public MapColor
a(dfo arg0, ji arg1)
getMapColor(BlockGetter arg0, BlockPos arg1)
method_26205(class_1922 arg0, class_2338 arg1)
getMapColor(BlockView world, BlockPos pos)
public BlockState
a(dqf arg0)
rotate(Rotation arg0)
method_26186(class_2470 arg0)
rotate(BlockRotation rotation)
public BlockState
a(dom arg0)
mirror(Mirror arg0)
method_26185(class_2415 arg0)
mirror(BlockMirror mirror)
public RenderShape
o()
getRenderShape()
method_26217()
getRenderType()
public boolean
b(dfo arg0, ji arg1)
emissiveRendering(BlockGetter arg0, BlockPos arg1)
method_26208(class_1922 arg0, class_2338 arg1)
hasEmissiveLighting(BlockView world, BlockPos pos)
public float
c(dfo arg0, ji arg1)
getShadeBrightness(BlockGetter arg0, BlockPos arg1)
method_26210(class_1922 arg0, class_2338 arg1)
getAmbientOcclusionLightLevel(BlockView world, BlockPos pos)
public boolean
d(dfo arg0, ji arg1)
isRedstoneConductor(BlockGetter arg0, BlockPos arg1)
method_26212(class_1922 arg0, class_2338 arg1)
isSolidBlock(BlockView world, BlockPos pos)
public boolean
p()
isSignalSource()
method_26219()
emitsRedstonePower()
public int
a(dfo arg0, ji arg1, jn arg2)
getSignal(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_26195(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getWeakRedstonePower(BlockView world, BlockPos pos, Direction direction)
public boolean
q()
hasAnalogOutputSignal()
method_26221()
hasComparatorOutput()
public int
a(dgj arg0, ji arg1)
getAnalogOutputSignal(Level arg0, BlockPos arg1)
method_26176(class_1937 arg0, class_2338 arg1)
getComparatorOutput(World world, BlockPos pos)
public float
e(dfo arg0, ji arg1)
getDestroySpeed(BlockGetter arg0, BlockPos arg1)
method_26214(class_1922 arg0, class_2338 arg1)
getHardness(BlockView world, BlockPos pos)
public float
a(coy arg0, dfo arg1, ji arg2)
getDestroyProgress(Player arg0, BlockGetter arg1, BlockPos arg2)
method_26165(class_1657 arg0, class_1922 arg1, class_2338 arg2)
calcBlockBreakingDelta(PlayerEntity player, BlockView world, BlockPos pos)
public int
b(dfo arg0, ji arg1, jn arg2)
getDirectSignal(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_26203(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getStrongRedstonePower(BlockView world, BlockPos pos, Direction direction)
public PushReaction
r()
getPistonPushReaction()
method_26223()
getPistonBehavior()
public boolean
s()
isSolidRender()
method_26216()
isOpaqueFullCube()
public boolean
t()
canOcclude()
method_26225()
isOpaque()
public boolean
a(dwy arg0, jn arg1)
skipRendering(BlockState arg0, Direction arg1)
method_26187(class_2680 arg0, class_2350 arg1)
isSideInvisible(BlockState state, Direction direction)
public VoxelShape
f(dfo arg0, ji arg1)
getShape(BlockGetter arg0, BlockPos arg1)
method_26218(class_1922 arg0, class_2338 arg1)
getOutlineShape(BlockView world, BlockPos pos)
public VoxelShape
a(dfo arg0, ji arg1, fbg arg2)
getShape(BlockGetter arg0, BlockPos arg1, CollisionContext arg2)
method_26172(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getOutlineShape(BlockView world, BlockPos pos, ShapeContext context)
public VoxelShape
g(dfo arg0, ji arg1)
getCollisionShape(BlockGetter arg0, BlockPos arg1)
method_26220(class_1922 arg0, class_2338 arg1)
getCollisionShape(BlockView world, BlockPos pos)
public VoxelShape
b(dfo arg0, ji arg1, fbg arg2)
getCollisionShape(BlockGetter arg0, BlockPos arg1, CollisionContext arg2)
method_26194(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getCollisionShape(BlockView world, BlockPos pos, ShapeContext context)
public VoxelShape
h(dfo arg0, ji arg1)
getBlockSupportShape(BlockGetter arg0, BlockPos arg1)
method_26222(class_1922 arg0, class_2338 arg1)
getSidesShape(BlockView world, BlockPos pos)
public VoxelShape
c(dfo arg0, ji arg1, fbg arg2)
getVisualShape(BlockGetter arg0, BlockPos arg1, CollisionContext arg2)
method_26202(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getCameraCollisionShape(BlockView world, BlockPos pos, ShapeContext context)
public VoxelShape
i(dfo arg0, ji arg1)
getInteractionShape(BlockGetter arg0, BlockPos arg1)
method_26224(class_1922 arg0, class_2338 arg1)
getRaycastShape(BlockView world, BlockPos pos)
public final boolean
a(dfo arg0, ji arg1, bum arg2)
entityCanStandOn(BlockGetter arg0, BlockPos arg1, Entity arg2)
method_26168(class_1922 arg0, class_2338 arg1, class_1297 arg2)
hasSolidTopSurface(BlockView world, BlockPos pos, Entity entity)
public final boolean
a(dfo arg0, ji arg1, bum arg2, jn arg3)
entityCanStandOnFace(BlockGetter arg0, BlockPos arg1, Entity arg2, Direction arg3)
method_26169(class_1922 arg0, class_2338 arg1, class_1297 arg2, class_2350 arg3)
isSolidSurface(BlockView world, BlockPos pos, Entity entity, Direction direction)
public Vec3
a(ji arg0)
getOffset(BlockPos arg0)
method_26226(class_2338 arg0)
getModelOffset(BlockPos pos)
public boolean
u()
hasOffsetFunction()
method_49228()
hasModelOffset()
public boolean
a(dgj arg0, ji arg1, int arg2, int arg3)
triggerEvent(Level arg0, BlockPos arg1, int arg2, int arg3)
method_26177(class_1937 arg0, class_2338 arg1, int arg2, int arg3)
onSyncedBlockEvent(World world, BlockPos pos, int type, int data)
public void
a(dgj arg0, ji arg1, djn arg2, eui arg3, boolean arg4)
handleNeighborChanged(Level arg0, BlockPos arg1, Block arg2, Orientation arg3, boolean arg4)
method_26181(class_1937 arg0, class_2338 arg1, class_2248 arg2, class_9904 arg3, boolean arg4)
neighborUpdate(World world, BlockPos pos, Block sourceBlock, WireOrientation wireOrientation, boolean notify)
public final void
a(dgk arg0, ji arg1, int arg2)
updateNeighbourShapes(LevelAccessor arg0, BlockPos arg1, int arg2)
method_30101(class_1936 arg0, class_2338 arg1, int arg2)
updateNeighbors(WorldAccess world, BlockPos pos, int flags)
public final void
a(dgk arg0, ji arg1, int arg2, int arg3)
updateNeighbourShapes(LevelAccessor arg0, BlockPos arg1, int arg2, int arg3)
method_26183(class_1936 arg0, class_2338 arg1, int arg2, int arg3)
updateNeighbors(WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)
public final void
b(dgk arg0, ji arg1, int arg2)
updateIndirectNeighbourShapes(LevelAccessor arg0, BlockPos arg1, int arg2)
method_30102(class_1936 arg0, class_2338 arg1, int arg2)
prepare(WorldAccess world, BlockPos pos, int flags)
public void
b(dgk arg0, ji arg1, int arg2, int arg3)
updateIndirectNeighbourShapes(LevelAccessor arg0, BlockPos arg1, int arg2, int arg3)
method_26198(class_1936 arg0, class_2338 arg1, int arg2, int arg3)
prepare(WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)
public void
a(dgj arg0, ji arg1, dwy arg2, boolean arg3)
onPlace(Level arg0, BlockPos arg1, BlockState arg2, boolean arg3)
method_26182(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
onBlockAdded(World world, BlockPos pos, BlockState state, boolean notify)
public void
b(dgj arg0, ji arg1, dwy arg2, boolean arg3)
onRemove(Level arg0, BlockPos arg1, BlockState arg2, boolean arg3)
method_26197(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
onStateReplaced(World world, BlockPos pos, BlockState state, boolean moved)
public void
a(ard arg0, ji arg1, dgb arg2, BiConsumer<cwq, ji> arg3)
onExplosionHit(ServerLevel arg0, BlockPos arg1, Explosion arg2, BiConsumer<ItemStack, BlockPos> arg3)
method_55225(class_3218 arg0, class_2338 arg1, class_1927 arg2, BiConsumer<class_1799, class_2338> arg3)
onExploded(ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger)
public void
a(ard arg0, ji arg1, azh arg2)
tick(ServerLevel arg0, BlockPos arg1, RandomSource arg2)
method_26192(class_3218 arg0, class_2338 arg1, class_5819 arg2)
scheduledTick(ServerWorld world, BlockPos pos, Random random)
public void
b(ard arg0, ji arg1, azh arg2)
randomTick(ServerLevel arg0, BlockPos arg1, RandomSource arg2)
method_26199(class_3218 arg0, class_2338 arg1, class_5819 arg2)
randomTick(ServerWorld world, BlockPos pos, Random random)
public void
a(dgj arg0, ji arg1, bum arg2)
entityInside(Level arg0, BlockPos arg1, Entity arg2)
method_26178(class_1937 arg0, class_2338 arg1, class_1297 arg2)
onEntityCollision(World world, BlockPos pos, Entity entity)
public VoxelShape
b(dgj arg0, ji arg1)
getEntityInsideCollisionShape(Level arg0, BlockPos arg1)
method_64025(class_1937 arg0, class_2338 arg1)
getInsideCollisionShape(World world, BlockPos pos)
public void
a(ard arg0, ji arg1, cwq arg2, boolean arg3)
spawnAfterBreak(ServerLevel arg0, BlockPos arg1, ItemStack arg2, boolean arg3)
method_26180(class_3218 arg0, class_2338 arg1, class_1799 arg2, boolean arg3)
onStacksDropped(ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience)
public List<ItemStack>
a(evv$a arg0)
getDrops(LootParams$Builder arg0)
method_26189(class_8567$class_8568 arg0)
getDroppedStacks(LootWorldContext$Builder builder)
public InteractionResult
a(cwq arg0, dgj arg1, coy arg2, bsk arg3, fax arg4)
useItemOn(ItemStack arg0, Level arg1, Player arg2, InteractionHand arg3, BlockHitResult arg4)
method_55780(class_1799 arg0, class_1937 arg1, class_1657 arg2, class_1268 arg3, class_3965 arg4)
onUseWithItem(ItemStack stack, World world, PlayerEntity player, Hand hand, BlockHitResult hit)
public InteractionResult
a(dgj arg0, coy arg1, fax arg2)
useWithoutItem(Level arg0, Player arg1, BlockHitResult arg2)
method_55781(class_1937 arg0, class_1657 arg1, class_3965 arg2)
onUse(World world, PlayerEntity player, BlockHitResult hit)
public void
a(dgj arg0, ji arg1, coy arg2)
attack(Level arg0, BlockPos arg1, Player arg2)
method_26179(class_1937 arg0, class_2338 arg1, class_1657 arg2)
onBlockBreakStart(World world, BlockPos pos, PlayerEntity player)
public boolean
j(dfo arg0, ji arg1)
isSuffocating(BlockGetter arg0, BlockPos arg1)
method_26228(class_1922 arg0, class_2338 arg1)
shouldSuffocate(BlockView world, BlockPos pos)
public boolean
k(dfo arg0, ji arg1)
isViewBlocking(BlockGetter arg0, BlockPos arg1)
method_26230(class_1922 arg0, class_2338 arg1)
shouldBlockVision(BlockView world, BlockPos pos)
public BlockState
a(dgm arg0, dgy arg1, ji arg2, jn arg3, ji arg4, dwy arg5, azh arg6)
updateShape(LevelReader arg0, ScheduledTickAccess arg1, BlockPos arg2, Direction arg3, BlockPos arg4, BlockState arg5, RandomSource arg6)
method_26191(class_4538 arg0, class_10225 arg1, class_2338 arg2, class_2350 arg3, class_2338 arg4, class_2680 arg5, class_5819 arg6)
getStateForNeighborUpdate(WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random)
public boolean
a(etp arg0)
isPathfindable(PathComputationType arg0)
method_26171(class_10 arg0)
canPathfindThrough(NavigationType type)
public boolean
a(dah arg0)
canBeReplaced(BlockPlaceContext arg0)
method_26166(class_1750 arg0)
canReplace(ItemPlacementContext context)
public boolean
a(esz arg0)
canBeReplaced(Fluid arg0)
method_26188(class_3611 arg0)
canBucketPlace(Fluid fluid)
public boolean
v()
canBeReplaced()
method_45474()
isReplaceable()
public boolean
a(dgm arg0, ji arg1)
canSurvive(LevelReader arg0, BlockPos arg1)
method_26184(class_4538 arg0, class_2338 arg1)
canPlaceAt(WorldView world, BlockPos pos)
public boolean
l(dfo arg0, ji arg1)
hasPostProcess(BlockGetter arg0, BlockPos arg1)
method_26232(class_1922 arg0, class_2338 arg1)
shouldPostProcess(BlockView world, BlockPos pos)
public MenuProvider
c(dgj arg0, ji arg1)
getMenuProvider(Level arg0, BlockPos arg1)
method_26196(class_1937 arg0, class_2338 arg1)
createScreenHandlerFactory(World world, BlockPos pos)
public boolean
a(axf<djn> arg0)
is(TagKey<Block> arg0)
method_26164(class_6862<class_2248> arg0)
isIn(TagKey<Block> tag)
public boolean
a(axf<djn> arg0, Predicate<dwx$a> arg1)
is(TagKey<Block> arg0, Predicate<BlockBehaviour$BlockStateBase> arg1)
method_27851(class_6862<class_2248> arg0, Predicate<class_4970$class_4971> arg1)
isIn(TagKey<Block> tag, Predicate<AbstractBlock$AbstractBlockState> predicate)
public boolean
a(jv<djn> arg0)
is(HolderSet<Block> arg0)
method_40143(class_6885<class_2248> arg0)
isIn(RegistryEntryList<Block> blocks)
public boolean
a(jr<djn> arg0)
is(Holder<Block> arg0)
method_53257(class_6880<class_2248> arg0)
isOf(RegistryEntry<Block> blockEntry)
public Stream<TagKey<Block>>
w()
getTags()
method_40144()
streamTags()
public boolean
x()
hasBlockEntity()
method_31709()
hasBlockEntity()
public <T extends BlockEntity> BlockEntityTicker<T>
a(dgj arg0, duc<T> arg1)
getTicker(Level arg0, BlockEntityType<T> arg1)
method_31708(class_1937 arg0, class_2591<T> arg1)
getBlockEntityTicker(World world, BlockEntityType<T> blockEntityType)
public boolean
a(djn arg0)
is(Block arg0)
method_27852(class_2248 arg0)
isOf(Block block)
public boolean
a(aku<djn> arg0)
is(ResourceKey<Block> arg0)
method_54097(class_5321<class_2248> arg0)
matchesKey(RegistryKey<Block> key)
public FluidState
y()
getFluidState()
method_26227()
getFluidState()
public boolean
z()
isRandomlyTicking()
method_26229()
hasRandomTicks()
public long
b(ji arg0)
getSeed(BlockPos arg0)
method_26190(class_2338 arg0)
getRenderingSeed(BlockPos pos)
public SoundType
A()
getSoundType()
method_26231()
getSoundGroup()
public void
a(dgj arg0, dwy arg1, fax arg2, cpr arg3)
onProjectileHit(Level arg0, BlockState arg1, BlockHitResult arg2, Projectile arg3)
method_26175(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1676 arg3)
onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)
public boolean
c(dfo arg0, ji arg1, jn arg2)
isFaceSturdy(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_26206(class_1922 arg0, class_2338 arg1, class_2350 arg2)
isSideSolidFullSquare(BlockView world, BlockPos pos, Direction direction)
public boolean
a(dfo arg0, ji arg1, jn arg2, drt arg3)
isFaceSturdy(BlockGetter arg0, BlockPos arg1, Direction arg2, SupportType arg3)
method_30368(class_1922 arg0, class_2338 arg1, class_2350 arg2, class_5431 arg3)
isSideSolid(BlockView world, BlockPos pos, Direction direction, SideShapeType shapeType)
public boolean
m(dfo arg0, ji arg1)
isCollisionShapeFullBlock(BlockGetter arg0, BlockPos arg1)
method_26234(class_1922 arg0, class_2338 arg1)
isFullCube(BlockView world, BlockPos pos)
public ItemStack
a(dgm arg0, ji arg1, boolean arg2)
getCloneItemStack(LevelReader arg0, BlockPos arg1, boolean arg2)
method_65171(class_4538 arg0, class_2338 arg1, boolean arg2)
getPickStack(WorldView world, BlockPos pos, boolean includeData)
protected abstract BlockState
B()
asState()
method_26233()
asBlockState()
public boolean
C()
requiresCorrectToolForDrops()
method_29291()
isToolRequired()
public boolean
D()
shouldSpawnTerrainParticles()
method_45475()
hasBlockBreakParticles()
public NoteBlockInstrument
E()
instrument()
method_51364()
getInstrument()