net.minecraft.world.entity.projectile

public class FireworkRocketEntity

extends Projectile implements ItemSupplier

All mapped superinterfaces:

SyncedDataHolder, Nameable, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, TraceableEntity, ItemSupplier

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

Field summary

Modifier and TypeField
private static final EntityDataAccessor<ItemStack>
a
DATA_ID_FIREWORKS_ITEM
field_7614
ITEM
private static final EntityDataAccessor<OptionalInt>
b
DATA_ATTACHED_TO_TARGET
field_7611
SHOOTER_ENTITY_ID
private static final EntityDataAccessor<Boolean>
c
DATA_SHOT_AT_ANGLE
field_7615
SHOT_AT_ANGLE
private static final int
d
DEFAULT_LIFE
field_57738
DEFAULT_LIFE
private static final int
f
DEFAULT_LIFE_TIME
field_57739
DEFAULT_LIFE_TIME
private static final boolean
g
DEFAULT_SHOT_AT_ANGLE
field_57740
DEFAULT_SHOT_AT_ANGLE
private int
h
life
field_7613
life
private int
i
lifetime
field_7612
lifeTime
private LivingEntity
j
attachedToEntity
field_7616
shooter

Constructor summary

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

Method summary

Modifier and TypeMethod
protected void
a(all$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
a(double arg0)
shouldRenderAtSqrDistance(double arg0)
method_5640(double arg0)
shouldRender(double arg0)
public boolean
j(double arg0, double arg1, double arg2)
shouldRender(double arg0, double arg1, double arg2)
method_5727(double arg0, double arg1, double arg2)
shouldRender(double arg0, double arg1, double arg2)
public void
g()
tick()
method_5773()
tick()
private void
b(aub arg0)
explode(ServerLevel arg0)
method_16830(class_3218 arg0)
explodeAndRemove(ServerWorld world)
protected void
a(fip arg0)
onHitEntity(EntityHitResult arg0)
method_7454(class_3966 arg0)
onEntityHit(EntityHitResult arg0)
protected void
a(fio arg0)
onHitBlock(BlockHitResult arg0)
method_24920(class_3965 arg0)
onBlockHit(BlockHitResult arg0)
private boolean
i()
hasExplosion()
method_20308()
hasExplosionEffects()
private void
e(aub arg0)
dealExplosionDamage(ServerLevel arg0)
method_7475(class_3218 arg0)
explode(ServerWorld world)
private boolean
l()
isAttachedToEntity()
method_7476()
wasShotByEntity()
public boolean
f()
isShotAtAngle()
method_7477()
wasShotAtAngle()
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
protected void
a(fdc arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
a(fda arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
private List<FireworkExplosion>
m()
getExplosions()
method_57318()
getExplosions()
public ItemStack
e()
getItem()
method_7495()
getStack()
public boolean
cF()
isAttackable()
method_5732()
isAttackable()
private static ItemStack
n()
getDefaultItem()
method_57317()
getDefaultStack()
public it.unimi.dsi.fastutil.doubles.DoubleDoubleImmutablePair
a_(cam arg0, byb arg1)
calculateHorizontalHurtKnockbackDirection(LivingEntity arg0, DamageSource arg1)
method_59959(class_1309 arg0, class_1282 arg1)
getKnockback(LivingEntity arg0, DamageSource arg1)