类 Raider

所有已实现的接口:
SyncedDataHolder, Attackable, EquipmentUser, Leashable, Enemy, Targeting, EntityAccess, Nameable, ScoreHolder, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, IForgeLivingEntity, INBTSerializable<CompoundTag>
直接已知子类:
AbstractIllager, Ravager, Witch

public abstract class Raider extends PatrollingMonster
  • 字段详细资料

    • IS_CELEBRATING

      protected static final EntityDataAccessor<Boolean> IS_CELEBRATING
    • ALLOWED_ITEMS

      static final Predicate<ItemEntity> ALLOWED_ITEMS
    • raid

      @Nullable protected Raid raid
    • wave

      private int wave
    • canJoinRaid

      private boolean canJoinRaid
    • ticksOutsideRaid

      private int ticksOutsideRaid
  • 构造器详细资料

  • 方法详细资料

    • registerGoals

      protected void registerGoals()
      覆盖:
      registerGoals 在类中 PatrollingMonster
    • defineSynchedData

      protected void defineSynchedData(SynchedEntityData.Builder p_333182_)
      覆盖:
      defineSynchedData 在类中 Mob
    • applyRaidBuffs

      public abstract void applyRaidBuffs(ServerLevel p_343389_, int p_37844_, boolean p_37845_)
    • canJoinRaid

      public boolean canJoinRaid()
    • setCanJoinRaid

      public void setCanJoinRaid(boolean p_37898_)
    • aiStep

      public void aiStep()
      覆盖:
      aiStep 在类中 Monster
    • updateNoActionTime

      protected void updateNoActionTime()
      覆盖:
      updateNoActionTime 在类中 Monster
    • die

      public void die(DamageSource p_37847_)
      覆盖:
      die 在类中 LivingEntity
    • canJoinPatrol

      public boolean canJoinPatrol()
      覆盖:
      canJoinPatrol 在类中 PatrollingMonster
    • setCurrentRaid

      public void setCurrentRaid(@Nullable Raid p_37852_)
    • getCurrentRaid

      @Nullable public Raid getCurrentRaid()
    • isCaptain

      public boolean isCaptain()
    • hasRaid

      public boolean hasRaid()
    • hasActiveRaid

      public boolean hasActiveRaid()
    • setWave

      public void setWave(int p_37843_)
    • getWave

      public int getWave()
    • isCelebrating

      public boolean isCelebrating()
    • setCelebrating

      public void setCelebrating(boolean p_37900_)
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundTag p_37870_)
      覆盖:
      addAdditionalSaveData 在类中 PatrollingMonster
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundTag p_37862_)
      覆盖:
      readAdditionalSaveData 在类中 PatrollingMonster
    • pickUpItem

      protected void pickUpItem(ServerLevel p_362025_, ItemEntity p_37866_)
      覆盖:
      pickUpItem 在类中 Mob
    • removeWhenFarAway

      public boolean removeWhenFarAway(double p_37894_)
      覆盖:
      removeWhenFarAway 在类中 PatrollingMonster
    • requiresCustomPersistence

      public boolean requiresCustomPersistence()
      覆盖:
      requiresCustomPersistence 在类中 Mob
    • getTicksOutsideRaid

      public int getTicksOutsideRaid()
    • setTicksOutsideRaid

      public void setTicksOutsideRaid(int p_37864_)
    • hurtServer

      public boolean hurtServer(ServerLevel p_363909_, DamageSource p_362937_, float p_369722_)
      覆盖:
      hurtServer 在类中 LivingEntity
    • finalizeSpawn

      @Nullable public SpawnGroupData finalizeSpawn(ServerLevelAccessor p_37856_, DifficultyInstance p_37857_, EntitySpawnReason p_368278_, @Nullable SpawnGroupData p_37859_)
      从类复制的说明: Mob
      Forge: Override-Only, call via ForgeEventFactory.onFinalizeSpawn.
      Overrides are allowed. Do not wrap super calls within override (as that will cause stack overflows).
      Vanilla calls are replaced with a transformer, and are not visible in source.

      Be certain to either call super.finalizeSpawn or set the Mob.spawnReason field from within your override.

      覆盖:
      finalizeSpawn 在类中 PatrollingMonster
    • getCelebrateSound

      public abstract SoundEvent getCelebrateSound()