Class PermissionsMessage.EditRankType
java.lang.Object
com.minecolonies.core.network.messages.PermissionsMessage.EditRankType
- All Implemented Interfaces:
IMessage
- Enclosing class:
- PermissionsMessage
Message for changing the rank type of a given rank on a colony
-
Constructor Summary
ConstructorsConstructorDescriptionempty public constructorEditRankType(@NotNull IColonyView colony, @NotNull Rank rank, int rankType) Constructor for changing the rank type -
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
-
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 rankrank- the rankrankType- the new rank type
-
-
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.
-