Package net.minecraft
Record Class class_9648<T,P extends Predicate<T>>
java.lang.Object
java.lang.Record
net.minecraft.class_9648<T,P>
- Record Components:
contains-counts-size-
public record class_9648<T,P extends Predicate<T>> (Optional<class_9639<T,P extends Predicate<T>>> contains, Optional<class_9643<T,P extends Predicate<T>>> counts, Optional<NumberRange.IntRange> size)
extends Record
implements Predicate<Iterable<T>>
- Mappings:
Namespace Name named net/minecraft/class_9648intermediary net/minecraft/class_9648official bcnamed containsintermediary comp_2617official anamed countsintermediary comp_2618official bnamed sizeintermediary comp_2619official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<class_9639<T, P>> The field for thecontainsrecord component.private final Optional<class_9643<T, P>> The field for thecountsrecord component.private final Optional<NumberRange.IntRange> The field for thesizerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9648(Optional<class_9639<T, P>> optional, Optional<class_9643<T, P>> optional2, Optional<NumberRange.IntRange> optional3) -
Method Summary
Modifier and TypeMethodDescriptionOptional<class_9639<T, P>> contains()Returns the value of thecontainsrecord component.Optional<class_9643<T, P>> counts()Returns the value of thecountsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <T,P extends Predicate<T>>
com.mojang.serialization.Codec<class_9648<T, P>> method_59623(com.mojang.serialization.Codec<P> codec) size()Returns the value of thesizerecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_9648
public class_9648(Optional<class_9639<T, P>> optional, Optional<class_9643<T, P>> optional2, Optional<NumberRange.IntRange> optional3)
-
-
Method Details
-
method_59623
public static <T,P extends Predicate<T>> com.mojang.serialization.Codec<class_9648<T,P>> method_59623(com.mojang.serialization.Codec<P> codec) - Mappings:
Namespace Name Mixin selector named method_59623Lnet/minecraft/class_9648;method_59623(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;intermediary method_59623Lnet/minecraft/class_9648;method_59623(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;official aLbc;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
test
-
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). -
contains
Returns the value of thecontainsrecord component.- Returns:
- the value of the
containsrecord component
-
counts
Returns the value of thecountsrecord component.- Returns:
- the value of the
countsrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-