Record Class StatisticValueProvider
java.lang.Object
java.lang.Record
me.hsgamer.topper.fabric.provider.StatisticValueProvider
- All Implemented Interfaces:
Function<net.minecraft.server.network.ServerPlayerEntity,,me.hsgamer.topper.value.core.ValueWrapper<Double>> me.hsgamer.topper.value.core.ValueProvider<net.minecraft.server.network.ServerPlayerEntity,Double>
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticValueProvider(String type, List<String> names) Creates an instance of aStatisticValueProviderrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull me.hsgamer.topper.value.core.ValueWrapper<Double> apply(@NotNull net.minecraft.server.network.ServerPlayerEntity key) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.names()Returns the value of thenamesrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface me.hsgamer.topper.value.core.ValueProvider
beforeApply, thenApply
-
Constructor Details
-
StatisticValueProvider
Creates an instance of aStatisticValueProviderrecord class.- Parameters:
type- the value for thetyperecord componentnames- the value for thenamesrecord component
-
-
Method Details
-
apply
@NotNull public @NotNull me.hsgamer.topper.value.core.ValueWrapper<Double> apply(@NotNull @NotNull net.minecraft.server.network.ServerPlayerEntity key) -
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
names
Returns the value of thenamesrecord component.- Returns:
- the value of the
namesrecord component
-