Class PermissionsMessage.AddRank

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

public static class PermissionsMessage.AddRank extends Object implements IMessage
Message class for adding a rank to the colony
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty public constructor
    AddRank(@NotNull IColonyView colony, @NotNull String name)
    Constructor for adding a rank to the colony
  • 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

    • AddRank

      public AddRank()
      Empty public constructor
    • AddRank

      public AddRank(@NotNull @NotNull IColonyView colony, @NotNull @NotNull String name)
      Constructor for adding a rank to the colony
      Parameters:
      colony - the colony to add the rank to
      name - the name of the rank
  • 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