Record Class MinMaxBounds.FloatDegrees
java.lang.Object
java.lang.Record
net.minecraft.advancements.criterion.MinMaxBounds.FloatDegrees
- All Implemented Interfaces:
MinMaxBounds<Float>
- Enclosing interface:
MinMaxBounds<T extends Number & Comparable<T>>
public static record MinMaxBounds.FloatDegrees(MinMaxBounds.Bounds<Float> bounds)
extends Record
implements MinMaxBounds<Float>
-
Nested Class Summary
Nested classes/interfaces inherited from interface MinMaxBounds
MinMaxBounds.Bounds<T>, MinMaxBounds.Doubles, MinMaxBounds.FloatDegrees, MinMaxBounds.Ints -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MinMaxBounds.FloatDegreesprivate final MinMaxBounds.Bounds<Float> The field for theboundsrecord component.static final com.mojang.serialization.Codec<MinMaxBounds.FloatDegrees> static final StreamCodec<io.netty.buffer.ByteBuf, MinMaxBounds.FloatDegrees> Fields inherited from interface MinMaxBounds
ERROR_EMPTY, ERROR_SWAPPED -
Constructor Summary
ConstructorsConstructorDescriptionFloatDegrees(MinMaxBounds.Bounds<Float> bounds) Creates an instance of aFloatDegreesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.static MinMaxBounds.FloatDegreesfromReader(com.mojang.brigadier.StringReader reader) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface MinMaxBounds
isAny, max, min
-
Field Details
-
bounds
The field for theboundsrecord component. -
ANY
-
CODEC
-
STREAM_CODEC
-
-
Constructor Details
-
FloatDegrees
Creates an instance of aFloatDegreesrecord class.- Parameters:
bounds- the value for theboundsrecord component
-
-
Method Details
-
fromReader
public static MinMaxBounds.FloatDegrees fromReader(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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). -
bounds
Returns the value of theboundsrecord component.- Specified by:
boundsin interfaceMinMaxBounds<Float>- Returns:
- the value of the
boundsrecord component
-