net.minecraft.block

public abstract class AbstractBlock$AbstractBlockState

extends State<Block, BlockState> implements EntryConvertible<Block>

All mapped superinterfaces:

EntryConvertible

net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase
net.minecraft.class_4970$class_4971
net.minecraft.block.AbstractBlock$AbstractBlockState

Field summary

Modifier and TypeField
private static final Direction[]
DIRECTIONS
field_52644
DIRECTIONS
private static final VoxelShape[]
EMPTY_OCCLUSION_SHAPES
field_52645
EMPTY_CULLING_FACES
private static final VoxelShape[]
FULL_BLOCK_OCCLUSION_SHAPES
field_52646
FULL_CULLING_FACES
private final int
lightEmission
field_23167
luminance
private final boolean
useShapeForLightOcclusion
field_23168
hasSidedTransparency
private final boolean
isAir
field_23169
isAir
private final boolean
ignitedByLava
field_43392
burnable
private final boolean
liquid
field_44480
liquid
private boolean
legacySolid
field_44624
solid
private final PistonBehavior
pushReaction
field_43393
pistonBehavior
private final MapColor
mapColor
field_23171
mapColor
private final float
destroySpeed
field_23172
hardness
private final boolean
requiresCorrectToolForDrops
field_25184
toolRequired
private final boolean
canOcclude
field_23173
opaque
private final AbstractBlock$ContextPredicate
isRedstoneConductor
field_23174
solidBlockPredicate
private final AbstractBlock$ContextPredicate
isSuffocating
field_23175
suffocationPredicate
private final AbstractBlock$ContextPredicate
isViewBlocking
field_23176
blockVisionPredicate
private final AbstractBlock$PostProcessPredicate
postProcess
field_1_2487
postProcessPredicate
private final AbstractBlock$ContextPredicate
emissiveRendering
field_23178
emissiveLightingPredicate
private final AbstractBlock$Offsetter
offsetFunction
field_42817
offsetter
private final boolean
spawnTerrainParticles
field_40338
blockBreakParticles
private final NoteBlockInstrument
instrument
field_44625
instrument
private final boolean
replaceable
field_44626
replaceable
private AbstractBlock$AbstractBlockState$ShapeCache
cache
field_23166
shapeCache
private FluidState
fluidState
field_40339
fluidState
private boolean
isRandomlyTicking
field_40340
ticksRandomly
private boolean
solidRender
field_52639
opaqueFullCube
private VoxelShape
occlusionShape
field_52640
cullingShape
private VoxelShape[]
occlusionShapesByFace
field_52641
cullingFaces
private boolean
propagatesSkylightDown
field_52642
transparent
private int
lightDampening
field_52643
opacity

Constructor summary

ModifierConstructor
protected (Block block, Property<?>[] properties, Comparable<?>[] values)

Method summary

