Class RecyclingOutput

java.lang.Object
com.petrolpark.core.recipe.recycling.RecyclingOutput

public final class RecyclingOutput extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<RecyclingOutput> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,RecyclingOutput> STREAM_CODEC
    • item

      protected net.minecraft.world.item.ItemStack item
      Count is ignored.
    • expectedCount

      protected double expectedCount
  • Constructor Details

    • RecyclingOutput

      public RecyclingOutput(net.minecraft.world.item.ItemStack stack)
    • RecyclingOutput

      public RecyclingOutput(net.minecraft.world.item.ItemStack stack, double expectedCount)
    • RecyclingOutput

      public RecyclingOutput(BigItemStack bigStack)
  • Method Details

    • getItem

      protected net.minecraft.world.item.ItemStack getItem()
    • getExpectedCount

      protected double getExpectedCount()
    • getExpectedRemainder

      public double getExpectedRemainder()
    • multiply

      public RecyclingOutput multiply(double multiplier)
    • copy

      public RecyclingOutput copy()
    • rollStack

      public BigItemStack rollStack(double multiplier, net.minecraft.util.RandomSource random)
    • compareTo

      public int compareTo(RecyclingOutput recyclingOutput)