Record Class FluidData
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.viewer.server.FluidData
public record FluidData(List<net.neoforged.neoforge.fluids.FluidStack> addedEntries, List<net.neoforged.neoforge.fluids.crafting.FluidIngredient> removedEntries, List<net.neoforged.neoforge.fluids.crafting.FluidIngredient> completelyRemovedEntries, List<FluidData.Group> groupedEntries, List<FluidData.Info> info, List<FluidData.DataComponentSubtypes> dataComponentSubtypes)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, FluidData> -
Constructor Summary
ConstructorsConstructorDescriptionFluidData(List<net.neoforged.neoforge.fluids.FluidStack> addedEntries, List<net.neoforged.neoforge.fluids.crafting.FluidIngredient> removedEntries, List<net.neoforged.neoforge.fluids.crafting.FluidIngredient> completelyRemovedEntries, List<FluidData.Group> groupedEntries, List<FluidData.Info> info, List<FluidData.DataComponentSubtypes> dataComponentSubtypes) Creates an instance of aFluidDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.neoforged.neoforge.fluids.FluidStack> Returns the value of theaddedEntriesrecord component.static FluidDatacollect()List<net.neoforged.neoforge.fluids.crafting.FluidIngredient> Returns the value of thecompletelyRemovedEntriesrecord component.Returns the value of thedataComponentSubtypesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupedEntriesrecord component.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.booleanisEmpty()List<net.neoforged.neoforge.fluids.crafting.FluidIngredient> Returns the value of theremovedEntriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,FluidData> STREAM_CODEC
-
-
Constructor Details
-
FluidData
public FluidData(List<net.neoforged.neoforge.fluids.FluidStack> addedEntries, List<net.neoforged.neoforge.fluids.crafting.FluidIngredient> removedEntries, List<net.neoforged.neoforge.fluids.crafting.FluidIngredient> completelyRemovedEntries, List<FluidData.Group> groupedEntries, List<FluidData.Info> info, List<FluidData.DataComponentSubtypes> dataComponentSubtypes) Creates an instance of aFluidDatarecord class.- Parameters:
addedEntries- the value for theaddedEntriesrecord componentremovedEntries- the value for theremovedEntriesrecord componentcompletelyRemovedEntries- the value for thecompletelyRemovedEntriesrecord componentgroupedEntries- the value for thegroupedEntriesrecord componentinfo- the value for theinforecord componentdataComponentSubtypes- the value for thedataComponentSubtypesrecord component
-
-
Method Details
-
collect
-
isEmpty
public boolean isEmpty() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
addedEntries
Returns the value of theaddedEntriesrecord component.- Returns:
- the value of the
addedEntriesrecord component
-
removedEntries
Returns the value of theremovedEntriesrecord component.- Returns:
- the value of the
removedEntriesrecord component
-
completelyRemovedEntries
Returns the value of thecompletelyRemovedEntriesrecord component.- Returns:
- the value of the
completelyRemovedEntriesrecord component
-
groupedEntries
Returns the value of thegroupedEntriesrecord component.- Returns:
- the value of the
groupedEntriesrecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
dataComponentSubtypes
Returns the value of thedataComponentSubtypesrecord component.- Returns:
- the value of the
dataComponentSubtypesrecord component
-