net.minecraft.world.level.block

public class Block

extends BlockBehaviour implements ItemLike

All mapped superinterfaces:

FeatureElement, ItemLike

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

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<Block>
j
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>
k
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
l
UPDATE_NEIGHBORS
field_31027
NOTIFY_NEIGHBORS
public static final int
m
UPDATE_CLIENTS
field_31028
NOTIFY_LISTENERS
public static final int
n
UPDATE_INVISIBLE
field_31029
NO_REDRAW
public static final int
o
UPDATE_IMMEDIATE
field_31030
REDRAW_ON_MAIN_THREAD
public static final int
p
UPDATE_KNOWN_SHAPE
field_31031
FORCE_STATE
public static final int
q
UPDATE_SUPPRESS_DROPS
field_31032
SKIP_DROPS
public static final int
r
UPDATE_MOVE_BY_PISTON
field_31033
MOVED
public static final int
s
UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE
field_53822
SKIP_REDSTONE_WIRE_STATE_REPLACEMENT
public static final int
t
UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS
field_55739
SKIP_BLOCK_ENTITY_REPLACED_CALLBACK
public static final int
u
UPDATE_SKIP_ON_PLACE
field_56561
SKIP_BLOCK_ADDED_CALLBACK
public static final int
v
UPDATE_NONE
field_31035
SKIP_REDRAW_AND_BLOCK_ENTITY_REPLACED_CALLBACK
public static final int
w
UPDATE_ALL
field_31036
NOTIFY_ALL
public static final int
x
UPDATE_ALL_IMMEDIATE
field_31022
NOTIFY_ALL_AND_REDRAW
public static final int
y
UPDATE_SKIP_ALL_SIDEEFFECTS
field_55740
FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS
public static final float
z
INDESTRUCTIBLE
field_31023
field_31023
public static final float
A
INSTANT
field_31024
field_31024
public static final int
B
UPDATE_LIMIT
field_31025
field_31025
protected final StateDefinition<Block, BlockState>
C
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(ebg 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(czw arg0)
byItem(Item arg0)
method_9503(class_1792 arg0)
getBlockFromItem(Item item)
public static BlockState
a(ebg arg0, ebg arg1, dka arg2, iw 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 VoxelShape[]
a(int arg0, IntFunction<fgm> arg1)
boxes(int arg0, IntFunction<VoxelShape> arg1)
method_66397(int arg0, IntFunction<class_265> arg1)
createShapeArray(int size, IntFunction<VoxelShape> indexToShape)
public static VoxelShape
a(double arg0)
cube(double arg0)
method_66393(double arg0)
createCubeShape(double size)
public static VoxelShape
a(double arg0, double arg1, double arg2)
cube(double arg0, double arg1, double arg2)
method_66394(double arg0, double arg1, double arg2)
createCuboidShape(double sizeX, double sizeY, double sizeZ)
public static VoxelShape
b(double arg0, double arg1, double arg2)
column(double arg0, double arg1, double arg2)
method_66404(double arg0, double arg1, double arg2)
createColumnShape(double sizeXz, double minY, double maxY)
public static VoxelShape
a(double arg0, double arg1, double arg2, double arg3)
column(double arg0, double arg1, double arg2, double arg3)
method_66395(double arg0, double arg1, double arg2, double arg3)
createColumnShape(double sizeX, double sizeZ, double minY, double maxY)
public static VoxelShape
c(double arg0, double arg1, double arg2)
boxZ(double arg0, double arg1, double arg2)
method_66408(double arg0, double arg1, double arg2)
createCuboidZShape(double sizeXy, double minZ, double maxZ)
public static VoxelShape
b(double arg0, double arg1, double arg2, double arg3)
boxZ(double arg0, double arg1, double arg2, double arg3)
method_66405(double arg0, double arg1, double arg2, double arg3)
createCuboidZShape(double sizeX, double sizeY, double minZ, double maxZ)
public static VoxelShape
a(double arg0, double arg1, double arg2, double arg3, double arg4)
boxZ(double arg0, double arg1, double arg2, double arg3, double arg4)
method_66396(double arg0, double arg1, double arg2, double arg3, double arg4)
createCuboidZShape(double sizeX, double minY, double maxY, double minZ, double maxZ)
public static BlockState
b(ebg arg0, dka arg1, iw 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(ebg arg0, ebg arg1, dka arg2, iw 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(ebg arg0, ebg arg1, dka arg2, iw 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(ebg arg0)
isExceptionForConnection(BlockState arg0)
method_9581(class_2680 arg0)
cannotConnect(BlockState state)
public static boolean
a(ebg arg0, ebg arg1, jc 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(djd arg0, iw arg1)
canSupportRigidBlock(BlockGetter arg0, BlockPos arg1)
method_16361(class_1922 arg0, class_2338 arg1)
hasTopRim(BlockView world, BlockPos pos)
public static boolean
a(dkc arg0, iw arg1, jc 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(fgm arg0, jc arg1)
isFaceFull(VoxelShape arg0, Direction arg1)
method_9501(class_265 arg0, class_2350 arg1)
isFaceFullSquare(VoxelShape shape, Direction side)
public static boolean
a(fgm arg0)
isShapeFullBlock(VoxelShape arg0)
method_9614(class_265 arg0)
isShapeFullCube(VoxelShape shape)
public void
a(ebg arg0, djz arg1, iw arg2, azz 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(dka arg0, iw arg1, ebg 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(ebg arg0, aru arg1, iw arg2, dye 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(ebg arg0, aru arg1, iw arg2, dye arg3, bwv arg4, daa 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(ebg arg0, djz arg1, iw 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(ebg arg0, dka arg1, iw arg2, dye 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(ebg arg0, djz arg1, iw arg2, dye arg3, bwv arg4, daa 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(djz arg0, iw arg1, daa 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(djz arg0, iw arg1, jc arg2, daa 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(djz arg0, Supplier<coe> arg1, daa 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(aru arg0, iw 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(aru arg0, iw arg1, djs 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(djz arg0, iw arg1, ebg arg2, bwv 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(ddt arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext ctx)
public void
a(djz arg0, crz arg1, iw arg2, ebg arg3, dye arg4, daa 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(djz arg0, iw arg1, ebg arg2, bxw arg3, daa 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(ebg arg0)
isPossibleToRespawnInThis(BlockState arg0)
method_9538(class_2680 arg0)
canMobSpawnInside(BlockState state)
public MutableComponent
f()
getName()
method_9518()
getName()
public void
a(djz arg0, ebg arg1, iw arg2, bwv arg3, double arg4)
fallOn(Level arg0, BlockState arg1, BlockPos arg2, Entity arg3, double arg4)
method_9554(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1297 arg3, double arg4)
onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, double fallDistance)
public void
a(djd arg0, bwv arg1)
updateEntityMovementAfterFallOn(BlockGetter arg0, Entity arg1)
method_9502(class_1922 arg0, class_1297 arg1)
onEntityLand(BlockView world, Entity entity)
public float
g()
getFriction()
method_9499()
getSlipperiness()
public float
i()
getSpeedFactor()
method_23349()
getVelocityMultiplier()
public float
j()
getJumpFactor()
method_23350()
getJumpVelocityMultiplier()
protected void
a(djz arg0, crz arg1, iw arg2, ebg 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(djz arg0, iw arg1, ebg arg2, crz 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(ebg arg0, djz arg1, iw arg2, dlc$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(djs arg0)
dropFromExplosion(Explosion arg0)
method_9533(class_1927 arg0)
shouldDropItemsOnExplosion(Explosion explosion)
protected void
a(ebh$a<dne, ebg> 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(ebg arg0)
registerDefaultState(BlockState arg0)
method_9590(class_2680 arg0)
setDefaultState(BlockState state)
public final BlockState
m()
defaultBlockState()
method_9564()
getDefaultState()
public final BlockState
m(ebg arg0)
withPropertiesOf(BlockState arg0)
method_34725(class_2680 arg0)
getStateWithProperties(BlockState state)
private static <T extends Comparable<T>> BlockState
a(ebg arg0, ebg arg1, ecj<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
h()
asItem()
method_8389()
asItem()
public boolean
n()
hasDynamicShape()
method_9543()
hasDynamicBounds()
protected Block
o()
asBlock()
method_26160()
asBlock()
protected Function<BlockState, VoxelShape>
a(Function<ebg, fgm> arg0)
getShapeForEachState(Function<BlockState, VoxelShape> arg0)
method_33615(Function<class_2680, class_265> arg0)
createShapeFunction(Function<BlockState, VoxelShape> stateToShape)
protected Function<BlockState, VoxelShape>
a(Function<ebg, fgm> arg0, ecj<?>... arg1)
getShapeForEachState(Function<BlockState, VoxelShape> arg0, Property<?>... arg1)
method_66403(Function<class_2680, class_265> arg0, class_2769<?>... arg1)
createShapeFunction(Function<BlockState, VoxelShape> stateToShape, Property<?>... properties)
private static <S extends StateHolder<?, S>, T extends Comparable<T>> S
a(S arg0, ecj<T> arg1, Object arg2)
setValueHelper(S arg0, Property<T> arg1, Object arg2)
method_66399(S arg0, class_2769<T> arg1, Object arg2)
applyValueToState(S state, Property<T> property, Object value)
public Holder$Reference<Block>
p()
builtInRegistryHolder()
method_40142()
getRegistryEntry()
protected void
a(aru arg0, iw arg1, daa arg2, bty 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)