net.minecraft.block

public class TntBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.TntBlock
net.minecraft.world.level.block.TntBlock
net.minecraft.class_2530
net.minecraft.block.TntBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<TntBlock>
CODEC
CODEC
field_46474
CODEC
public static final BooleanProperty
UNSTABLE
UNSTABLE
field_11621
UNSTABLE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TntBlock>
codec()
codec()
method_53969()
getCodec()
protected void
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
protected void
neighborChanged(BlockState state, Level level, BlockPos pos, Block block, Orientation orientation, boolean movedByPiston)
neighborChanged(BlockState state, Level level, BlockPos pos, Block block, Orientation orientation, boolean movedByPiston)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_9904 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, WireOrientation arg4, boolean arg5)
public BlockState
playerWillDestroy(Level level, BlockPos pos, BlockState state, Player player)
playerWillDestroy(Level level, BlockPos pos, BlockState state, Player player)
method_9576(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
onBreak(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
public void
wasExploded(ServerLevel level, BlockPos pos, Explosion explosion)
wasExploded(ServerLevel level, BlockPos pos, Explosion explosion)
method_9586(class_3218 arg0, class_2338 arg1, class_1927 arg2)
onDestroyedByExplosion(ServerWorld arg0, BlockPos arg1, Explosion arg2)
public static boolean
prime(Level level, BlockPos pos)
prime(Level level, BlockPos pos)
method_10738(class_1937 arg0, class_2338 arg1)
primeTnt(World world, BlockPos pos)
private static boolean
prime(Level level, BlockPos pos, LivingEntity source)
prime(Level level, BlockPos pos, LivingEntity source)
method_10737(class_1937 arg0, class_2338 arg1, class_1309 arg2)
primeTnt(World world, BlockPos pos, LivingEntity igniter)
protected ActionResult
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult)
method_55765(class_1799 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, class_1657 arg4, class_1268 arg5, class_3965 arg6)
onUseWithItem(ItemStack arg0, BlockState arg1, World arg2, BlockPos arg3, PlayerEntity arg4, Hand arg5, BlockHitResult arg6)
protected void
onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile)
onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile)
method_19286(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1676 arg3)
onProjectileHit(World arg0, BlockState arg1, BlockHitResult arg2, ProjectileEntity arg3)
public boolean
dropFromExplosion(Explosion explosion)
dropFromExplosion(Explosion explosion)
method_9533(class_1927 arg0)
shouldDropItemsOnExplosion(Explosion arg0)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)