Class PermissionsMessage.EditRankType

java.lang.Object
com.minecolonies.core.network.messages.PermissionsMessage.EditRankType
All Implemented Interfaces:
IMessage
Enclosing class:
PermissionsMessage

public static class PermissionsMessage.EditRankType extends Object implements IMessage
Message for changing the rank type of a given rank on a colony
  • Constructor Summary

    Constructors
    Constructor
    Description
    empty public constructor
    EditRankType(@NotNull IColonyView colony, @NotNull Rank rank, int rankType)
    Constructor for changing the rank type
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fromBytes(net.minecraft.network.FriendlyByteBuf buf)
    Reads message data from buffer.
    void
    onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer)
    Executes message action.
    void
    toBytes(net.minecraft.network.FriendlyByteBuf buf)
    Writes message data to buffer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.minecolonies.api.network.IMessage

    getExecutionSide
  • Constructor Details

    • EditRankType

      public EditRankType()
      empty public constructor
    • EditRankType

      public EditRankType(@NotNull @NotNull IColonyView colony, @NotNull @NotNull Rank rank, int rankType)
      Constructor for changing the rank type
      Parameters:
      colony - the colony of the rank
      rank - the rank
      rankType - the new rank type
  • Method Details

    • toBytes

      public void toBytes(net.minecraft.network.FriendlyByteBuf buf)
      Description copied from interface: IMessage
      Writes message data to buffer.
      Specified by:
      toBytes in interface IMessage
      Parameters:
      buf - network data byte buffer
    • fromBytes

      public void fromBytes(net.minecraft.network.FriendlyByteBuf buf)
      Description copied from interface: IMessage
      Reads message data from buffer.
      Specified by:
      fromBytes in interface IMessage
      Parameters:
      buf - network data byte buffer
    • onExecute

      public void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer)
      Description copied from interface: IMessage
      Executes message action.
      Specified by:
      onExecute in interface IMessage
      Parameters:
      ctxIn - network context of incoming message
      isLogicalServer - whether message arrived at logical server side