Package com.minecolonies.api.colony
Class CompactColonyReference
java.lang.Object
com.minecolonies.api.colony.CompactColonyReference
Compact colony for allies and feud data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.core.BlockPosThe position of the colony.final net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> The dimension the colony is in.final booleanIf it has a townhall or not.final intThe id of the colony.final StringThe name of the colony. -
Constructor Summary
ConstructorsConstructorDescriptionCompactColonyReference(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
-
Field Details
-
name
The name of the colony. -
center
public final net.minecraft.core.BlockPos centerThe position of the colony. -
id
public final int idThe id of the colony. -
hasTownHall
public final boolean hasTownHallIf it has a townhall or not. -
dimension
public final net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimensionThe 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.
-