Record Class RecipeDisplayDryingBasin
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.core.recipe.display.RecipeDisplayDryingBasin
- All Implemented Interfaces:
net.minecraft.world.item.crafting.display.RecipeDisplay
public record RecipeDisplayDryingBasin(net.minecraft.world.item.crafting.display.SlotDisplay inputIngredient, net.neoforged.neoforge.fluids.FluidStack inputFluid, net.minecraft.world.item.crafting.display.SlotDisplay outputItem, 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
<RecipeDisplayDryingBasin> static final net.minecraft.network.codec.StreamCodec
<net.minecraft.network.RegistryFriendlyByteBuf, RecipeDisplayDryingBasin> static final net.minecraft.world.item.crafting.display.RecipeDisplay.Type
<RecipeDisplayDryingBasin> Fields inherited from interface net.minecraft.world.item.crafting.display.RecipeDisplay
CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionRecipeDisplayDryingBasin
(net.minecraft.world.item.crafting.display.SlotDisplay inputIngredient, net.neoforged.neoforge.fluids.FluidStack inputFluid, net.minecraft.world.item.crafting.display.SlotDisplay outputItem, net.neoforged.neoforge.fluids.FluidStack outputFluid, net.minecraft.world.item.crafting.display.SlotDisplay craftingStation, int duration) Creates an instance of aRecipeDisplayDryingBasin
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.crafting.display.SlotDisplay
Returns the value of thecraftingStation
record component.int
duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.net.neoforged.neoforge.fluids.FluidStack
Returns the value of theinputFluid
record component.net.minecraft.world.item.crafting.display.SlotDisplay
Returns the value of theinputIngredient
record component.boolean
isEnabled
(net.minecraft.world.flag.FeatureFlagSet featureFlagSet) net.neoforged.neoforge.fluids.FluidStack
Returns the value of theoutputFluid
record component.net.minecraft.world.item.crafting.display.SlotDisplay
Returns the value of theoutputItem
record component.net.minecraft.world.item.crafting.display.SlotDisplay
result()
final String
toString()
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,RecipeDisplayDryingBasin> STREAM_CODEC -
TYPE
public static final net.minecraft.world.item.crafting.display.RecipeDisplay.Type<RecipeDisplayDryingBasin> TYPE
-
-
Constructor Details
-
RecipeDisplayDryingBasin
public RecipeDisplayDryingBasin(net.minecraft.world.item.crafting.display.SlotDisplay inputIngredient, net.neoforged.neoforge.fluids.FluidStack inputFluid, net.minecraft.world.item.crafting.display.SlotDisplay outputItem, net.neoforged.neoforge.fluids.FluidStack outputFluid, net.minecraft.world.item.crafting.display.SlotDisplay craftingStation, int duration) Creates an instance of aRecipeDisplayDryingBasin
record class.- Parameters:
inputIngredient
- the value for theinputIngredient
record componentinputFluid
- the value for theinputFluid
record componentoutputItem
- the value for theoutputItem
record componentoutputFluid
- the value for theoutputFluid
record componentcraftingStation
- the value for thecraftingStation
record componentduration
- the value for theduration
record component
-
-
Method Details
-
result
public net.minecraft.world.item.crafting.display.SlotDisplay result()- Specified by:
result
in 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:
type
in interfacenet.minecraft.world.item.crafting.display.RecipeDisplay
-
isEnabled
public boolean isEnabled(net.minecraft.world.flag.FeatureFlagSet featureFlagSet) - Specified by:
isEnabled
in 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 theinputIngredient
record component.- Returns:
- the value of the
inputIngredient
record component
-
inputFluid
public net.neoforged.neoforge.fluids.FluidStack inputFluid()Returns the value of theinputFluid
record component.- Returns:
- the value of the
inputFluid
record component
-
outputItem
public net.minecraft.world.item.crafting.display.SlotDisplay outputItem()Returns the value of theoutputItem
record component.- Returns:
- the value of the
outputItem
record component
-
outputFluid
public net.neoforged.neoforge.fluids.FluidStack outputFluid()Returns the value of theoutputFluid
record component.- Returns:
- the value of the
outputFluid
record component
-
craftingStation
public net.minecraft.world.item.crafting.display.SlotDisplay craftingStation()Returns the value of thecraftingStation
record component.- Specified by:
craftingStation
in interfacenet.minecraft.world.item.crafting.display.RecipeDisplay
- Returns:
- the value of the
craftingStation
record component
-
duration
public int duration()Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-