java.lang.Object
com.minecolonies.core.colony.events.raid.HordeRaidEvent
com.minecolonies.core.colony.events.raid.barbarianEvent.BarbarianRaidEvent
All Implemented Interfaces:
IColonyCampFireRaidEvent, IColonyEntitySpawnEvent, IColonyEvent, IColonyRaidEvent, IColonySpawnEvent, net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class BarbarianRaidEvent extends HordeRaidEvent
Barbarian raid event for the colony, triggers a horde of barbarians which spawn and attack the colony.
  • Field Details

    • BARBARIAN_RAID_EVENT_TYPE_ID

      public static final net.minecraft.resources.ResourceLocation BARBARIAN_RAID_EVENT_TYPE_ID
      This raids event id, registry entries use res locations as ids.
  • Constructor Details

    • BarbarianRaidEvent

      public BarbarianRaidEvent(IColony colony)
  • Method Details

    • getEventTypeID

      public net.minecraft.resources.ResourceLocation getEventTypeID()
      Description copied from interface: IColonyEvent
      The event type's id
      Returns:
      the event type id.
    • registerEntity

      public void registerEntity(net.minecraft.world.entity.Entity entity)
      Description copied from interface: IColonyEntitySpawnEvent
      Called to register an entity with this event
      Parameters:
      entity - the entity to register.
    • onEntityDeath

      public void onEntityDeath(net.minecraft.world.entity.LivingEntity entity)
      Description copied from interface: IColonyEntitySpawnEvent
      Trigger on entity death.
      Specified by:
      onEntityDeath in interface IColonyEntitySpawnEvent
      Overrides:
      onEntityDeath in class HordeRaidEvent
      Parameters:
      entity - the killed entity.
    • loadFromNBT

      public static BarbarianRaidEvent loadFromNBT(IColony colony, net.minecraft.nbt.CompoundTag compound, @NotNull net.minecraft.core.HolderLookup.Provider provider)
      Loads the event from the nbt compound.
      Parameters:
      colony - colony to load into
      compound - NBTcompound with saved values
      Returns:
      the raid event.
    • getNormalRaiderType

      public net.minecraft.world.entity.EntityType<?> getNormalRaiderType()
      Description copied from interface: IColonyRaidEvent
      Get the normal raider type.
      Returns:
      the normal type.
    • getArcherRaiderType

      public net.minecraft.world.entity.EntityType<?> getArcherRaiderType()
      Description copied from interface: IColonyRaidEvent
      Get the archer raider type.
      Returns:
      the archer type.
    • getBossRaiderType

      public net.minecraft.world.entity.EntityType<?> getBossRaiderType()
      Description copied from interface: IColonyRaidEvent
      Get the boss raider type.
      Returns:
      the boss type.
    • getDisplayName

      protected net.minecraft.network.chat.MutableComponent getDisplayName()
      Description copied from class: HordeRaidEvent
      Gets the raids display name
      Specified by:
      getDisplayName in class HordeRaidEvent
      Returns: