net.minecraft.world.level.block

public class Block

extends BlockBehaviour implements ItemLike

All mapped superinterfaces:

FeatureElement, ItemLike

dkm
net.minecraft.world.level.block.Block
net.minecraft.class_2248
net.minecraft.block.Block
net.minecraft.world.level.block.Block

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<Block>
p
CODEC
field_46280
CODEC
private static final org.slf4j.Logger
a
LOGGER
field_10638
LOGGER
private final Holder$Reference<Block>
b
builtInRegistryHolder
field_36404
registryEntry
public static final IdMapper<BlockState>
q
BLOCK_STATE_REGISTRY
field_10651
STATE_IDS
private static final com.google.common.cache.LoadingCache<VoxelShape, Boolean>
c
SHAPE_FULL_BLOCK_CACHE
field_19312
FULL_CUBE_SHAPE_CACHE
public static final int
r
UPDATE_NEIGHBORS
field_31027
NOTIFY_NEIGHBORS
public static final int
s
UPDATE_CLIENTS
field_31028
NOTIFY_LISTENERS
public static final int
t
UPDATE_INVISIBLE
field_31029
NO_REDRAW
public static final int
u
UPDATE_IMMEDIATE
field_31030
REDRAW_ON_MAIN_THREAD
public static final int
v
UPDATE_KNOWN_SHAPE
field_31031
FORCE_STATE
public static final int
w
UPDATE_SUPPRESS_DROPS
field_31032
SKIP_DROPS
public static final int
x
UPDATE_MOVE_BY_PISTON
field_31033
MOVED
public static final int
y
UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE
field_53822
SKIP_REDSTONE_WIRE_STATE_REPLACEMENT
public static final int
z
UPDATE_NONE
field_31035
field_31035
public static final int
A
UPDATE_ALL
field_31036
NOTIFY_ALL
public static final int
B
UPDATE_ALL_IMMEDIATE
field_31022
NOTIFY_ALL_AND_REDRAW
public static final float
C
INDESTRUCTIBLE
field_31023
field_31023
public static final float
D
INSTANT
field_31024
field_31024
public static final int
E
UPDATE_LIMIT
field_31025
field_31025
protected final StateDefinition<Block, BlockState>
F
stateDefinition
field_10647
stateManager
private BlockState
d
defaultBlockState
field_10646
defaultState
private Item
e
item
field_17562
cachedItem
private static final int
f
CACHE_SIZE
field_31026
FACE_CULL_MAP_SIZE
private static final ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteLinkedOpenHashMap<Block$ShapePairKey>>
g
OCCLUSION_CACHE
field_10649
FACE_CULL_MAP

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
protected com.mojang.serialization.MapCodec<? extends Block>
a()
codec()
method_53969()
getCodec()
public static int
j(dxv arg0)
getId(BlockState arg0)
method_9507(class_2680 arg0)
getRawIdFromState(BlockState state)
public static BlockState
a(int arg0)
stateById(int arg0)
method_9531(int arg0)
getStateFromRawId(int stateId)
public static Block
a(cxl arg0)
byItem(Item arg0)
method_9503(class_1792 arg0)
getBlockFromItem(Item item)
public static BlockState
a(dxv arg0, dxv arg1, dhj arg2, jh arg3)
pushEntitiesUp(BlockState arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3)
method_9582(class_2680 arg0, class_2680 arg1, class_1936 arg2, class_2338 arg3)
pushEntitiesUpBeforeBlockChange(BlockState from, BlockState to, WorldAccess world, BlockPos pos)
public static VoxelShape
a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
box(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
method_9541(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
createCuboidShape(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
public static BlockState
b(dxv arg0, dhj arg1, jh arg2)
updateFromNeighbourShapes(BlockState arg0, LevelAccessor arg1, BlockPos arg2)
method_9510(class_2680 arg0, class_1936 arg1, class_2338 arg2)
postProcessState(BlockState state, WorldAccess world, BlockPos pos)
public static void
a(dxv arg0, dxv arg1, dhj arg2, jh arg3, int arg4)
updateOrDestroy(BlockState arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3, int arg4)
method_30094(class_2680 arg0, class_2680 arg1, class_1936 arg2, class_2338 arg3, int arg4)
replace(BlockState state, BlockState newState, WorldAccess world, BlockPos pos, int flags)
public static void
a(dxv arg0, dxv arg1, dhj arg2, jh arg3, int arg4, int arg5)
updateOrDestroy(BlockState arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3, int arg4, int arg5)
method_9611(class_2680 arg0, class_2680 arg1, class_1936 arg2, class_2338 arg3, int arg4, int arg5)
replace(BlockState state, BlockState newState, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)
public static boolean
k(dxv arg0)
isExceptionForConnection(BlockState arg0)
method_9581(class_2680 arg0)
cannotConnect(BlockState state)
public static boolean
a(dxv arg0, dxv arg1, jm arg2)
shouldRenderFace(BlockState arg0, BlockState arg1, Direction arg2)
method_9607(class_2680 arg0, class_2680 arg1, class_2350 arg2)
shouldDrawSide(BlockState state, BlockState otherState, Direction side)
public static boolean
c(dgn arg0, jh arg1)
canSupportRigidBlock(BlockGetter arg0, BlockPos arg1)
method_16361(class_1922 arg0, class_2338 arg1)
hasTopRim(BlockView world, BlockPos pos)
public static boolean
a(dhl arg0, jh arg1, jm arg2)
canSupportCenter(LevelReader arg0, BlockPos arg1, Direction arg2)
method_20044(class_4538 arg0, class_2338 arg1, class_2350 arg2)
sideCoversSmallSquare(WorldView world, BlockPos pos, Direction side)
public static boolean
a(fcs arg0, jm arg1)
isFaceFull(VoxelShape arg0, Direction arg1)
method_9501(class_265 arg0, class_2350 arg1)
isFaceFullSquare(VoxelShape shape, Direction side)
public static boolean
a(fcs arg0)
isShapeFullBlock(VoxelShape arg0)
method_9614(class_265 arg0)
isShapeFullCube(VoxelShape shape)
public void
a(dxv arg0, dhi arg1, jh arg2, bam arg3)
animateTick(BlockState arg0, Level arg1, BlockPos arg2, RandomSource arg3)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
public void
a(dhj arg0, jh arg1, dxv arg2)
destroy(LevelAccessor arg0, BlockPos arg1, BlockState arg2)
method_9585(class_1936 arg0, class_2338 arg1, class_2680 arg2)
onBroken(WorldAccess world, BlockPos pos, BlockState state)
public static List<ItemStack>
a(dxv arg0, ash arg1, jh arg2, dux arg3)
getDrops(BlockState arg0, ServerLevel arg1, BlockPos arg2, BlockEntity arg3)
method_9562(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_2586 arg3)
getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, BlockEntity blockEntity)
public static List<ItemStack>
a(dxv arg0, ash arg1, jh arg2, dux arg3, bvk arg4, cxp arg5)
getDrops(BlockState arg0, ServerLevel arg1, BlockPos arg2, BlockEntity arg3, Entity arg4, ItemStack arg5)
method_9609(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_2586 arg3, class_1297 arg4, class_1799 arg5)
getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack stack)
public static void
c(dxv arg0, dhi arg1, jh arg2)
dropResources(BlockState arg0, Level arg1, BlockPos arg2)
method_9497(class_2680 arg0, class_1937 arg1, class_2338 arg2)
dropStacks(BlockState state, World world, BlockPos pos)
public static void
a(dxv arg0, dhj arg1, jh arg2, dux arg3)
dropResources(BlockState arg0, LevelAccessor arg1, BlockPos arg2, BlockEntity arg3)
method_9610(class_2680 arg0, class_1936 arg1, class_2338 arg2, class_2586 arg3)
dropStacks(BlockState state, WorldAccess world, BlockPos pos, BlockEntity blockEntity)
public static void
a(dxv arg0, dhi arg1, jh arg2, dux arg3, bvk arg4, cxp arg5)
dropResources(BlockState arg0, Level arg1, BlockPos arg2, BlockEntity arg3, Entity arg4, ItemStack arg5)
method_9511(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2586 arg3, class_1297 arg4, class_1799 arg5)
dropStacks(BlockState state, World world, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool)
public static void
a(dhi arg0, jh arg1, cxp arg2)
popResource(Level arg0, BlockPos arg1, ItemStack arg2)
method_9577(class_1937 arg0, class_2338 arg1, class_1799 arg2)
dropStack(World world, BlockPos pos, ItemStack stack)
public static void
a(dhi arg0, jh arg1, jm arg2, cxp arg3)
popResourceFromFace(Level arg0, BlockPos arg1, Direction arg2, ItemStack arg3)
method_36992(class_1937 arg0, class_2338 arg1, class_2350 arg2, class_1799 arg3)
dropStack(World world, BlockPos pos, Direction direction, ItemStack stack)
private static void
a(dhi arg0, Supplier<cmb> arg1, cxp arg2)
popResource(Level arg0, Supplier<ItemEntity> arg1, ItemStack arg2)
method_36993(class_1937 arg0, Supplier<class_1542> arg1, class_1799 arg2)
dropStack(World world, Supplier<ItemEntity> itemEntitySupplier, ItemStack stack)
protected void
a(ash arg0, jh arg1, int arg2)
popExperience(ServerLevel arg0, BlockPos arg1, int arg2)
method_9583(class_3218 arg0, class_2338 arg1, int arg2)
dropExperience(ServerWorld world, BlockPos pos, int size)
public float
e()
getExplosionResistance()
method_9520()
getBlastResistance()
public void
a(ash arg0, jh arg1, dha arg2)
wasExploded(ServerLevel arg0, BlockPos arg1, Explosion arg2)
method_9586(class_3218 arg0, class_2338 arg1, class_1927 arg2)
onDestroyedByExplosion(ServerWorld world, BlockPos pos, Explosion explosion)
public void
a(dhi arg0, jh arg1, dxv arg2, bvk arg3)
stepOn(Level arg0, BlockPos arg1, BlockState arg2, Entity arg3)
method_9591(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1297 arg3)
onSteppedOn(World world, BlockPos pos, BlockState state, Entity entity)
public BlockState
a(dbg arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext ctx)
public void
a(dhi arg0, cpx arg1, jh arg2, dxv arg3, dux arg4, cxp arg5)
playerDestroy(Level arg0, Player arg1, BlockPos arg2, BlockState arg3, BlockEntity arg4, ItemStack arg5)
method_9556(class_1937 arg0, class_1657 arg1, class_2338 arg2, class_2680 arg3, class_2586 arg4, class_1799 arg5)
afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack tool)
public void
a(dhi arg0, jh arg1, dxv arg2, bwg arg3, cxp arg4)
setPlacedBy(Level arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
method_9567(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1309 arg3, class_1799 arg4)
onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
public boolean
a(dxv arg0)
isPossibleToRespawnInThis(BlockState arg0)
method_9538(class_2680 arg0)
canMobSpawnInside(BlockState state)
public MutableComponent
f()
getName()
method_9518()
getName()
public void
a(dhi arg0, dxv arg1, jh arg2, bvk arg3, float arg4)
fallOn(Level arg0, BlockState arg1, BlockPos arg2, Entity arg3, float arg4)
method_9554(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1297 arg3, float arg4)
onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance)
public void
a(dgn arg0, bvk arg1)
updateEntityMovementAfterFallOn(BlockGetter arg0, Entity arg1)
method_9502(class_1922 arg0, class_1297 arg1)
onEntityLand(BlockView world, Entity entity)
public ItemStack
a(dhl arg0, jh arg1, dxv arg2)
getCloneItemStack(LevelReader arg0, BlockPos arg1, BlockState arg2)
method_9574(class_4538 arg0, class_2338 arg1, class_2680 arg2)
getPickStack(WorldView world, BlockPos pos, BlockState state)
public float
g()
getFriction()
method_9499()
getSlipperiness()
public float
h()
getSpeedFactor()
method_23349()
getVelocityMultiplier()
public float
k()
getJumpFactor()
method_23350()
getJumpVelocityMultiplier()
protected void
a(dhi arg0, cpx arg1, jh arg2, dxv arg3)
spawnDestroyParticles(Level arg0, Player arg1, BlockPos arg2, BlockState arg3)
method_33614(class_1937 arg0, class_1657 arg1, class_2338 arg2, class_2680 arg3)
spawnBreakParticles(World world, PlayerEntity player, BlockPos pos, BlockState state)
public BlockState
a(dhi arg0, jh arg1, dxv arg2, cpx arg3)
playerWillDestroy(Level arg0, BlockPos arg1, BlockState arg2, Player arg3)
method_9576(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
public void
a(dxv arg0, dhi arg1, jh arg2, dik$c arg3)
handlePrecipitation(BlockState arg0, Level arg1, BlockPos arg2, Biome$Precipitation arg3)
method_9504(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1959$class_1963 arg3)
precipitationTick(BlockState state, World world, BlockPos pos, Biome$Precipitation precipitation)
public boolean
a(dha arg0)
dropFromExplosion(Explosion arg0)
method_9533(class_1927 arg0)
shouldDropItemsOnExplosion(Explosion explosion)
protected void
a(dxw$a<dkm, dxv> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> builder)
public StateDefinition<Block, BlockState>
l()
getStateDefinition()
method_9595()
getStateManager()
protected final void
l(dxv arg0)
registerDefaultState(BlockState arg0)
method_9590(class_2680 arg0)
setDefaultState(BlockState state)
public final BlockState
m()
defaultBlockState()
method_9564()
getDefaultState()
public final BlockState
m(dxv arg0)
withPropertiesOf(BlockState arg0)
method_34725(class_2680 arg0)
getStateWithProperties(BlockState state)
private static <T extends Comparable<T>> BlockState
a(dxv arg0, dxv arg1, dyx<T> arg2)
copyProperty(BlockState arg0, BlockState arg1, Property<T> arg2)
method_34724(class_2680 arg0, class_2680 arg1, class_2769<T> arg2)
copyProperty(BlockState source, BlockState target, Property<T> property)
public Item
j()
asItem()
method_8389()
asItem()
public boolean
n()
hasDynamicShape()
method_9543()
hasDynamicBounds()
public void
a(cxp arg0, cxl$b arg1, List<xv> arg2, czh arg3)
appendHoverText(ItemStack arg0, Item$TooltipContext arg1, List<Component> arg2, TooltipFlag arg3)
method_9568(class_1799 arg0, class_1792$class_9635 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack stack, Item$TooltipContext context, List<Text> tooltip, TooltipType options)
protected Block
o()
asBlock()
method_26160()
asBlock()
protected com.google.common.collect.ImmutableMap<BlockState, VoxelShape>
a(Function<dxv, fcs> arg0)
getShapeForEachState(Function<BlockState, VoxelShape> arg0)
method_33615(Function<class_2680, class_265> arg0)
getShapesForStates(Function<BlockState, VoxelShape> stateToShape)
public Holder$Reference<Block>
p()
builtInRegistryHolder()
method_40142()
getRegistryEntry()
protected void
a(ash arg0, jh arg1, cxp arg2, bso arg3)
tryDropExperience(ServerLevel arg0, BlockPos arg1, ItemStack arg2, IntProvider arg3)
method_41420(class_3218 arg0, class_2338 arg1, class_1799 arg2, class_6017 arg3)
dropExperienceWhenMined(ServerWorld world, BlockPos pos, ItemStack tool, IntProvider experience)