net.minecraft.entity.projectile

public class FireworkRocketEntity

extends ProjectileEntity implements FlyingItemEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, Ownable, FlyingItemEntity

net.minecraft.world.entity.projectile.FireworkRocketEntity
net.minecraft.class_1671
net.minecraft.entity.projectile.FireworkRocketEntity

Field summary

Modifier and TypeField
private static final TrackedData<ItemStack>
DATA_ID_FIREWORKS_ITEM
field_7614
ITEM
private static final TrackedData<OptionalInt>
DATA_ATTACHED_TO_TARGET
field_7611
SHOOTER_ENTITY_ID
private static final TrackedData<Boolean>
DATA_SHOT_AT_ANGLE
field_7615
SHOT_AT_ANGLE
private static final int
DEFAULT_LIFE
field_57738
DEFAULT_LIFE
private static final int
DEFAULT_LIFE_TIME
field_57739
DEFAULT_LIFE_TIME
private static final boolean
DEFAULT_SHOT_AT_ANGLE
field_57740
DEFAULT_SHOT_AT_ANGLE
private int
life
field_7613
life
private int
lifetime
field_7612
lifeTime
private LivingEntity
attachedToEntity
field_7616
shooter

Constructor summary

ModifierConstructor
public (EntityType<? extends FireworkRocketEntity> type, World level)
public (World world, double x, double y, double z, ItemStack stack)
public (World world, Entity entity, double x, double y, double z, ItemStack stack)
public (World world, ItemStack stack, LivingEntity shooter)
public (World world, ItemStack stack, double x, double y, double z, boolean shotAtAngle)
public (World world, ItemStack stack, Entity entity, double x, double y, double z, boolean shotAtAngle)

Method summary

Modifier and TypeMethod
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
shouldRenderAtSqrDistance(double distance)
method_5640(double arg0)
shouldRender(double arg0)
public boolean
shouldRender(double camX, double camY, double camZ)
method_5727(double arg0, double arg1, double arg2)
shouldRender(double arg0, double arg1, double arg2)
public void
tick()
method_5773()
tick()
private void
explode(ServerLevel level)
method_16830(class_3218 arg0)
explodeAndRemove(ServerWorld world)
protected void
onHitEntity(EntityHitResult hitResult)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
protected void
onHitBlock(BlockHitResult hitResult)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
private boolean
hasExplosion()
method_20308()
hasExplosionEffects()
private void
dealExplosionDamage(ServerLevel level)
method_7475(class_3218 arg0)
explode(ServerWorld world)
private boolean
isAttachedToEntity()
method_7476()
wasShotByEntity()
public boolean
isShotAtAngle()
method_7477()
wasShotAtAngle()
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
private List<FireworkExplosionComponent>
getExplosions()
method_57318()
getExplosions()
public ItemStack
getItem()
method_7495()
getStack()
public boolean
isAttackable()
method_5732()
isAttackable()
private static ItemStack
getDefaultItem()
method_57317()
getDefaultStack()
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
calculateHorizontalHurtKnockbackDirection(LivingEntity hurtEntity, DamageSource damageSource)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity arg0, DamageSource arg1)
private void
lambda$tick$0(int arg0)
method_18072(int arg0)
method_18072(int id)