public class TNTBlock extends Block
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
UNSTABLE |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
Constructor and Description |
---|
TNTBlock(Block.Properties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDropFromExplosion(Explosion explosionIn) |
void |
catchFire(BlockState state,
World world,
BlockPos pos,
Direction face,
LivingEntity igniter)
If the block is flammable, this is called when it gets lit on fire.
|
static void |
explode(World p_196534_0_,
BlockPos worldIn)
Deprecated.
|
private static void |
explode(World worldIn,
BlockPos pos,
LivingEntity entityIn)
Deprecated.
|
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
void |
neighborChanged(BlockState state,
World worldIn,
BlockPos pos,
Block blockIn,
BlockPos fromPos,
boolean isMoving) |
ActionResultType |
onBlockActivated(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player,
Hand handIn,
BlockRayTraceResult hit) |
void |
onBlockAdded(BlockState state,
World worldIn,
BlockPos pos,
BlockState oldState,
boolean isMoving) |
void |
onBlockHarvested(World worldIn,
BlockPos pos,
BlockState state,
PlayerEntity player) |
void |
onExplosionDestroy(World worldIn,
BlockPos pos,
Explosion explosionIn) |
void |
onProjectileCollision(World worldIn,
BlockState state,
BlockRayTraceResult hit,
Entity projectile) |
addInformation, allowsMovement, animateTick, asItem, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, mirror, needsPostProcessing, nudgeEntitiesWithNewState, onBlockClicked, onBlockPlacedBy, onEntityCollision, onEntityWalk, onFallenUpon, onLanded, onPlayerDestroy, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final BooleanProperty UNSTABLE
public TNTBlock(Block.Properties properties)
public void catchFire(BlockState state, World world, BlockPos pos, @Nullable Direction face, @Nullable LivingEntity igniter)
IForgeBlock
state
- The current stateworld
- The current worldpos
- Block position in worldface
- The face that the fire is coming fromigniter
- The entity that lit the firepublic void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean isMoving)
onBlockAdded
in class Block
public void neighborChanged(BlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos, boolean isMoving)
neighborChanged
in class Block
public void onBlockHarvested(World worldIn, BlockPos pos, BlockState state, PlayerEntity player)
onBlockHarvested
in class Block
public void onExplosionDestroy(World worldIn, BlockPos pos, Explosion explosionIn)
onExplosionDestroy
in class Block
@Deprecated private static void explode(World worldIn, BlockPos pos, @Nullable LivingEntity entityIn)
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
in class Block
public void onProjectileCollision(World worldIn, BlockState state, BlockRayTraceResult hit, Entity projectile)
onProjectileCollision
in class Block
public boolean canDropFromExplosion(Explosion explosionIn)
canDropFromExplosion
in class Block
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
in class Block