java.lang.Object
com.minecolonies.core.colony.events.raid.AbstractShipRaidEvent
com.minecolonies.core.colony.events.raid.pirateEvent.PirateRaidEvent
All Implemented Interfaces:
IColonyEntitySpawnEvent, IColonyEvent, IColonyRaidEvent, IColonySpawnEvent, IColonyStructureSpawnEvent, net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class PirateRaidEvent extends AbstractShipRaidEvent
The Pirate raid event, spawns a ship with pirate spawners onboard.
  • Field Details

    • PIRATE_RAID_EVENT_TYPE_ID

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

      public static final String SHIP_NAME
      Ship description
      See Also:
  • Constructor Details

    • PirateRaidEvent

      public PirateRaidEvent(@NotNull @NotNull IColony colony)
      Create a new Pirate raid event.
      Parameters:
      colony - the colony.
  • Method Details

    • getShipDesc

      public String getShipDesc()
      Description copied from interface: IColonyStructureSpawnEvent
      Get the ship description for the schematic
    • getEventTypeID

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

      public static IColonyEvent loadFromNBT(@NotNull @NotNull IColony colony, @NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @NotNull net.minecraft.core.HolderLookup.Provider provider)
      Loads the raid event from the given nbt.
      Parameters:
      colony - the events colony
      compound - the NBT compound
      Returns:
      the colony to load.
    • 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: AbstractShipRaidEvent
      Gets the raids display name
      Specified by:
      getDisplayName in class AbstractShipRaidEvent
      Returns: