net.minecraft.world.level.block.state

public abstract class BlockBehaviour$BlockStateBase

extends StateHolder<Block, BlockState>

dxu$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(dgn arg0, jh arg1, bvr<?> 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(jm 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(dgn arg0, jh arg1)
getMapColor(BlockGetter arg0, BlockPos arg1)
method_26205(class_1922 arg0, class_2338 arg1)
getMapColor(BlockView world, BlockPos pos)
public BlockState
a(drc arg0)
rotate(Rotation arg0)
method_26186(class_2470 arg0)
rotate(BlockRotation rotation)
public BlockState
a(dpl arg0)
mirror(Mirror arg0)
method_26185(class_2415 arg0)
mirror(BlockMirror mirror)
public RenderShape
o()
getRenderShape()
method_26217()
getRenderType()
public boolean
b(dgn arg0, jh arg1)
emissiveRendering(BlockGetter arg0, BlockPos arg1)
method_26208(class_1922 arg0, class_2338 arg1)
hasEmissiveLighting(BlockView world, BlockPos pos)
public float
c(dgn arg0, jh arg1)
getShadeBrightness(BlockGetter arg0, BlockPos arg1)
method_26210(class_1922 arg0, class_2338 arg1)
getAmbientOcclusionLightLevel(BlockView world, BlockPos pos)
public boolean
d(dgn arg0, jh 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(dgn arg0, jh arg1, jm 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(dhi arg0, jh arg1)
getAnalogOutputSignal(Level arg0, BlockPos arg1)
method_26176(class_1937 arg0, class_2338 arg1)
getComparatorOutput(World world, BlockPos pos)
public float
e(dgn arg0, jh arg1)
getDestroySpeed(BlockGetter arg0, BlockPos arg1)
method_26214(class_1922 arg0, class_2338 arg1)
getHardness(BlockView world, BlockPos pos)
public float
a(cpx arg0, dgn arg1, jh 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(dgn arg0, jh arg1, jm 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(dxv arg0, jm arg1)
skipRendering(BlockState arg0, Direction arg1)
method_26187(class_2680 arg0, class_2350 arg1)
isSideInvisible(BlockState state, Direction direction)
public VoxelShape
f(dgn arg0, jh arg1)
getShape(BlockGetter arg0, BlockPos arg1)
method_26218(class_1922 arg0, class_2338 arg1)
getOutlineShape(BlockView world, BlockPos pos)
public VoxelShape
a(dgn arg0, jh arg1, fcd 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(dgn arg0, jh arg1)
getCollisionShape(BlockGetter arg0, BlockPos arg1)
method_26220(class_1922 arg0, class_2338 arg1)
getCollisionShape(BlockView world, BlockPos pos)
public VoxelShape
b(dgn arg0, jh arg1, fcd 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(dgn arg0, jh arg1)
getBlockSupportShape(BlockGetter arg0, BlockPos arg1)
method_26222(class_1922 arg0, class_2338 arg1)
getSidesShape(BlockView world, BlockPos pos)
public VoxelShape
c(dgn arg0, jh arg1, fcd 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(dgn arg0, jh arg1)
getInteractionShape(BlockGetter arg0, BlockPos arg1)
method_26224(class_1922 arg0, class_2338 arg1)
getRaycastShape(BlockView world, BlockPos pos)
public final boolean
a(dgn arg0, jh arg1, bvk 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(dgn arg0, jh arg1, bvk arg2, jm 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(jh arg0)
getOffset(BlockPos arg0)
method_26226(class_2338 arg0)
getModelOffset(BlockPos pos)
public boolean
u()
hasOffsetFunction()
method_49228()
hasModelOffset()
public boolean
a(dhi arg0, jh 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(dhi arg0, jh arg1, dkm arg2, evf 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(dhj arg0, jh 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(dhj arg0, jh 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(dhj arg0, jh 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(dhj arg0, jh 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(dhi arg0, jh arg1, dxv 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(dhi arg0, jh arg1, dxv 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(ash arg0, jh arg1, dha arg2, BiConsumer<cxp, jh> 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(ash arg0, jh arg1, bam 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(ash arg0, jh arg1, bam 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(dhi arg0, jh arg1, bvk 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(dhi arg0, jh arg1)
getEntityInsideCollisionShape(Level arg0, BlockPos arg1)
method_64025(class_1937 arg0, class_2338 arg1)
getInsideCollisionShape(World world, BlockPos pos)
public void
a(ash arg0, jh arg1, cxp 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(ews$a arg0)
getDrops(LootParams$Builder arg0)
method_26189(class_8567$class_8568 arg0)
getDroppedStacks(LootWorldContext$Builder builder)
public InteractionResult
a(cxp arg0, dhi arg1, cpx arg2, bti arg3, fbu 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(dhi arg0, cpx arg1, fbu 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(dhi arg0, jh arg1, cpx 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(dgn arg0, jh arg1)
isSuffocating(BlockGetter arg0, BlockPos arg1)
method_26228(class_1922 arg0, class_2338 arg1)
shouldSuffocate(BlockView world, BlockPos pos)
public boolean
k(dgn arg0, jh arg1)
isViewBlocking(BlockGetter arg0, BlockPos arg1)
method_26230(class_1922 arg0, class_2338 arg1)
shouldBlockVision(BlockView world, BlockPos pos)
public BlockState
a(dhl arg0, dhx arg1, jh arg2, jm arg3, jh arg4, dxv arg5, bam 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(eum arg0)
isPathfindable(PathComputationType arg0)
method_26171(class_10 arg0)
canPathfindThrough(NavigationType type)
public boolean
a(dbg arg0)
canBeReplaced(BlockPlaceContext arg0)
method_26166(class_1750 arg0)
canReplace(ItemPlacementContext context)
public boolean
a(etw arg0)
canBeReplaced(Fluid arg0)
method_26188(class_3611 arg0)
canBucketPlace(Fluid fluid)
public boolean
v()
canBeReplaced()
method_45474()
isReplaceable()
public boolean
a(dhl arg0, jh arg1)
canSurvive(LevelReader arg0, BlockPos arg1)
method_26184(class_4538 arg0, class_2338 arg1)
canPlaceAt(WorldView world, BlockPos pos)
public boolean
l(dgn arg0, jh arg1)
hasPostProcess(BlockGetter arg0, BlockPos arg1)
method_26232(class_1922 arg0, class_2338 arg1)
shouldPostProcess(BlockView world, BlockPos pos)
public MenuProvider
c(dhi arg0, jh arg1)
getMenuProvider(Level arg0, BlockPos arg1)
method_26196(class_1937 arg0, class_2338 arg1)
createScreenHandlerFactory(World world, BlockPos pos)
public boolean
a(ayk<dkm> arg0)
is(TagKey<Block> arg0)
method_26164(class_6862<class_2248> arg0)
isIn(TagKey<Block> tag)
public boolean
a(ayk<dkm> arg0, Predicate<dxu$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(ju<dkm> arg0)
is(HolderSet<Block> arg0)
method_40143(class_6885<class_2248> arg0)
isIn(RegistryEntryList<Block> blocks)
public boolean
a(jq<dkm> 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(dhi arg0, duz<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(dkm arg0)
is(Block arg0)
method_27852(class_2248 arg0)
isOf(Block block)
public boolean
a(aly<dkm> 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(jh arg0)
getSeed(BlockPos arg0)
method_26190(class_2338 arg0)
getRenderingSeed(BlockPos pos)
public SoundType
A()
getSoundType()
method_26231()
getSoundGroup()
public void
a(dhi arg0, dxv arg1, fbu arg2, cqq 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(dgn arg0, jh arg1, jm 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(dgn arg0, jh arg1, jm arg2, dsq 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(dgn arg0, jh arg1)
isCollisionShapeFullBlock(BlockGetter arg0, BlockPos arg1)
method_26234(class_1922 arg0, class_2338 arg1)
isFullCube(BlockView world, BlockPos pos)
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()