Record Class Maximum
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.providers.number.ints.Maximum
- All Implemented Interfaces:
AggregateProvider<ContextIntProvider>, ContextIntProvider, Validatable
public record Maximum(HolderSet<ContextIntProvider> inputs)
extends Record
implements ContextIntProvider, AggregateProvider<ContextIntProvider>
-
Nested Class Summary
Nested classes/interfaces inherited from interface AggregateProvider
AggregateProvider.Factory<Value,Self> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HolderSet<ContextIntProvider> The field for theinputsrecord component.static final com.mojang.serialization.MapCodec<Maximum> -
Constructor Summary
ConstructorsConstructorDescriptionMaximum(HolderSet<ContextIntProvider> inputs) Creates an instance of aMaximumrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<Maximum> codec()final booleanIndicates whether some other object is "equal to" this one.intgetIntUnsafe(LootContext context) final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface AggregateProvider
validateMethods inherited from interface ContextIntProvider
getInt
-
Field Details
-
inputs
The field for theinputsrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Maximum
Creates an instance of aMaximumrecord class.- Parameters:
inputs- the value for theinputsrecord component
-
-
Method Details
-
codec
- Specified by:
codecin interfaceContextIntProvider
-
getIntUnsafe
- Specified by:
getIntUnsafein interfaceContextIntProvider
-
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). -
inputs
Returns the value of theinputsrecord component.- Specified by:
inputsin interfaceAggregateProvider<ContextIntProvider>- Returns:
- the value of the
inputsrecord component
-