net.minecraft.entity.vehicle

public class TntMinecartEntity

extends AbstractMinecartEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible

net.minecraft.world.entity.vehicle.minecart.MinecartTNT
net.minecraft.world.entity.vehicle.minecart.MinecartTNT
net.minecraft.class_1701
net.minecraft.entity.vehicle.TntMinecartEntity

Field summary

Modifier and TypeField
private static final byte
EVENT_PRIME
EVENT_PRIME
field_30703
PRIME_TNT_STATUS
private static final String
TAG_EXPLOSION_POWER
TAG_EXPLOSION_POWER
field_52524
EXPLOSION_POWER_NBT_KEY
private static final String
TAG_EXPLOSION_SPEED_FACTOR
TAG_EXPLOSION_SPEED_FACTOR
field_55020
EXPLOSION_SPEED_FACTOR_NBT_KEY
private static final String
TAG_FUSE
TAG_FUSE
field_55021
FUSE_NBT_KEY
private static final float
DEFAULT_EXPLOSION_POWER_BASE
DEFAULT_EXPLOSION_POWER_BASE
field_52525
DEFAULT_EXPLOSION_POWER
private static final float
DEFAULT_EXPLOSION_SPEED_FACTOR
DEFAULT_EXPLOSION_SPEED_FACTOR
field_55022
DEFAULT_EXPLOSION_SPEED_FACTOR
private static final int
NO_FUSE
NO_FUSE
field_57753
DEFAULT_FUSE_TICKS
private DamageSource
ignitionSource
ignitionSource
field_55977
damageSource
private int
fuse
fuse
field_7751
fuseTicks
private float
explosionPowerBase
explosionPowerBase
field_52526
explosionPower
private float
explosionSpeedFactor
explosionSpeedFactor
field_55023
explosionSpeedFactor

Constructor summary

ModifierConstructor
public (EntityType<? extends TntMinecartEntity> type, World level)

Method summary

Modifier and TypeMethod
public BlockState
getDefaultDisplayBlockState()
getDefaultDisplayBlockState()
method_7517()
getDefaultContainedBlock()
public void
tick()
tick()
method_5773()
tick()
public boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public void
destroy(ServerLevel level, DamageSource source)
destroy(ServerLevel level, DamageSource source)
method_7516(class_3218 arg0, class_1282 arg1)
killAndDropSelf(ServerWorld arg0, DamageSource arg1)
protected Item
getDropItem()
getDropItem()
method_7557()
asItem()
public ItemStack
getPickResult()
getPickResult()
method_31480()
getPickBlockStack()
protected void
explode(DamageSource damageSource, double speedSqr)
explode(DamageSource damageSource, double speedSqr)
method_7576(class_1282 arg0, double arg1)
explode(DamageSource damageSource, double power)
public boolean
causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource)
causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource)
method_5747(double arg0, float arg1, class_1282 arg2)
handleFallDamage(double arg0, float arg1, DamageSource arg2)
public void
activateMinecart(ServerLevel level, int xt, int yt, int zt, boolean state)
activateMinecart(ServerLevel level, int xt, int yt, int zt, boolean state)
method_7506(class_3218 arg0, int arg1, int arg2, int arg3, boolean arg4)
onActivatorRail(ServerWorld arg0, int arg1, int arg2, int arg3, boolean arg4)
public void
handleEntityEvent(byte id)
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public void
primeFuse(DamageSource source)
primeFuse(DamageSource source)
method_7575(class_1282 arg0)
prime(DamageSource source)
public int
getFuse()
getFuse()
method_7577()
getFuseTicks()
public boolean
isPrimed()
isPrimed()
method_7578()
isPrimed()
public float
getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid, float resistance)
getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid, float resistance)
method_5774(class_1927 arg0, class_1922 arg1, class_2338 arg2, class_2680 arg3, class_3610 arg4, float arg5)
getEffectiveExplosionResistance(Explosion arg0, BlockView arg1, BlockPos arg2, BlockState arg3, FluidState arg4, float arg5)
public boolean
shouldBlockExplode(Explosion explosion, BlockGetter level, BlockPos pos, BlockState state, float power)
shouldBlockExplode(Explosion explosion, BlockGetter level, BlockPos pos, BlockState state, float power)
method_5853(class_1927 arg0, class_1922 arg1, class_2338 arg2, class_2680 arg3, float arg4)
canExplosionDestroyBlock(Explosion arg0, BlockView arg1, BlockPos arg2, BlockState arg3, float arg4)
protected void
readAdditionalSaveData(ValueInput input)
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
addAdditionalSaveData(ValueOutput output)
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected boolean
shouldSourceDestroy(DamageSource source)
shouldSourceDestroy(DamageSource source)
method_55056(class_1282 arg0)
shouldAlwaysKill(DamageSource arg0)
private static boolean
damageSourceIgnitesTnt(DamageSource source)
damageSourceIgnitesTnt(DamageSource source)
method_55057(class_1282 arg0)
shouldDetonate(DamageSource source)