net.minecraft.entity.projectile

public class ArrowEntity

extends PersistentProjectileEntity

All mapped superinterfaces:

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

net.minecraft.world.entity.projectile.arrow.Arrow
net.minecraft.world.entity.projectile.arrow.Arrow
net.minecraft.class_1667
net.minecraft.entity.projectile.ArrowEntity

Field summary

Modifier and TypeField
private static final int
EXPOSED_POTION_DECAY_TIME
EXPOSED_POTION_DECAY_TIME
field_30660
MAX_POTION_DURATION_TICKS
private static final int
NO_EFFECT_COLOR
NO_EFFECT_COLOR
field_30658
NO_POTION_COLOR
private static final TrackedData<Integer>
ID_EFFECT_COLOR
ID_EFFECT_COLOR
field_7595
COLOR
private static final byte
EVENT_POTION_PUFF
EVENT_POTION_PUFF
field_30659
PARTICLE_EFFECT_STATUS

Constructor summary

ModifierConstructor
public (EntityType<? extends ArrowEntity> type, World level)
public (World world, double x, double y, double z, ItemStack stack, ItemStack shotFrom)
public (World world, LivingEntity owner, ItemStack stack, ItemStack shotFrom)

Method summary

Modifier and TypeMethod
private PotionContentsComponent
getPotionContents()
getPotionContents()
method_57315()
getPotionContents()
private float
getPotionDurationScale()
getPotionDurationScale()
method_66326()
getPotionDurationScale()
private void
setPotionContents(PotionContents potionContents)
setPotionContents(PotionContents potionContents)
method_57316(class_1844 arg0)
setPotionContents(PotionContentsComponent potionContentsComponent)
protected void
setPickupItemStack(ItemStack itemStack)
setPickupItemStack(ItemStack itemStack)
method_57313(class_1799 arg0)
setStack(ItemStack arg0)
private void
updateColor()
updateColor()
method_7462()
initColor()
public void
addEffect(MobEffectInstance effect)
addEffect(MobEffectInstance effect)
method_7463(class_1293 arg0)
addEffect(StatusEffectInstance effect)
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
tick()
tick()
method_5773()
tick()
private void
makeParticle(int amount)
makeParticle(int amount)
method_7461(int arg0)
spawnParticles(int amount)
public int
getColor()
getColor()
method_7460()
getColor()
protected void
doPostHurtEffects(LivingEntity mob)
doPostHurtEffects(LivingEntity mob)
method_7450(class_1309 arg0)
onHit(LivingEntity arg0)
protected ItemStack
getDefaultPickupItem()
getDefaultPickupItem()
method_57314()
getDefaultItemStack()
public void
handleEntityEvent(byte id)
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)