net.minecraft.world.level.block

public class Block

extends BlockBehaviour implements ItemLike

All mapped superinterfaces:

ItemLike

bul
net.minecraft.world.level.block.Block
net.minecraft.class_2248
net.minecraft.block.Block
net.minecraft.block.Block
net.minecraft.server.v1_16_R2.Block

Field summary

Modifier and TypeField
protected static final org.apache.logging.log4j.Logger
l
LOGGER
field_10638
LOGGER
field_196273_d
public static final IdMapper<BlockState>
m
BLOCK_STATE_REGISTRY
field_10651
STATE_IDS
field_176229_d
REGISTRY_ID
private static final com.google.common.cache.LoadingCache<VoxelShape, Boolean>
a
SHAPE_FULL_BLOCK_CACHE
field_19312
FULL_CUBE_SHAPE_CACHE
field_223006_b
protected final StateDefinition<Block, BlockState>
n
stateDefinition
field_10647
stateManager
field_176227_L
blockStateList
private BlockState
b
defaultBlockState
field_10646
defaultState
field_196275_y
blockData
private String
c
descriptionId
field_10642
translationKey
field_149770_b
name
private Item
d
item
field_17562
cachedItem
field_220086_i
private static final ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteLinkedOpenHashMap<Block$BlockStatePairKey>>
e
OCCLUSION_CACHE
field_10649
FACE_CULL_MAP
field_210300_r

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public static int
i(cee arg0)
getId(BlockState arg0)
method_9507(class_2680 arg0)
getRawIdFromState(BlockState state)
func_196246_j(BlockState arg0)
getCombinedId(IBlockData arg0)
public static BlockState
a(int arg0)
stateById(int arg0)
method_9531(int arg0)
getStateFromRawId(int stateId)
func_196257_b(int arg0)
getByCombinedId(int arg0)
public static Block
a(blu arg0)
byItem(Item arg0)
method_9503(class_1792 arg0)
getBlockFromItem(Item item)
func_149634_a(Item arg0)
asBlock(Item arg0)
public static BlockState
a(cee arg0, cee arg1, bru arg2, fx arg3)
pushEntitiesUp(BlockState arg0, BlockState arg1, Level arg2, BlockPos arg3)
method_9582(class_2680 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3)
pushEntitiesUpBeforeBlockChange(BlockState from, BlockState to, World world, BlockPos pos)
func_199601_a(BlockState arg0, BlockState arg1, World 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)
method_9541(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
createCuboidShape(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
func_208617_a(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
public boolean
a(aej<bul> arg0)
is(Tag<Block> arg0)
method_9525(class_3494<class_2248> arg0)
isIn(Tag<Block> tag)
func_203417_a(ITag<Block> arg0)
public boolean
a(bul arg0)
is(Block arg0)
method_27839(class_2248 arg0)
is(Block block)
func_235332_a_(Block arg0)
public static BlockState
b(cee arg0, brv arg1, fx 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)
func_199770_b(BlockState arg0, IWorld arg1, BlockPos arg2)
public static void
a(cee arg0, cee arg1, brv arg2, fx 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)
func_196263_a(BlockState arg0, BlockState arg1, IWorld arg2, BlockPos arg3, int arg4)
public static void
a(cee arg0, cee arg1, brv arg2, fx 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)
func_241468_a_(BlockState arg0, BlockState arg1, IWorld arg2, BlockPos arg3, int arg4, int arg5)
public static boolean
b(bul arg0)
isExceptionForConnection(Block arg0)
method_9581(class_2248 arg0)
cannotConnect(Block block)
func_220073_a(Block arg0)
public boolean
a_(cee arg0)
isRandomlyTicking(BlockState arg0)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState state)
func_149653_t(BlockState arg0)
isTicking(IBlockData arg0)
public static boolean
c(bqz arg0, fx arg1)
canSupportRigidBlock(BlockGetter arg0, BlockPos arg1)
method_16361(class_1922 arg0, class_2338 arg1)
hasTopRim(BlockView world, BlockPos pos)
func_220064_c(IBlockReader arg0, BlockPos arg1)
public static boolean
a(brw arg0, fx arg1, gc 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)
func_220055_a(IWorldReader arg0, BlockPos arg1, Direction arg2)
public static boolean
a(dde arg0, gc arg1)
isFaceFull(VoxelShape arg0, Direction arg1)
method_9501(class_265 arg0, class_2350 arg1)
isFaceFullSquare(VoxelShape shape, Direction side)
func_208061_a(VoxelShape arg0, Direction arg1)
public static boolean
a(dde arg0)
isShapeFullBlock(VoxelShape arg0)
method_9614(class_265 arg0)
isShapeFullCube(VoxelShape shape)
func_208062_a(VoxelShape arg0)
public boolean
b(cee arg0, bqz arg1, fx arg2)
propagatesSkylightDown(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9579(class_2680 arg0, class_1922 arg1, class_2338 arg2)
isTranslucent(BlockState state, BlockView world, BlockPos pos)
func_200123_i(BlockState arg0, IBlockReader arg1, BlockPos arg2)
public void
a(brv arg0, fx arg1, cee 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)
func_176206_d(IWorld arg0, BlockPos arg1, BlockState arg2)
postBreak(GeneratorAccess arg0, BlockPosition arg1, IBlockData arg2)
public static List<ItemStack>
a(cee arg0, aag arg1, fx arg2, ccg 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)
func_220070_a(BlockState arg0, ServerWorld arg1, BlockPos arg2, TileEntity arg3)
public static List<ItemStack>
a(cee arg0, aag arg1, fx arg2, ccg arg3, apx arg4, bly 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)
func_220077_a(BlockState arg0, ServerWorld arg1, BlockPos arg2, TileEntity arg3, Entity arg4, ItemStack arg5)
getDrops(IBlockData arg0, WorldServer arg1, BlockPosition arg2, TileEntity arg3, Entity arg4, ItemStack arg5)
public static void
c(cee arg0, bru arg1, fx 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)
func_220075_c(BlockState arg0, World arg1, BlockPos arg2)
public static void
a(cee arg0, brv arg1, fx arg2, ccg 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)
func_220059_a(BlockState arg0, IWorld arg1, BlockPos arg2, TileEntity arg3)
public static void
a(cee arg0, bru arg1, fx arg2, ccg arg3, apx arg4, bly 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 stack)
func_220054_a(BlockState arg0, World arg1, BlockPos arg2, TileEntity arg3, Entity arg4, ItemStack arg5)
dropItems(IBlockData arg0, World arg1, BlockPosition arg2, TileEntity arg3, Entity arg4, ItemStack arg5)
public static void
a(bru arg0, fx arg1, bly 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)
func_180635_a(World arg0, BlockPos arg1, ItemStack arg2)
protected void
a(aag arg0, fx 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)
func_180637_b(ServerWorld arg0, BlockPos arg1, int arg2)
dropExperience(WorldServer arg0, BlockPosition arg1, int arg2)
public float
f()
getExplosionResistance()
method_9520()
getBlastResistance()
func_149638_a()
getDurability()
public void
a(bru arg0, fx arg1, brm 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)
func_180652_a(World arg0, BlockPos arg1, Explosion arg2)
wasExploded(World arg0, BlockPosition arg1, Explosion arg2)
public void
a(bru arg0, fx arg1, apx arg2)
stepOn(Level arg0, BlockPos arg1, Entity arg2)
method_9591(class_1937 arg0, class_2338 arg1, class_1297 arg2)
onSteppedOn(World world, BlockPos pos, Entity entity)
func_176199_a(World arg0, BlockPos arg1, Entity arg2)
stepOn(World arg0, BlockPosition arg1, Entity arg2)
public BlockState
a(bnv arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext ctx)
func_196258_a(BlockItemUseContext arg0)
getPlacedState(BlockActionContext arg0)
public void
a(bru arg0, bft arg1, fx arg2, cee arg3, ccg arg4, bly 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 stack)
func_180657_a(World arg0, PlayerEntity arg1, BlockPos arg2, BlockState arg3, TileEntity arg4, ItemStack arg5)
public void
a(bru arg0, fx arg1, cee arg2, aqj arg3, bly 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)
func_180633_a(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
postPlace(World arg0, BlockPosition arg1, IBlockData arg2, EntityLiving arg3, ItemStack arg4)
public boolean
ai_()
isPossibleToRespawnInThis()
method_9538()
canMobSpawnInside()
func_181623_g()
public String
i()
getDescriptionId()
method_9539()
getTranslationKey()
func_149739_a()
public void
a(bru arg0, fx arg1, apx arg2, float arg3)
fallOn(Level arg0, BlockPos arg1, Entity arg2, float arg3)
method_9554(class_1937 arg0, class_2338 arg1, class_1297 arg2, float arg3)
onLandedUpon(World world, BlockPos pos, Entity entity, float distance)
func_180658_a(World arg0, BlockPos arg1, Entity arg2, float arg3)
fallOn(World arg0, BlockPosition arg1, Entity arg2, float arg3)
public void
a(bqz arg0, apx arg1)
updateEntityAfterFallOn(BlockGetter arg0, Entity arg1)
method_9502(class_1922 arg0, class_1297 arg1)
onEntityLand(BlockView world, Entity entity)
func_176216_a(IBlockReader arg0, Entity arg1)
public void
a(bkp arg0, gj<bly> arg1)
fillItemCategory(CreativeModeTab arg0, NonNullList<ItemStack> arg1)
method_9578(class_1761 arg0, class_2371<class_1799> arg1)
addStacksForDisplay(ItemGroup group, DefaultedList<ItemStack> list)
func_149666_a(ItemGroup arg0, NonNullList<ItemStack> arg1)
public float
j()
getFriction()
method_9499()
getSlipperiness()
func_208618_m()
getFrictionFactor()
public float
k()
getSpeedFactor()
method_23349()
getVelocityMultiplier()
func_226891_m_()
getSpeedFactor()
public float
l()
getJumpFactor()
method_23350()
getJumpVelocityMultiplier()
func_226892_n_()
getJumpFactor()
public void
a(bru arg0, fx arg1, cee arg2, bft 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)
func_176208_a(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
public void
c(bru arg0, fx arg1)
handleRain(Level arg0, BlockPos arg1)
method_9504(class_1937 arg0, class_2338 arg1)
rainTick(World world, BlockPos pos)
func_176224_k(World arg0, BlockPos arg1)
public boolean
a(brm arg0)
dropFromExplosion(Explosion arg0)
method_9533(class_1927 arg0)
shouldDropItemsOnExplosion(Explosion explosion)
func_149659_a(Explosion arg0)
protected void
a(cef$a<bul, cee> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> builder)
func_206840_a(StateContainer$Builder<Block, BlockState> arg0)
public StateDefinition<Block, BlockState>
m()
getStateDefinition()
method_9595()
getStateManager()
func_176194_O()
getStates()
protected final void
j(cee arg0)
registerDefaultState(BlockState arg0)
method_9590(class_2680 arg0)
setDefaultState(BlockState state)
func_180632_j(BlockState arg0)
public final BlockState
n()
defaultBlockState()
method_9564()
getDefaultState()
func_176223_P()
getBlockData()
public SoundType
k(cee arg0)
getSoundType(BlockState arg0)
method_9573(class_2680 arg0)
getSoundGroup(BlockState state)
func_220072_p(BlockState arg0)
getStepSound(IBlockData arg0)
public Item
h()
asItem()
method_8389()
asItem()
func_199767_j()
getItem()
public boolean
o()
hasDynamicShape()
method_9543()
hasDynamicBounds()
func_208619_r()
protected Block
p()
asBlock()
method_26160()
asBlock()
func_230328_p_()
public static boolean
c(cee arg0, bqz arg1, fx arg2, gc arg3)
shouldRenderFace(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9607(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
shouldDrawSide(BlockState state, BlockView world, BlockPos pos, Direction facing)
func_176225_a(BlockState arg0, IBlockReader arg1, BlockPos arg2, Direction arg3)
public void
a(cee arg0, bru arg1, fx arg2, Random arg3)
animateTick(BlockState arg0, Level arg1, BlockPos arg2, Random arg3)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, Random arg3)
randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
func_180655_c(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
public MutableComponent
g()
getName()
method_9518()
getName()
func_235333_g_()
public ItemStack
a(bqz arg0, fx arg1, cee arg2)
getCloneItemStack(BlockGetter arg0, BlockPos arg1, BlockState arg2)
method_9574(class_1922 arg0, class_2338 arg1, class_2680 arg2)
getPickStack(BlockView world, BlockPos pos, BlockState state)
func_185473_a(IBlockReader arg0, BlockPos arg1, BlockState arg2)
public void
a(bly arg0, bqz arg1, List<nr> arg2, bni 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)
func_190948_a(ItemStack arg0, IBlockReader arg1, List<ITextComponent> arg2, ITooltipFlag arg3)