Class PermissionsMessage.AddRank
java.lang.Object
com.minecolonies.core.network.messages.PermissionsMessage.AddRank
- All Implemented Interfaces:
IMessage
- Enclosing class:
- PermissionsMessage
Message class for adding a rank to the colony
-
Constructor Summary
ConstructorsConstructorDescriptionAddRank()Empty public constructorAddRank(@NotNull IColonyView colony, @NotNull String name) Constructor for adding a rank to the colony -
Method Summary
Modifier and TypeMethodDescriptionvoidfromBytes(net.minecraft.network.FriendlyByteBuf buf) Reads message data from buffer.voidonExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer) Executes message action.voidtoBytes(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, waitMethods inherited from interface com.minecolonies.api.network.IMessage
getExecutionSide
-
Constructor Details
-
AddRank
public AddRank()Empty public constructor -
AddRank
Constructor for adding a rank to the colony- Parameters:
colony- the colony to add the rank toname- the name of the rank
-
-
Method Details
-
toBytes
public void toBytes(net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:IMessageWrites message data to buffer. -
fromBytes
public void fromBytes(net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:IMessageReads message data from buffer. -
onExecute
public void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer) Description copied from interface:IMessageExecutes message action.
-