java.lang.Object
com.minecolonies.api.colony.requestsystem.requestable.crafting.AbstractCrafting
com.minecolonies.api.colony.requestsystem.requestable.crafting.PrivateCrafting
All Implemented Interfaces:
IRequestable

public class PrivateCrafting extends AbstractCrafting
  • Constructor Details

    • PrivateCrafting

      public PrivateCrafting(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, int count, int minCount, IToken<?> recipeToken)
      Create a Stack deliverable.
      Parameters:
      stack - the required stack.
      count - the crafting count.
      minCount - the min count.
      recipeToken - the recipe token.
  • Method Details

    • serialize

      public static net.minecraft.nbt.CompoundTag serialize(IFactoryController controller, PrivateCrafting input)
      Serialize the deliverable.
      Parameters:
      controller - the controller.
      input - the input.
      Returns:
      the compound.
    • deserialize

      public static PrivateCrafting deserialize(IFactoryController controller, net.minecraft.nbt.CompoundTag compound)
      Deserialize the deliverable.
      Parameters:
      controller - the controller.
      compound - the compound.
      Returns:
      the deliverable.
    • serialize

      public static void serialize(IFactoryController controller, net.minecraft.network.FriendlyByteBuf buffer, PrivateCrafting input)
      Serialize the deliverable.
      Parameters:
      controller - the controller.
      buffer - the the buffer to write to.
      input - the input to serialize.
    • deserialize

      public static PrivateCrafting deserialize(IFactoryController controller, net.minecraft.network.FriendlyByteBuf buffer)
      Deserialize the deliverable.
      Parameters:
      controller - the controller.
      buffer - the buffer to read.
      Returns:
      the deliverable.
    • getSuperClasses

      public Set<com.google.common.reflect.TypeToken<?>> getSuperClasses()
      Description copied from interface: IRequestable
      Get the super classes associated to this request type.
      Returns:
      the type.