Record Class PotionCentrifugation.PotionCentrifugationRecipe

java.lang.Object
java.lang.Record
com.petrolpark.compat.create.common.processing.centrifuge.PotionCentrifugation.PotionCentrifugationRecipe
All Implemented Interfaces:
ICentrifugationRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
Enclosing class:
PotionCentrifugation

public static record PotionCentrifugation.PotionCentrifugationRecipe(net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> ingredients, net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient fluidIngredient, com.mojang.datafixers.util.Either<net.minecraft.world.item.ItemStack,RecyclingOutputs> result, net.neoforged.neoforge.fluids.FluidStack denseOutput) extends Record implements net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>, ICentrifugationRecipe
  • Field Summary

    Fields inherited from interface net.minecraft.world.item.crafting.Recipe

    CODEC, CONDITIONAL_CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    PotionCentrifugationRecipe(net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> ingredients, net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient fluidIngredient, com.mojang.datafixers.util.Either<net.minecraft.world.item.ItemStack,RecyclingOutputs> result, net.neoforged.neoforge.fluids.FluidStack denseOutput)
    Creates an instance of a PotionCentrifugationRecipe record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.RecipeInput input, net.minecraft.core.HolderLookup.Provider registries)
     
    boolean
    canCraftInDimensions(int width, int height)
     
    net.neoforged.neoforge.fluids.FluidStack
    Returns the value of the denseOutput record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient
    Returns the value of the fluidIngredient record component.
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
     
    net.neoforged.neoforge.fluids.FluidStack
     
    net.minecraft.core.NonNullList<net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient>
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
     
    net.neoforged.neoforge.fluids.FluidStack
     
    int
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getRemainingItems(net.minecraft.world.item.crafting.RecipeInput input)
     
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.HolderLookup.Provider registries)
     
    List<com.simibubi.create.content.processing.recipe.ProcessingOutput>
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.crafting.RecipeType<?>
     
    final int
    Returns a hash code value for this object.
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
    Returns the value of the ingredients record component.
    boolean
    matches(net.minecraft.world.item.crafting.RecipeInput input, net.minecraft.world.level.Level level)
     
    com.mojang.datafixers.util.Either<net.minecraft.world.item.ItemStack,RecyclingOutputs>
    Returns the value of the result record component.
    List<net.minecraft.world.item.ItemStack>
    rollLuckyResults(com.simibubi.create.foundation.blockEntity.SmartBlockEntity blockEntity, net.minecraft.util.RandomSource random)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.petrolpark.compat.create.common.processing.centrifuge.ICentrifugationRecipe

    apply

    Methods inherited from interface net.minecraft.world.item.crafting.Recipe

    getGroup, getToastSymbol, isIncomplete, isSpecial, showNotification
  • Constructor Details

    • PotionCentrifugationRecipe

      public PotionCentrifugationRecipe(net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> ingredients, net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient fluidIngredient, com.mojang.datafixers.util.Either<net.minecraft.world.item.ItemStack,RecyclingOutputs> result, net.neoforged.neoforge.fluids.FluidStack denseOutput)
      Creates an instance of a PotionCentrifugationRecipe record class.
      Parameters:
      ingredients - the value for the ingredients record component
      fluidIngredient - the value for the fluidIngredient record component
      result - the value for the result record component
      denseOutput - the value for the denseOutput record component
  • Method Details

    • getCentrifugationIngredients

      public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getCentrifugationIngredients()
      Specified by:
      getCentrifugationIngredients in interface ICentrifugationRecipe
    • getIngredients

      public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()
      Specified by:
      getIngredients in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getFluidIngredients

      public net.minecraft.core.NonNullList<net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient> getFluidIngredients()
      Specified by:
      getFluidIngredients in interface ICentrifugationRecipe
    • getProcessingDuration

      public int getProcessingDuration()
      Specified by:
      getProcessingDuration in interface ICentrifugationRecipe
    • getRollableResults

      public List<com.simibubi.create.content.processing.recipe.ProcessingOutput> getRollableResults()
      Specified by:
      getRollableResults in interface ICentrifugationRecipe
      See Also:
    • rollLuckyResults

      public List<net.minecraft.world.item.ItemStack> rollLuckyResults(com.simibubi.create.foundation.blockEntity.SmartBlockEntity blockEntity, net.minecraft.util.RandomSource random)
      Specified by:
      rollLuckyResults in interface ICentrifugationRecipe
    • getRemainingItems

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(@Nonnull net.minecraft.world.item.crafting.RecipeInput input)
      Specified by:
      getRemainingItems in interface ICentrifugationRecipe
      Specified by:
      getRemainingItems in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getDenseOutputFluid

      public net.neoforged.neoforge.fluids.FluidStack getDenseOutputFluid()
      Specified by:
      getDenseOutputFluid in interface ICentrifugationRecipe
    • getLightOutputFluid

      public net.neoforged.neoforge.fluids.FluidStack getLightOutputFluid()
      Specified by:
      getLightOutputFluid in interface ICentrifugationRecipe
    • matches

      public boolean matches(@Nonnull net.minecraft.world.item.crafting.RecipeInput input, @Nonnull net.minecraft.world.level.Level level)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • assemble

      public net.minecraft.world.item.ItemStack assemble(@Nonnull net.minecraft.world.item.crafting.RecipeInput input, @Nonnull net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • canCraftInDimensions

      public boolean canCraftInDimensions(int width, int height)
      Specified by:
      canCraftInDimensions in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getResultItem

      public net.minecraft.world.item.ItemStack getResultItem(@Nonnull net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • getType

      public net.minecraft.world.item.crafting.RecipeType<?> getType()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ingredients

      public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> ingredients()
      Returns the value of the ingredients record component.
      Returns:
      the value of the ingredients record component
    • fluidIngredient

      public net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient fluidIngredient()
      Returns the value of the fluidIngredient record component.
      Returns:
      the value of the fluidIngredient record component
    • result

      public com.mojang.datafixers.util.Either<net.minecraft.world.item.ItemStack,RecyclingOutputs> result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • denseOutput

      public net.neoforged.neoforge.fluids.FluidStack denseOutput()
      Returns the value of the denseOutput record component.
      Returns:
      the value of the denseOutput record component