net.minecraft.world.level.block

public class Block

extends BlockBehaviour implements ItemLike

All mapped superinterfaces:

FeatureElement, ItemLike

dpz
net.minecraft.world.level.block.Block

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<Block>
j
CODEC
private static final org.slf4j.Logger
a
LOGGER
private final Holder$Reference<Block>
b
builtInRegistryHolder
public static final IdMapper<BlockState>
k
BLOCK_STATE_REGISTRY
private static final com.google.common.cache.LoadingCache<VoxelShape, Boolean>
c
SHAPE_FULL_BLOCK_CACHE
public static final int
l
UPDATE_NEIGHBORS
public static final int
m
UPDATE_CLIENTS
public static final int
n
UPDATE_INVISIBLE
public static final int
o
UPDATE_IMMEDIATE
public static final int
p
UPDATE_KNOWN_SHAPE
public static final int
q
UPDATE_SUPPRESS_DROPS
public static final int
r
UPDATE_MOVE_BY_PISTON
public static final int
s
UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE
public static final int
t
UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS
public static final int
u
UPDATE_SKIP_ON_PLACE
public static final int
v
UPDATE_NONE
public static final int
w
UPDATE_ALL
public static final int
x
UPDATE_ALL_IMMEDIATE
public static final int
y
UPDATE_SKIP_ALL_SIDEEFFECTS
public static final float
z
INDESTRUCTIBLE
public static final float
A
INSTANT
public static final int
B
UPDATE_LIMIT
protected final StateDefinition<Block, BlockState>
C
stateDefinition
private BlockState
d
defaultBlockState
private Item
e
item
private static final int
f
CACHE_SIZE
private static final ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteLinkedOpenHashMap<Block$ShapePairKey>>
g
OCCLUSION_CACHE

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
protected com.mojang.serialization.MapCodec<? extends Block>
a()
codec()
public static int
j(eeb arg0)
getId(BlockState arg0)
public static BlockState
a(int arg0)
stateById(int arg0)
public static Block
a(dcr arg0)
byItem(Item arg0)
public static BlockState
a(eeb arg0, eeb arg1, dmv arg2, jb arg3)
pushEntitiesUp(BlockState arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3)
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)
public static VoxelShape[]
a(int arg0, IntFunction<fjm> arg1)
boxes(int arg0, IntFunction<VoxelShape> arg1)
public static VoxelShape
a(double arg0)
cube(double arg0)
public static VoxelShape
a(double arg0, double arg1, double arg2)
cube(double arg0, double arg1, double arg2)
public static VoxelShape
b(double arg0, double arg1, double arg2)
column(double arg0, double arg1, double arg2)
public static VoxelShape
a(double arg0, double arg1, double arg2, double arg3)
column(double arg0, double arg1, double arg2, double arg3)
public static VoxelShape
c(double arg0, double arg1, double arg2)
boxZ(double arg0, double arg1, double arg2)
public static VoxelShape
b(double arg0, double arg1, double arg2, double arg3)
boxZ(double arg0, double arg1, double arg2, double arg3)
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)
public static BlockState
b(eeb arg0, dmv arg1, jb arg2)
updateFromNeighbourShapes(BlockState arg0, LevelAccessor arg1, BlockPos arg2)
public static void
a(eeb arg0, eeb arg1, dmv arg2, jb arg3, int arg4)
updateOrDestroy(BlockState arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3, int arg4)
public static void
a(eeb arg0, eeb arg1, dmv arg2, jb arg3, int arg4, int arg5)
updateOrDestroy(BlockState arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3, int arg4, int arg5)
public static boolean
k(eeb arg0)
isExceptionForConnection(BlockState arg0)
public static boolean
a(eeb arg0, eeb arg1, jh arg2)
shouldRenderFace(BlockState arg0, BlockState arg1, Direction arg2)
public static boolean
c(dly arg0, jb arg1)
canSupportRigidBlock(BlockGetter arg0, BlockPos arg1)
public static boolean
a(dmx arg0, jb arg1, jh arg2)
canSupportCenter(LevelReader arg0, BlockPos arg1, Direction arg2)
public static boolean
a(fjm arg0, jh arg1)
isFaceFull(VoxelShape arg0, Direction arg1)
public static boolean
a(fjm arg0)
isShapeFullBlock(VoxelShape arg0)
public void
a(eeb arg0, dmu arg1, jb arg2, bck arg3)
animateTick(BlockState arg0, Level arg1, BlockPos arg2, RandomSource arg3)
public void
a(dmv arg0, jb arg1, eeb arg2)
destroy(LevelAccessor arg0, BlockPos arg1, BlockState arg2)
public static List<ItemStack>
a(eeb arg0, aub arg1, jb arg2, eaz arg3)
getDrops(BlockState arg0, ServerLevel arg1, BlockPos arg2, BlockEntity arg3)
public static List<ItemStack>
a(eeb arg0, aub arg1, jb arg2, eaz arg3, bzm arg4, dcv arg5)
getDrops(BlockState arg0, ServerLevel arg1, BlockPos arg2, BlockEntity arg3, Entity arg4, ItemStack arg5)
public static void
c(eeb arg0, dmu arg1, jb arg2)
dropResources(BlockState arg0, Level arg1, BlockPos arg2)
public static void
a(eeb arg0, dmv arg1, jb arg2, eaz arg3)
dropResources(BlockState arg0, LevelAccessor arg1, BlockPos arg2, BlockEntity arg3)
public static void
a(eeb arg0, dmu arg1, jb arg2, eaz arg3, bzm arg4, dcv arg5)
dropResources(BlockState arg0, Level arg1, BlockPos arg2, BlockEntity arg3, Entity arg4, ItemStack arg5)
public static void
a(dmu arg0, jb arg1, dcv arg2)
popResource(Level arg0, BlockPos arg1, ItemStack arg2)
public static void
a(dmu arg0, jb arg1, jh arg2, dcv arg3)
popResourceFromFace(Level arg0, BlockPos arg1, Direction arg2, ItemStack arg3)
private static void
a(dmu arg0, Supplier<cqz> arg1, dcv arg2)
popResource(Level arg0, Supplier<ItemEntity> arg1, ItemStack arg2)
protected void
a(aub arg0, jb arg1, int arg2)
popExperience(ServerLevel arg0, BlockPos arg1, int arg2)
public float
e()
getExplosionResistance()
public void
a(aub arg0, jb arg1, dmn arg2)
wasExploded(ServerLevel arg0, BlockPos arg1, Explosion arg2)
public void
a(dmu arg0, jb arg1, eeb arg2, bzm arg3)
stepOn(Level arg0, BlockPos arg1, BlockState arg2, Entity arg3)
public BlockState
a(dgo arg0)
getStateForPlacement(BlockPlaceContext arg0)
public void
a(dmu arg0, cut arg1, jb arg2, eeb arg3, eaz arg4, dcv arg5)
playerDestroy(Level arg0, Player arg1, BlockPos arg2, BlockState arg3, BlockEntity arg4, ItemStack arg5)
public void
a(dmu arg0, jb arg1, eeb arg2, cam arg3, dcv arg4)
setPlacedBy(Level arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
public boolean
a(eeb arg0)
isPossibleToRespawnInThis(BlockState arg0)
public MutableComponent
f()
getName()
public void
a(dmu arg0, eeb arg1, jb arg2, bzm arg3, double arg4)
fallOn(Level arg0, BlockState arg1, BlockPos arg2, Entity arg3, double arg4)
public void
a(dly arg0, bzm arg1)
updateEntityMovementAfterFallOn(BlockGetter arg0, Entity arg1)
public float
g()
getFriction()
public float
i()
getSpeedFactor()
public float
j()
getJumpFactor()
protected void
a(dmu arg0, cut arg1, jb arg2, eeb arg3)
spawnDestroyParticles(Level arg0, Player arg1, BlockPos arg2, BlockState arg3)
public BlockState
a(dmu arg0, jb arg1, eeb arg2, cut arg3)
playerWillDestroy(Level arg0, BlockPos arg1, BlockState arg2, Player arg3)
public void
a(eeb arg0, dmu arg1, jb arg2, dnx$c arg3)
handlePrecipitation(BlockState arg0, Level arg1, BlockPos arg2, Biome$Precipitation arg3)
public boolean
a(dmn arg0)
dropFromExplosion(Explosion arg0)
protected void
a(eec$a<dpz, eeb> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
public StateDefinition<Block, BlockState>
l()
getStateDefinition()
protected final void
l(eeb arg0)
registerDefaultState(BlockState arg0)
public final BlockState
m()
defaultBlockState()
public final BlockState
m(eeb arg0)
withPropertiesOf(BlockState arg0)
private static <T extends Comparable<T>> BlockState
a(eeb arg0, eeb arg1, efe<T> arg2)
copyProperty(BlockState arg0, BlockState arg1, Property<T> arg2)
public Item
h()
asItem()
public boolean
n()
hasDynamicShape()
protected Block
o()
asBlock()
protected Function<BlockState, VoxelShape>
a(Function<eeb, fjm> arg0)
getShapeForEachState(Function<BlockState, VoxelShape> arg0)
protected Function<BlockState, VoxelShape>
a(Function<eeb, fjm> arg0, efe<?>... arg1)
getShapeForEachState(Function<BlockState, VoxelShape> arg0, Property<?>... arg1)
private static <S extends StateHolder<?, S>, T extends Comparable<T>> S
a(S arg0, efe<T> arg1, Object arg2)
setValueHelper(S arg0, Property<T> arg1, Object arg2)
public Holder$Reference<Block>
p()
builtInRegistryHolder()
protected void
a(aub arg0, jb arg1, dcv arg2, bwo arg3)
tryDropExperience(ServerLevel arg0, BlockPos arg1, ItemStack arg2, IntProvider arg3)