net.minecraft.world.level.block

public class Block

extends BlockBehaviour implements ItemLike

All mapped superinterfaces:

FeatureElement, ItemLike

cwq
net.minecraft.world.level.block.Block
net.minecraft.class_2248
net.minecraft.block.Block
net.minecraft.src.C_1706_
net.minecraft.world.level.block.Block

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<Block>
p
CODEC
field_46280
CODEC
f_303539_
private static final org.slf4j.Logger
a
LOGGER
field_10638
LOGGER
f_49790_
private final Holder$Reference<Block>
b
builtInRegistryHolder
field_36404
registryEntry
f_204296_
public static final IdMapper<BlockState>
q
BLOCK_STATE_REGISTRY
field_10651
STATE_IDS
f_49791_
private static final com.google.common.cache.LoadingCache<VoxelShape, Boolean>
c
SHAPE_FULL_BLOCK_CACHE
field_19312
FULL_CUBE_SHAPE_CACHE
f_49785_
public static final int
r
UPDATE_NEIGHBORS
field_31027
NOTIFY_NEIGHBORS
f_152393_
public static final int
s
UPDATE_CLIENTS
field_31028
NOTIFY_LISTENERS
f_152394_
public static final int
t
UPDATE_INVISIBLE
field_31029
NO_REDRAW
f_152395_
public static final int
u
UPDATE_IMMEDIATE
field_31030
REDRAW_ON_MAIN_THREAD
f_152396_
public static final int
v
UPDATE_KNOWN_SHAPE
field_31031
FORCE_STATE
f_152397_
public static final int
w
UPDATE_SUPPRESS_DROPS
field_31032
SKIP_DROPS
f_152398_
public static final int
x
UPDATE_MOVE_BY_PISTON
field_31033
MOVED
f_152399_
public static final int
y
UPDATE_NONE
field_31035
field_31035
f_152401_
public static final int
z
UPDATE_ALL
field_31036
NOTIFY_ALL
f_152402_
public static final int
A
UPDATE_ALL_IMMEDIATE
field_31022
NOTIFY_ALL_AND_REDRAW
f_152388_
public static final float
B
INDESTRUCTIBLE
field_31023
field_31023
f_152389_
public static final float
C
INSTANT
field_31024
field_31024
f_152390_
public static final int
D
UPDATE_LIMIT
field_31025
field_31025
f_152391_
protected final StateDefinition<Block, BlockState>
E
stateDefinition
field_10647
stateManager
f_49792_
private BlockState
d
defaultBlockState
field_10646
defaultState
f_49786_
private String
e
descriptionId
field_10642
translationKey
f_49787_
private Item
f
item
field_17562
cachedItem
f_49788_
private static final int
g
CACHE_SIZE
field_31026
field_31026
f_152392_
private static final ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteLinkedOpenHashMap<Block$BlockStatePairKey>>
h
OCCLUSION_CACHE
field_10649
FACE_CULL_MAP
f_49789_

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
protected com.mojang.serialization.MapCodec<? extends Block>
a()
codec()
method_53969()
getCodec()
m_304657_()
public static int
i(djh arg0)
getId(BlockState arg0)
method_9507(class_2680 arg0)
getRawIdFromState(BlockState state)
m_49956_(C_2064_ p_49957_)
public static BlockState
a(int arg0)
stateById(int arg0)
method_9531(int arg0)
getStateFromRawId(int stateId)
m_49803_(int p_49804_)
public static Block
a(cmt arg0)
byItem(Item arg0)
method_9503(class_1792 arg0)
getBlockFromItem(Item item)
m_49814_(C_1381_ p_49815_)
public static BlockState
a(djh arg0, djh arg1, ctq arg2, hx 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)
m_49897_(C_2064_ p_49898_, C_2064_ p_49899_, C_1598_ p_238252_, C_4675_ p_49901_)
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)
m_49796_(double p_49797_, double p_49799_, double p_49801_, double arg3, double arg4, double arg5)
public static BlockState
b(djh arg0, ctq arg1, hx 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)
m_49931_(C_2064_ p_49932_, C_1598_ p_49933_, C_4675_ p_49934_)
public static void
a(djh arg0, djh arg1, ctq arg2, hx 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)
m_49902_(C_2064_ p_49903_, C_2064_ p_49904_, C_1598_ p_49905_, C_4675_ p_49906_, int p_49907_)
public static void
a(djh arg0, djh arg1, ctq arg2, hx 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)
m_49908_(C_2064_ p_49909_, C_2064_ p_49910_, C_1598_ p_49911_, C_4675_ p_49912_, int p_49913_, int p_49914_)
public static boolean
j(djh arg0)
isExceptionForConnection(BlockState arg0)
method_9581(class_2680 arg0)
cannotConnect(BlockState state)
m_152463_(C_2064_ p_152464_)
public boolean
e_(djh arg0)
isRandomlyTicking(BlockState arg0)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState state)
m_6724_(C_2064_ arg0)
public static boolean
a(djh arg0, csv arg1, hx arg2, ic arg3, hx arg4)
shouldRenderFace(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3, BlockPos arg4)
method_9607(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3, class_2338 arg4)
shouldDrawSide(BlockState state, BlockView world, BlockPos pos, Direction side, BlockPos otherPos)
m_152444_(C_2064_ p_152445_, C_1559_ p_152446_, C_4675_ p_152447_, C_4687_ p_152448_, C_4675_ p_152449_)
public static boolean
c(csv arg0, hx arg1)
canSupportRigidBlock(BlockGetter arg0, BlockPos arg1)
method_16361(class_1922 arg0, class_2338 arg1)
hasTopRim(BlockView world, BlockPos pos)
m_49936_(C_1559_ p_49937_, C_4675_ p_49938_)
public static boolean
a(cts arg0, hx arg1, ic 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)
m_49863_(C_1599_ p_49864_, C_4675_ p_49865_, C_4687_ p_49866_)
public static boolean
a(emm arg0, ic arg1)
isFaceFull(VoxelShape arg0, Direction arg1)
method_9501(class_265 arg0, class_2350 arg1)
isFaceFullSquare(VoxelShape shape, Direction side)
m_49918_(C_3072_ p_49919_, C_4687_ p_49920_)
public static boolean
a(emm arg0)
isShapeFullBlock(VoxelShape arg0)
method_9614(class_265 arg0)
isShapeFullCube(VoxelShape shape)
m_49916_(C_3072_ p_49917_)
public boolean
a_(djh arg0, csv arg1, hx arg2)
propagatesSkylightDown(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9579(class_2680 arg0, class_1922 arg1, class_2338 arg2)
isTransparent(BlockState state, BlockView world, BlockPos pos)
m_7420_(C_2064_ p_49929_, C_1559_ p_49930_, C_4675_ arg2)
public void
a(djh arg0, ctp arg1, hx arg2, auv 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)
m_214162_(C_2064_ p_220828_, C_1596_ p_220829_, C_4675_ p_220830_, C_212974_ arg3)
public void
a(ctq arg0, hx arg1, djh 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)
m_6786_(C_1598_ p_49861_, C_4675_ p_49862_, C_2064_ arg2)
public static List<ItemStack>
a(djh arg0, and arg1, hx arg2, dgv 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)
m_49869_(C_2064_ p_49870_, C_12_ p_49871_, C_4675_ p_49872_, C_1991_ p_49873_)
public static List<ItemStack>
a(djh arg0, and arg1, hx arg2, dgv arg3, blv arg4, cmy 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)
m_49874_(C_2064_ p_49875_, C_12_ p_49876_, C_4675_ p_49877_, C_1991_ p_49878_, C_507_ p_49879_, C_1391_ p_49880_)
public static void
c(djh arg0, ctp arg1, hx 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)
m_49950_(C_2064_ p_49951_, C_1596_ p_49952_, C_4675_ p_49953_)
public static void
a(djh arg0, ctq arg1, hx arg2, dgv 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)
m_49892_(C_2064_ p_49893_, C_1598_ p_49894_, C_4675_ p_49895_, C_1991_ p_49896_)
public static void
a(djh arg0, ctp arg1, hx arg2, dgv arg3, blv arg4, cmy 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)
m_49881_(C_2064_ p_49882_, C_1596_ p_49883_, C_4675_ p_49884_, C_1991_ p_49885_, C_507_ p_49886_, C_1391_ p_49887_)
public static void
a(ctp arg0, hx arg1, cmy 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)
m_49840_(C_1596_ p_49841_, C_4675_ p_49842_, C_1391_ p_49843_)
public static void
a(ctp arg0, hx arg1, ic arg2, cmy 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)
m_152435_(C_1596_ p_152436_, C_4675_ p_152437_, C_4687_ p_152438_, C_1391_ p_152439_)
private static void
a(ctp arg0, Supplier<cbu> arg1, cmy 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)
m_152440_(C_1596_ p_152441_, Supplier<C_976_> p_152442_, C_1391_ p_152443_)
protected void
a(and arg0, hx 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)
m_49805_(C_12_ p_49807_, C_4675_ p_49808_, int arg2)
public float
e()
getExplosionResistance()
method_9520()
getBlastResistance()
m_7325_()
public void
a(ctp arg0, hx arg1, cth arg2)
wasExploded(Level arg0, BlockPos arg1, Explosion arg2)
method_9586(class_1937 arg0, class_2338 arg1, class_1927 arg2)
onDestroyedByExplosion(World world, BlockPos pos, Explosion explosion)
m_7592_(C_1596_ p_49845_, C_4675_ p_49846_, C_1578_ arg2)
public void
a(ctp arg0, hx arg1, djh arg2, blv 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)
m_141947_(C_1596_ p_152432_, C_4675_ p_152433_, C_2064_ p_152434_, C_507_ arg3)
public BlockState
a(cph arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext ctx)
m_5573_(C_1445_ arg0)
public void
a(ctp arg0, cfi arg1, hx arg2, djh arg3, dgv arg4, cmy 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)
m_6240_(C_1596_ p_49828_, C_1141_ p_49829_, C_4675_ p_49830_, C_2064_ p_49831_, C_1991_ p_49832_, C_1391_ arg5)
public void
a(ctp arg0, hx arg1, djh arg2, bml arg3, cmy 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)
m_6402_(C_1596_ p_49848_, C_4675_ p_49849_, C_2064_ p_49850_, C_524_ p_49851_, C_1391_ arg4)
public boolean
a(djh arg0)
isPossibleToRespawnInThis(BlockState arg0)
method_9538(class_2680 arg0)
canMobSpawnInside(BlockState state)
m_48673_(C_2064_ arg0)
public MutableComponent
f()
getName()
method_9518()
getName()
m_49954_()
public String
h()
getDescriptionId()
method_9539()
getTranslationKey()
m_7705_()
public void
a(ctp arg0, djh arg1, hx arg2, blv 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)
m_142072_(C_1596_ p_152427_, C_2064_ p_152428_, C_4675_ p_152429_, C_507_ p_152430_, float arg4)
public void
a(csv arg0, blv arg1)
updateEntityAfterFallOn(BlockGetter arg0, Entity arg1)
method_9502(class_1922 arg0, class_1297 arg1)
onEntityLand(BlockView world, Entity entity)
m_5548_(C_1559_ p_49822_, C_507_ arg1)
public ItemStack
a(cts arg0, hx arg1, djh 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)
m_7397_(C_1599_ p_49824_, C_4675_ p_49825_, C_2064_ arg2)
public float
i()
getFriction()
method_9499()
getSlipperiness()
m_49958_()
public float
j()
getSpeedFactor()
method_23349()
getVelocityMultiplier()
m_49961_()
public float
l()
getJumpFactor()
method_23350()
getJumpVelocityMultiplier()
m_49964_()
protected void
a(ctp arg0, cfi arg1, hx arg2, djh 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)
m_142387_(C_1596_ p_152423_, C_1141_ p_152424_, C_4675_ p_152425_, C_2064_ arg3)
public BlockState
a(ctp arg0, hx arg1, djh arg2, cfi 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)
m_5707_(C_1596_ p_49853_, C_4675_ p_49854_, C_2064_ p_49855_, C_1141_ arg3)
public void
a(djh arg0, ctp arg1, hx arg2, cuo$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)
m_141997_(C_2064_ p_152451_, C_1596_ p_152452_, C_4675_ p_152453_, C_1629_$C_1635_ arg3)
public boolean
a(cth arg0)
dropFromExplosion(Explosion arg0)
method_9533(class_1927 arg0)
shouldDropItemsOnExplosion(Explosion explosion)
m_6903_(C_1578_ arg0)
protected void
a(dji$a<cwq, djh> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> builder)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
public StateDefinition<Block, BlockState>
n()
getStateDefinition()
method_9595()
getStateManager()
m_49965_()
protected final void
k(djh arg0)
registerDefaultState(BlockState arg0)
method_9590(class_2680 arg0)
setDefaultState(BlockState state)
m_49959_(C_2064_ arg0)
public final BlockState
o()
defaultBlockState()
method_9564()
getDefaultState()
m_49966_()
public final BlockState
l(djh arg0)
withPropertiesOf(BlockState arg0)
method_34725(class_2680 arg0)
getStateWithProperties(BlockState state)
m_152465_(C_2064_ arg0)
private static <T extends Comparable<T>> BlockState
a(djh arg0, djh arg1, dkk<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)
m_152454_(C_2064_ p_152455_, C_2064_ p_152456_, C_2097_<T> p_152457_)
public SoundType
m(djh arg0)
getSoundType(BlockState arg0)
method_9573(class_2680 arg0)
getSoundGroup(BlockState state)
m_49962_(C_2064_ arg0)
public Item
k()
asItem()
method_8389()
asItem()
m_5456_()
public boolean
p()
hasDynamicShape()
method_9543()
hasDynamicBounds()
m_49967_()
public void
a(cmy arg0, csv arg1, List<vf> arg2, coq arg3)
appendHoverText(ItemStack arg0, BlockGetter arg1, List<Component> arg2, TooltipFlag arg3)
method_9568(class_1799 arg0, class_1922 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack stack, BlockView world, List<Text> tooltip, TooltipContext options)
m_5871_(C_1391_ p_49817_, C_1559_ p_49818_, List<C_4996_> p_49819_, C_1431_ arg3)
protected Block
q()
asBlock()
method_26160()
asBlock()
m_7374_()
protected com.google.common.collect.ImmutableMap<BlockState, VoxelShape>
a(Function<djh, emm> arg0)
getShapeForEachState(Function<BlockState, VoxelShape> arg0)
method_33615(Function<class_2680, class_265> arg0)
getShapesForStates(Function<BlockState, VoxelShape> stateToShape)
m_152458_(Function<C_2064_, C_3072_> arg0)
public Holder$Reference<Block>
r()
builtInRegistryHolder()
method_40142()
getRegistryEntry()
m_204297_()
protected void
a(and arg0, hx arg1, cmy arg2, bjg 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)
m_220822_(C_12_ p_220824_, C_4675_ p_220825_, C_1391_ p_220826_, C_141052_ arg3)