Interface IColonySpawnEvent
- All Superinterfaces:
IColonyEvent,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- All Known Subinterfaces:
IColonyEntitySpawnEvent,IColonyRaidEvent
- All Known Implementing Classes:
AbstractShipRaidEvent,AmazonRaidEvent,BarbarianRaidEvent,DrownedPirateRaidEvent,EgyptianRaidEvent,HordeRaidEvent,NorsemenRaidEvent,NorsemenShipRaidEvent,PirateGroundRaidEvent,PirateRaidEvent
An colony event which spawns at a certain position
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.BlockPosThe position the event starts atvoidsetSpawnPoint(net.minecraft.core.BlockPos spawnPoint) Sets the spawn pointMethods 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
-
setSpawnPoint
void setSpawnPoint(net.minecraft.core.BlockPos spawnPoint) Sets the spawn point- Parameters:
spawnPoint- the spawn point to set.
-
getSpawnPos
net.minecraft.core.BlockPos getSpawnPos()The position the event starts at- Returns:
- the spawn pos.
-