All Implemented Interfaces:
IMessage

public class AddRemoveRecipeMessage extends AbstractBuildingServerMessage<IBuilding>
Message class to add and remove recipes.
  • Constructor Details

    • AddRemoveRecipeMessage

      public AddRemoveRecipeMessage()
      Empty default constructor.
    • AddRemoveRecipeMessage

      public AddRemoveRecipeMessage(IBuildingView building, boolean remove, IRecipeStorage storage, int id)
      Create a message to add or remove recipes.
      Parameters:
      building - the building we're executing on.
      remove - true if remove.
      storage - the recipe storage.
      id - the unique id of the module.
    • AddRemoveRecipeMessage

      public AddRemoveRecipeMessage(IBuildingView building, List<ItemStorage> input, int gridSize, net.minecraft.world.item.ItemStack primaryOutput, List<net.minecraft.world.item.ItemStack> additionalOutputs, boolean remove, int id)
      Create a message to add or remove recipes. This constructor creates the recipeStorage on its own.
      Parameters:
      input - the input.
      gridSize - the gridSize.
      primaryOutput - the primary output.
      remove - true if remove.
      building - the building we're executing on.
      id - module id.
      additionalOutputs - the additional outputs.
    • AddRemoveRecipeMessage

      public AddRemoveRecipeMessage(IBuildingView building, List<ItemStorage> input, int gridSize, net.minecraft.world.item.ItemStack primaryOutput, boolean remove, net.minecraft.world.level.block.Block intermediary, int id)
      Create a message to add or remove recipes. This constructor creates the recipeStorage on its own.
      Parameters:
      input - the input.
      gridSize - the gridSize.
      primaryOutput - the primary output.
      remove - true if remove.
      building - the building we're executing on.
      intermediary - intermediate block.
      id - the module id.
  • Method Details