Interface IColonyManagerCapability

All Known Implementing Classes:
IColonyManagerCapability.Impl

public interface IColonyManagerCapability
Capability for the colony tag for chunks
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    The implementation of the colonyTagCapability.
    static class 
    The storage class of the capability.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add 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.
    void
    deleteColony(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.
    int
    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

      @Nullable IColony getColony(int id)
      Get a colony with a certain id.
      Parameters:
      id - the id of the colony.
      Returns:
      the colony or null.
    • getColonies

      List<IColony> getColonies()
      Get a list of all colonies.
      Returns:
      a complete list.
    • addColony

      void addColony(IColony colony)
      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.