Class ColonyConnection
java.lang.Object
com.minecolonies.api.colony.connections.ColonyConnection
Small storage class to hold colony connection data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintnet.minecraft.core.BlockPos -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for deserialization/serialization.ColonyConnection(int id, String name, net.minecraft.core.BlockPos pos, DiplomacyStatus diplomacyStatus) Connected Colony Data with: -
Method Summary
Modifier and TypeMethodDescriptiondeserializeByteBuf(net.minecraft.network.FriendlyByteBuf buf) deserializeNBT(net.minecraft.nbt.CompoundTag compoundTag) voidserializeByteBuf(net.minecraft.network.FriendlyByteBuf buf) net.minecraft.nbt.CompoundTag
-
Field Details
-
diplomacyStatus
-
id
public int id -
name
-
pos
public net.minecraft.core.BlockPos pos
-
-
Constructor Details
-
ColonyConnection
public ColonyConnection(int id, String name, net.minecraft.core.BlockPos pos, DiplomacyStatus diplomacyStatus) Connected Colony Data with:- Parameters:
id- the colony id.name- the colony name (cached).pos- the colony gate position (cached).diplomacyStatus- the diplomacy status of the two colonies.
-
ColonyConnection
public ColonyConnection()Constructor for deserialization/serialization.
-
-
Method Details
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT() -
deserializeNBT
-
serializeByteBuf
public void serializeByteBuf(net.minecraft.network.FriendlyByteBuf buf) -
deserializeByteBuf
-