Record Class RegistryData.FluidEntry
java.lang.Object
java.lang.Record
net.minestom.server.registry.RegistryData.FluidEntry
- All Implemented Interfaces:
RegistryData.Entry
- Enclosing class:
RegistryData
public static record RegistryData.FluidEntry(net.kyori.adventure.key.Key key, int id)
extends Record
implements RegistryData.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionFluidEntry
(String namespace, RegistryData.Properties main) FluidEntry
(net.kyori.adventure.key.Key key, int id) Creates an instance of aFluidEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.net.kyori.adventure.key.Key
key()
Returns the value of thekey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FluidEntry
-
FluidEntry
public FluidEntry(net.kyori.adventure.key.Key key, int id) Creates an instance of aFluidEntry
record class.- Parameters:
key
- the value for thekey
record componentid
- the value for theid
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
key
public net.kyori.adventure.key.Key key()Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-