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

public class PublicCrafting extends AbstractCrafting
  • Constructor Details

    • PublicCrafting

      public PublicCrafting(@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.
    • PublicCrafting

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

    • serialize

      public static net.minecraft.nbt.CompoundTag serialize(@NotNull net.minecraft.core.HolderLookup.Provider provider, IFactoryController controller, PublicCrafting input)
      Serialize the deliverable.
      Parameters:
      controller - the controller.
      input - the input.
      Returns:
      the compound.
    • deserialize

      public static PublicCrafting deserialize(@NotNull net.minecraft.core.HolderLookup.Provider provider, 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.RegistryFriendlyByteBuf buffer, PublicCrafting input)
      Serialize the deliverable.
      Parameters:
      controller - the controller.
      buffer - the the buffer to write to.
      input - the input to serialize.
    • deserialize

      public static PublicCrafting deserialize(IFactoryController controller, net.minecraft.network.RegistryFriendlyByteBuf 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.