Interface IColonyRaidEvent
- All Superinterfaces:
IColonyEntitySpawnEvent,IColonyEvent,IColonySpawnEvent,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- All Known Implementing Classes:
AbstractShipRaidEvent,AmazonRaidEvent,BarbarianRaidEvent,DrownedPirateRaidEvent,EgyptianRaidEvent,HordeRaidEvent,NorsemenRaidEvent,NorsemenShipRaidEvent,PirateGroundRaidEvent,PirateRaidEvent
Interface type for raid events
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpawner(net.minecraft.core.BlockPos pos) Add a spawner to an event.net.minecraft.world.entity.EntityType<?>Get the archer raider type.net.minecraft.world.entity.EntityType<?>Get the boss raider type.net.minecraft.world.entity.EntityType<?>Get the normal raider type.List<net.minecraft.core.BlockPos>Gets the list of waypointsdefault booleanWhether or not the raid is still active.Methods inherited from interface com.minecolonies.api.colony.colonyEvents.IColonyEntitySpawnEvent
getEntities, onEntityDeath, registerEntity, unregisterEntityMethods inherited from interface com.minecolonies.api.colony.colonyEvents.IColonyEvent
getEventTypeID, getID, getStatus, onFinish, onNightFall, onStart, onTileEntityBreak, onUpdate, setColony, setStatusMethods inherited from interface com.minecolonies.api.colony.colonyEvents.IColonySpawnEvent
getSpawnPos, setSpawnPointMethods inherited from interface net.minecraftforge.common.util.INBTSerializable
deserializeNBT, serializeNBT
-
Method Details
-
getNormalRaiderType
net.minecraft.world.entity.EntityType<?> getNormalRaiderType()Get the normal raider type.- Returns:
- the normal type.
-
getArcherRaiderType
net.minecraft.world.entity.EntityType<?> getArcherRaiderType()Get the archer raider type.- Returns:
- the archer type.
-
getBossRaiderType
net.minecraft.world.entity.EntityType<?> getBossRaiderType()Get the boss raider type.- Returns:
- the boss type.
-
addSpawner
void addSpawner(net.minecraft.core.BlockPos pos) Add a spawner to an event.- Parameters:
pos- the pos to add the spawner at.
-
getWayPoints
List<net.minecraft.core.BlockPos> getWayPoints()Gets the list of waypoints -
isRaidActive
default boolean isRaidActive()Whether or not the raid is still active.- Returns:
- true if so.
-