Class CompactColonyReference

java.lang.Object
com.minecolonies.api.colony.CompactColonyReference

public class CompactColonyReference extends Object
Compact colony for allies and feud data.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.core.BlockPos
    The position of the colony.
    final net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
    The dimension the colony is in.
    final boolean
    If it has a townhall or not.
    final int
    The id of the colony.
    final String
    The name of the colony.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CompactColonyReference(String name, net.minecraft.core.BlockPos center, int id, boolean hasTownHall, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
    Create a new compact colony object.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      public final String name
      The name of the colony.
    • center

      public final net.minecraft.core.BlockPos center
      The position of the colony.
    • id

      public final int id
      The id of the colony.
    • hasTownHall

      public final boolean hasTownHall
      If it has a townhall or not.
    • dimension

      public final net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension
      The dimension the colony is in.
  • Constructor Details

    • CompactColonyReference

      public CompactColonyReference(String name, net.minecraft.core.BlockPos center, int id, boolean hasTownHall, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
      Create a new compact colony object.
      Parameters:
      name - the name of the colony.
      center - the center.
      id - the id.
      hasTownHall - if it has a town hall.
      dimension - the dimension it is in.