Record Class RecipeDisplaySqueezer
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.recipe.display.RecipeDisplaySqueezer
- All Implemented Interfaces:
net.minecraft.world.item.crafting.display.RecipeDisplay
public record RecipeDisplaySqueezer(net.minecraft.world.item.crafting.display.SlotDisplay inputIngredient, List<org.apache.commons.lang3.tuple.Pair<? extends net.minecraft.world.item.crafting.display.SlotDisplay,Float>> outputItems, net.neoforged.neoforge.fluids.FluidStack outputFluid, net.minecraft.world.item.crafting.display.SlotDisplay craftingStation, int duration)
extends Record
implements net.minecraft.world.item.crafting.display.RecipeDisplay
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.display.RecipeDisplay
net.minecraft.world.item.crafting.display.RecipeDisplay.Type<T extends net.minecraft.world.item.crafting.display.RecipeDisplay> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RecipeDisplaySqueezer> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, RecipeDisplaySqueezer> static final net.minecraft.world.item.crafting.display.RecipeDisplay.Type<RecipeDisplaySqueezer> Fields inherited from interface net.minecraft.world.item.crafting.display.RecipeDisplay
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionRecipeDisplaySqueezer(net.minecraft.world.item.crafting.display.SlotDisplay inputIngredient, List<org.apache.commons.lang3.tuple.Pair<? extends net.minecraft.world.item.crafting.display.SlotDisplay, Float>> outputItems, net.neoforged.neoforge.fluids.FluidStack outputFluid, net.minecraft.world.item.crafting.display.SlotDisplay craftingStation, int duration) Creates an instance of aRecipeDisplaySqueezerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.crafting.display.SlotDisplayReturns the value of thecraftingStationrecord component.intduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.crafting.display.SlotDisplayReturns the value of theinputIngredientrecord component.booleanisEnabled(net.minecraft.world.flag.FeatureFlagSet featureFlagSet) net.neoforged.neoforge.fluids.FluidStackReturns the value of theoutputFluidrecord component.List<org.apache.commons.lang3.tuple.Pair<? extends net.minecraft.world.item.crafting.display.SlotDisplay, Float>> Returns the value of theoutputItemsrecord component.net.minecraft.world.item.crafting.display.SlotDisplayresult()final StringtoString()Returns a string representation of this record class.net.minecraft.world.item.crafting.display.RecipeDisplay.Type<? extends net.minecraft.world.item.crafting.display.RecipeDisplay> type()
-
Field Details
-
MAP_CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,RecipeDisplaySqueezer> STREAM_CODEC -
TYPE
public static final net.minecraft.world.item.crafting.display.RecipeDisplay.Type<RecipeDisplaySqueezer> TYPE
-
-
Constructor Details
-
RecipeDisplaySqueezer
public RecipeDisplaySqueezer(net.minecraft.world.item.crafting.display.SlotDisplay inputIngredient, List<org.apache.commons.lang3.tuple.Pair<? extends net.minecraft.world.item.crafting.display.SlotDisplay, Float>> outputItems, net.neoforged.neoforge.fluids.FluidStack outputFluid, net.minecraft.world.item.crafting.display.SlotDisplay craftingStation, int duration) Creates an instance of aRecipeDisplaySqueezerrecord class.- Parameters:
inputIngredient- the value for theinputIngredientrecord componentoutputItems- the value for theoutputItemsrecord componentoutputFluid- the value for theoutputFluidrecord componentcraftingStation- the value for thecraftingStationrecord componentduration- the value for thedurationrecord component
-
-
Method Details
-
result
public net.minecraft.world.item.crafting.display.SlotDisplay result()- Specified by:
resultin interfacenet.minecraft.world.item.crafting.display.RecipeDisplay
-
type
public net.minecraft.world.item.crafting.display.RecipeDisplay.Type<? extends net.minecraft.world.item.crafting.display.RecipeDisplay> type()- Specified by:
typein interfacenet.minecraft.world.item.crafting.display.RecipeDisplay
-
isEnabled
public boolean isEnabled(net.minecraft.world.flag.FeatureFlagSet featureFlagSet) - Specified by:
isEnabledin interfacenet.minecraft.world.item.crafting.display.RecipeDisplay
-
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. -
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. -
equals
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
inputIngredient
public net.minecraft.world.item.crafting.display.SlotDisplay inputIngredient()Returns the value of theinputIngredientrecord component.- Returns:
- the value of the
inputIngredientrecord component
-
outputItems
public List<org.apache.commons.lang3.tuple.Pair<? extends net.minecraft.world.item.crafting.display.SlotDisplay,Float>> outputItems()Returns the value of theoutputItemsrecord component.- Returns:
- the value of the
outputItemsrecord component
-
outputFluid
public net.neoforged.neoforge.fluids.FluidStack outputFluid()Returns the value of theoutputFluidrecord component.- Returns:
- the value of the
outputFluidrecord component
-
craftingStation
public net.minecraft.world.item.crafting.display.SlotDisplay craftingStation()Returns the value of thecraftingStationrecord component.- Specified by:
craftingStationin interfacenet.minecraft.world.item.crafting.display.RecipeDisplay- Returns:
- the value of the
craftingStationrecord component
-
duration
public int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-