Record Class FluidMixing.Selector.Fluid
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.resource.fluid.FluidMixing.Selector.Fluid
- All Implemented Interfaces:
FluidMixing.Selector
- Enclosing interface:
FluidMixing.Selector
public static record FluidMixing.Selector.Fluid(@NotNull net.kyori.adventure.key.Key key)
extends Record
implements FluidMixing.Selector
One fluid, by key (
machineengine:fluid/water for plain water).-
Nested Class Summary
Nested classes/interfaces inherited from interface FluidMixing.Selector
FluidMixing.Selector.Any, FluidMixing.Selector.Fluid, FluidMixing.Selector.Tag -
Constructor Summary
ConstructorsConstructorDescriptionFluid(@NotNull net.kyori.adventure.key.Key key) Creates an instance of aFluidrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull net.kyori.adventure.key.Keykey()Returns the value of thekeyrecord component.booleanmatches(@NotNull ResourceType present, @NotNull ResourceTags tags) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fluid
public Fluid(@NotNull @NotNull net.kyori.adventure.key.Key key) Creates an instance of aFluidrecord class.- Parameters:
key- the value for thekeyrecord component
-
-
Method Details
-
matches
- Specified by:
matchesin interfaceFluidMixing.Selector
-
toString
-
hashCode
-
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). -
key
@NotNull public @NotNull net.kyori.adventure.key.Key key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-