Package com.minecolonies.core.colony
Interface IColonyManagerCapability
- All Known Implementing Classes:
IColonyManagerCapability.Impl
public interface IColonyManagerCapability
Capability for the colony tag for chunks
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe implementation of the colonyTagCapability.static classThe storage class of the capability. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a new colony to the capability.createColony(@NotNull net.minecraft.world.level.Level w, @NotNull net.minecraft.core.BlockPos pos) Create a colony and return it.voiddeleteColony(int id) Delete a colony with a certain id.Get a list of all colonies.getColony(int id) Get a colony with a certain id.intgetTopID()Get the top most id of all colonies.
-
Method Details
-
createColony
IColony createColony(@NotNull @NotNull net.minecraft.world.level.Level w, @NotNull @NotNull net.minecraft.core.BlockPos pos) Create a colony and return it.- Parameters:
w- the world the colony is in.pos- the position of the colony.- Returns:
- the created colony.
-
deleteColony
void deleteColony(int id) Delete a colony with a certain id.- Parameters:
id- the id of the colony.
-
getColony
Get a colony with a certain id.- Parameters:
id- the id of the colony.- Returns:
- the colony or null.
-
getColonies
Get a list of all colonies.- Returns:
- a complete list.
-
addColony
add a new colony to the capability.- Parameters:
colony- the colony to add.
-
getTopID
int getTopID()Get the top most id of all colonies.- Returns:
- the top most id.
-