Modifier and TypeMethod
private boolean
calculateSolid()
method_51365()
shouldBeSolid()
public void
initCache()
method_26200()
initShapeCache()
public Block
getBlock()
method_26204()
getBlock()
public RegistryEntry<Block>
typeHolder()
method_40180()
getRegistryEntry()
public boolean
blocksMotion()
method_51366()
blocksMovement()
public boolean
isSolid()
method_51367()
isSolid()
public boolean
isValidSpawn(BlockGetter level, BlockPos pos, EntityType<?> type)
method_26170(class_1922 arg0, class_2338 arg1, class_1299<?> arg2)
allowsSpawning(BlockView world, BlockPos pos, EntityType<?> type)
public boolean
propagatesSkylightDown()
method_26167()
isTransparent()
public int
getLightDampening()
method_26193()
getOpacity()
public VoxelShape
getFaceOcclusionShape(Direction direction)
method_26173(class_2350 arg0)
getCullingFace(Direction direction)
public VoxelShape
getOcclusionShape()
method_26201()
getCullingShape()
public boolean
hasLargeCollisionShape()
method_26209()
exceedsCube()
public boolean
useShapeForLightOcclusion()
method_26211()
hasSidedTransparency()
public int
getLightEmission()
method_26213()
getLuminance()
public boolean
isAir()
method_26215()
isAir()
public boolean
ignitedByLava()
method_50011()
isBurnable()
public boolean
liquid()
method_51176()
isLiquid()
public MapColor
getMapColor(BlockGetter level, BlockPos pos)
method_26205(class_1922 arg0, class_2338 arg1)
getMapColor(BlockView world, BlockPos pos)
public BlockState
rotate(Rotation rotation)
method_26186(class_2470 arg0)
rotate(BlockRotation rotation)
public BlockState
mirror(Mirror mirror)
method_26185(class_2415 arg0)
mirror(BlockMirror mirror)
public BlockRenderType
getRenderShape()
method_26217()
getRenderType()
public boolean
emissiveRendering(BlockGetter level, BlockPos pos)
method_26208(class_1922 arg0, class_2338 arg1)
hasEmissiveLighting(BlockView world, BlockPos pos)
public float
getShadeBrightness(BlockGetter level, BlockPos pos)
method_26210(class_1922 arg0, class_2338 arg1)
getAmbientOcclusionLightLevel(BlockView world, BlockPos pos)
public boolean
isRedstoneConductor(BlockGetter level, BlockPos pos)
method_26212(class_1922 arg0, class_2338 arg1)
isSolidBlock(BlockView world, BlockPos pos)
public boolean
isSignalSource()
method_26219()
emitsRedstonePower()
public int
getSignal(BlockGetter level, BlockPos pos, Direction direction)
method_26195(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getWeakRedstonePower(BlockView world, BlockPos pos, Direction direction)
public boolean
hasAnalogOutputSignal()
method_26221()
hasComparatorOutput()
public int
getAnalogOutputSignal(Level level, BlockPos pos, Direction direction)
method_26176(class_1937 arg0, class_2338 arg1, class_2350 arg2)
getComparatorOutput(World world, BlockPos pos, Direction direction)
public float
getDestroySpeed(BlockGetter level, BlockPos pos)
method_26214(class_1922 arg0, class_2338 arg1)
getHardness(BlockView world, BlockPos pos)
public float
getDestroyProgress(Player player, BlockGetter level, BlockPos pos)
method_26165(class_1657 arg0, class_1922 arg1, class_2338 arg2)
calcBlockBreakingDelta(PlayerEntity player, BlockView world, BlockPos pos)
public int
getDirectSignal(BlockGetter level, BlockPos pos, Direction direction)
method_26203(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getStrongRedstonePower(BlockView world, BlockPos pos, Direction direction)
public PistonBehavior
getPistonPushReaction()
method_26223()
getPistonBehavior()
public boolean
isSolidRender()
method_26216()
isOpaqueFullCube()
public boolean
canOcclude()
method_26225()
isOpaque()
public boolean
skipRendering(BlockState neighborState, Direction direction)
method_26187(class_2680 arg0, class_2350 arg1)
isSideInvisible(BlockState state, Direction direction)
public VoxelShape
getShape(BlockGetter level, BlockPos pos)
method_26218(class_1922 arg0, class_2338 arg1)
getOutlineShape(BlockView world, BlockPos pos)
public VoxelShape
getShape(BlockGetter level, BlockPos pos, CollisionContext context)
method_26172(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getOutlineShape(BlockView world, BlockPos pos, ShapeContext context)
public VoxelShape
getCollisionShape(BlockGetter level, BlockPos pos)
method_26220(class_1922 arg0, class_2338 arg1)
getCollisionShape(BlockView world, BlockPos pos)
public VoxelShape
getCollisionShape(BlockGetter level, BlockPos pos, CollisionContext context)
method_26194(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getCollisionShape(BlockView world, BlockPos pos, ShapeContext context)
public VoxelShape
getEntityInsideCollisionShape(BlockGetter level, BlockPos pos, Entity entity)
method_64025(class_1922 arg0, class_2338 arg1, class_1297 arg2)
getInsideCollisionShape(BlockView world, BlockPos pos, Entity entity)
public VoxelShape
getBlockSupportShape(BlockGetter level, BlockPos pos)
method_26222(class_1922 arg0, class_2338 arg1)
getSidesShape(BlockView world, BlockPos pos)
public VoxelShape
getVisualShape(BlockGetter level, BlockPos pos, CollisionContext context)
method_26202(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getCameraCollisionShape(BlockView world, BlockPos pos, ShapeContext context)
public VoxelShape
getInteractionShape(BlockGetter level, BlockPos pos)
method_26224(class_1922 arg0, class_2338 arg1)
getRaycastShape(BlockView world, BlockPos pos)
public final boolean
entityCanStandOn(BlockGetter level, BlockPos pos, Entity entity)
method_26168(class_1922 arg0, class_2338 arg1, class_1297 arg2)
hasSolidTopSurface(BlockView world, BlockPos pos, Entity entity)
public final boolean
entityCanStandOnFace(BlockGetter level, BlockPos pos, Entity entity, Direction faceDirection)
method_26169(class_1922 arg0, class_2338 arg1, class_1297 arg2, class_2350 arg3)
isSolidSurface(BlockView world, BlockPos pos, Entity entity, Direction direction)
public Vec3d
getOffset(BlockPos pos)
method_26226(class_2338 arg0)
getModelOffset(BlockPos pos)
public boolean
hasOffsetFunction()
method_49228()
hasModelOffset()
public boolean
triggerEvent(Level level, BlockPos pos, int b0, int b1)
method_26177(class_1937 arg0, class_2338 arg1, int arg2, int arg3)
onSyncedBlockEvent(World world, BlockPos pos, int type, int data)
public void
handleNeighborChanged(Level level, BlockPos pos, Block block, Orientation orientation, boolean movedByPiston)
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
updateNeighbourShapes(LevelAccessor level, BlockPos pos, int updateFlags)
method_30101(class_1936 arg0, class_2338 arg1, int arg2)
updateNeighbors(WorldAccess world, BlockPos pos, int flags)
public final void
updateNeighbourShapes(LevelAccessor level, BlockPos pos, int updateFlags, int updateLimit)
method_26183(class_1936 arg0, class_2338 arg1, int arg2, int arg3)
updateNeighbors(WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)
public final void
updateIndirectNeighbourShapes(LevelAccessor level, BlockPos pos, int updateFlags)
method_30102(class_1936 arg0, class_2338 arg1, int arg2)
prepare(WorldAccess world, BlockPos pos, int flags)
public void
updateIndirectNeighbourShapes(LevelAccessor level, BlockPos pos, int updateFlags, int updateLimit)
method_26198(class_1936 arg0, class_2338 arg1, int arg2, int arg3)
prepare(WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)
public void
onPlace(Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
method_26182(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
onBlockAdded(World world, BlockPos pos, BlockState state, boolean notify)
public void
affectNeighborsAfterRemoval(ServerLevel level, BlockPos pos, boolean movedByPiston)
method_66478(class_3218 arg0, class_2338 arg1, boolean arg2)
onStateReplaced(ServerWorld world, BlockPos pos, boolean moved)
public void
onExplosionHit(ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> onHit)
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
tick(ServerLevel level, BlockPos pos, RandomSource random)
method_26192(class_3218 arg0, class_2338 arg1, class_5819 arg2)
scheduledTick(ServerWorld world, BlockPos pos, Random random)
public void
randomTick(ServerLevel level, BlockPos pos, RandomSource random)
method_26199(class_3218 arg0, class_2338 arg1, class_5819 arg2)
randomTick(ServerWorld world, BlockPos pos, Random random)
public void
entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
method_26178(class_1937 arg0, class_2338 arg1, class_1297 arg2, class_10774 arg3, boolean arg4)
onEntityCollision(World world, BlockPos pos, Entity entity, EntityCollisionHandler collisionHandler, boolean arg4)
public void
spawnAfterBreak(ServerLevel level, BlockPos pos, ItemStack tool, boolean dropExperience)
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>
getDrops(LootParams$Builder params)
method_26189(class_8567$class_8568 arg0)
getDroppedStacks(LootWorldContext$Builder builder)
public ActionResult
useItemOn(ItemStack itemStack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult)
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 ActionResult
useWithoutItem(Level level, Player player, BlockHitResult hitResult)
method_55781(class_1937 arg0, class_1657 arg1, class_3965 arg2)
onUse(World world, PlayerEntity player, BlockHitResult hit)
public void
attack(Level level, BlockPos pos, Player player)
method_26179(class_1937 arg0, class_2338 arg1, class_1657 arg2)
onBlockBreakStart(World world, BlockPos pos, PlayerEntity player)
public boolean
isSuffocating(BlockGetter level, BlockPos pos)
method_26228(class_1922 arg0, class_2338 arg1)
shouldSuffocate(BlockView world, BlockPos pos)
public boolean
isViewBlocking(BlockGetter level, BlockPos pos)
method_26230(class_1922 arg0, class_2338 arg1)
shouldBlockVision(BlockView world, BlockPos pos)
public BlockState
updateShape(LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
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
isPathfindable(PathComputationType type)
method_26171(class_10 arg0)
canPathfindThrough(NavigationType type)
public boolean
canBeReplaced(BlockPlaceContext context)
method_26166(class_1750 arg0)
canReplace(ItemPlacementContext context)
public boolean
canBeReplaced(Fluid fluid)
method_26188(class_3611 arg0)
canBucketPlace(Fluid fluid)
public boolean
canBeReplaced()
method_45474()
isReplaceable()
public boolean
canSurvive(LevelReader level, BlockPos pos)
method_26184(class_4538 arg0, class_2338 arg1)
canPlaceAt(WorldView world, BlockPos pos)
public BlockPos
getPostProcessPos(BlockGetter level, BlockPos pos)
method_1_3009(class_1922 arg0, class_2338 arg1)
getPostProcessPos(BlockView world, BlockPos pos)
public NamedScreenHandlerFactory
getMenuProvider(Level level, BlockPos pos)
method_26196(class_1937 arg0, class_2338 arg1)
createScreenHandlerFactory(World world, BlockPos pos)
public boolean
is(TagKey<Block> tag, Predicate<BlockBehaviour$BlockStateBase> predicate)
method_27851(class_6862<class_2248> arg0, Predicate<class_4970$class_4971> arg1)
isIn(TagKey<Block> tag, Predicate<AbstractBlock$AbstractBlockState> predicate)
public boolean
hasBlockEntity()
method_31709()
hasBlockEntity()
public boolean
shouldChangedStateKeepBlockEntity(BlockState oldState)
method_72668(class_2680 arg0)
keepBlockEntityWhenReplacedWith(BlockState state)
public <T extends BlockEntity> BlockEntityTicker<T>
getTicker(Level level, BlockEntityType<T> type)
method_31708(class_1937 arg0, class_2591<T> arg1)
getBlockEntityTicker(World world, BlockEntityType<T> blockEntityType)
public FluidState
getFluidState()
method_26227()
getFluidState()
public boolean
isRandomlyTicking()
method_26229()
hasRandomTicks()
public long
getSeed(BlockPos pos)
method_26190(class_2338 arg0)
getRenderingSeed(BlockPos pos)
public BlockSoundGroup
getSoundType()
method_26231()
getSoundGroup()
public void
onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile entity)
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
isFaceSturdy(BlockGetter level, BlockPos pos, Direction direction)
method_26206(class_1922 arg0, class_2338 arg1, class_2350 arg2)
isSideSolidFullSquare(BlockView world, BlockPos pos, Direction direction)
public boolean
isFaceSturdy(BlockGetter level, BlockPos pos, Direction direction, SupportType supportType)
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
isCollisionShapeFullBlock(BlockGetter level, BlockPos pos)
method_26234(class_1922 arg0, class_2338 arg1)
isFullCube(BlockView world, BlockPos pos)
public ItemStack
getCloneItemStack(LevelReader level, BlockPos pos, boolean includeData)
method_65171(class_4538 arg0, class_2338 arg1, boolean arg2)
getPickStack(WorldView world, BlockPos pos, boolean includeData)
protected abstract BlockState
asState()
method_26233()
asBlockState()
public boolean
requiresCorrectToolForDrops()
method_29291()
isToolRequired()
public boolean
shouldSpawnTerrainParticles()
method_45475()
hasBlockBreakParticles()
public NoteBlockInstrument
instrument()
method_51364()
getInstrument()
private static void
lambda$static$1(VoxelShape[] arg0)
method_61765(class_265[] arg0)
method_61765(VoxelShape[] direction)
private static void
lambda$static$0(VoxelShape[] arg0)
method_61766(class_265[] arg0)
method_61766(VoxelShape[] direction)