Class AbstractArrowEntity

    • Field Detail

      • ID_FLAGS

        private static final DataParameter<java.lang.Byte> ID_FLAGS
      • PIERCE_LEVEL

        private static final DataParameter<java.lang.Byte> PIERCE_LEVEL
      • lastState

        @Nullable
        private BlockState lastState
      • inGround

        protected boolean inGround
      • inGroundTime

        protected int inGroundTime
      • shakeTime

        public int shakeTime
      • life

        private int life
      • baseDamage

        private double baseDamage
      • knockback

        private int knockback
      • piercingIgnoreEntityIds

        private it.unimi.dsi.fastutil.ints.IntOpenHashSet piercingIgnoreEntityIds
      • piercedAndKilledEntities

        private java.util.List<Entity> piercedAndKilledEntities
    • Method Detail

      • setSoundEvent

        public void setSoundEvent​(SoundEvent p_213869_1_)
      • shoot

        public void shoot​(double p_70186_1_,
                          double p_70186_3_,
                          double p_70186_5_,
                          float p_70186_7_,
                          float p_70186_8_)
        Overrides:
        shoot in class ProjectileEntity
      • lerpTo

        public void lerpTo​(double p_180426_1_,
                           double p_180426_3_,
                           double p_180426_5_,
                           float p_180426_7_,
                           float p_180426_8_,
                           int p_180426_9_,
                           boolean p_180426_10_)
        Overrides:
        lerpTo in class Entity
      • lerpMotion

        public void lerpMotion​(double p_70016_1_,
                               double p_70016_3_,
                               double p_70016_5_)
        Overrides:
        lerpMotion in class ProjectileEntity
      • shouldFall

        private boolean shouldFall()
      • startFalling

        private void startFalling()
      • tickDespawn

        protected void tickDespawn()
      • resetPiercedEntities

        private void resetPiercedEntities()
      • getDefaultHitGroundSoundEvent

        protected SoundEvent getDefaultHitGroundSoundEvent()
      • getHitGroundSoundEvent

        protected final SoundEvent getHitGroundSoundEvent()
      • doPostHurtEffects

        protected void doPostHurtEffects​(LivingEntity p_184548_1_)
      • getPickupItem

        protected abstract ItemStack getPickupItem()
      • setBaseDamage

        public void setBaseDamage​(double p_70239_1_)
      • getBaseDamage

        public double getBaseDamage()
      • setKnockback

        public void setKnockback​(int p_70240_1_)
      • setCritArrow

        public void setCritArrow​(boolean p_70243_1_)
      • setPierceLevel

        public void setPierceLevel​(byte p_213872_1_)
      • setFlag

        private void setFlag​(int p_203049_1_,
                             boolean p_203049_2_)
      • isCritArrow

        public boolean isCritArrow()
      • shotFromCrossbow

        public boolean shotFromCrossbow()
      • getPierceLevel

        public byte getPierceLevel()
      • setEnchantmentEffectsFromEntity

        public void setEnchantmentEffectsFromEntity​(LivingEntity p_190547_1_,
                                                    float p_190547_2_)
      • getWaterInertia

        protected float getWaterInertia()
      • setNoPhysics

        public void setNoPhysics​(boolean p_203045_1_)
      • isNoPhysics

        public boolean isNoPhysics()
      • setShotFromCrossbow

        public void setShotFromCrossbow​(boolean p_213865_1_)