All Implemented Interfaces:
IMessage

public class ChangeRecipePriorityMessage extends AbstractBuildingServerMessage<IBuilding>
Message to change priorities of recipes.
  • Constructor Details

    • ChangeRecipePriorityMessage

      public ChangeRecipePriorityMessage()
      Empty public constructor.
    • ChangeRecipePriorityMessage

      public ChangeRecipePriorityMessage(@NotNull @NotNull IBuildingView building, int location, boolean up, int id, boolean fullMove)
      Creates message for player to change the priority of the recipes.
      Parameters:
      building - view of the building to read data from
      location - the recipeLocation.
      up - up or down?
      id - the unique id of the crafting module.
      fullMove - if it should be moved to the beginning/end.
  • Method Details

    • fromBytesOverride

      public void fromBytesOverride(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Transformation from a byteStream to the variables.
      Specified by:
      fromBytesOverride in class AbstractColonyServerMessage
      Parameters:
      buf - the used byteBuffer.
    • toBytesOverride

      public void toBytesOverride(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Transformation to a byteStream.
      Specified by:
      toBytesOverride in class AbstractColonyServerMessage
      Parameters:
      buf - the used byteBuffer.
    • onExecute

      protected void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer, IColony colony, IBuilding building)
      Specified by:
      onExecute in class AbstractBuildingServerMessage<IBuilding>