Interface IColonyStructureSpawnEvent
- All Superinterfaces:
IColonyEvent,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- All Known Implementing Classes:
AbstractShipRaidEvent,DrownedPirateRaidEvent,NorsemenShipRaidEvent,PirateRaidEvent
Used by events which do spawn a structure in the world
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of used schematics and their positions.Get the ship description for the schematicvoidsetMaxRaiderCount(int maxRaiderCount) Set the max raider count.Methods inherited from interface com.minecolonies.api.colony.colonyEvents.IColonyEvent
getEventTypeID, getID, getStatus, onFinish, onNightFall, onStart, onTileEntityBreak, onUpdate, setColony, setStatusMethods inherited from interface net.minecraftforge.common.util.INBTSerializable
deserializeNBT, serializeNBT
-
Method Details
-
getSchematicSpawns
Returns the list of used schematics and their positions. The string should be the full path to the schematic file.- Returns:
- list of schematics
-
getShipDesc
String getShipDesc()Get the ship description for the schematic -
setMaxRaiderCount
void setMaxRaiderCount(int maxRaiderCount) Set the max raider count.- Parameters:
maxRaiderCount- the count.
-