Package net.minecraft.command.argument
Record Class RegistryEntryPredicateArgumentType.EntryBased<T>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.RegistryEntryPredicateArgumentType.EntryBased<T>
- Record Components:
value
-
- All Implemented Interfaces:
Predicate<RegistryEntry<T>>
,RegistryEntryPredicateArgumentType.EntryPredicate<T>
- Enclosing class:
RegistryEntryPredicateArgumentType<T>
private static record RegistryEntryPredicateArgumentType.EntryBased<T>(RegistryEntry.Reference<T> value)
extends Record
implements RegistryEntryPredicateArgumentType.EntryPredicate<T>
- Mappings:
Namespace Name named net/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryBased
intermediary net/minecraft/class_7737$class_7740
official fw$b
named value
intermediary comp_1023
official a
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryEntry.Reference
<T> The field for thevalue
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
final boolean
Indicates whether some other object is "equal to" this one.com.mojang.datafixers.util.Either
<RegistryEntry.Reference<T>, RegistryEntryList.Named<T>> getEntry()
final int
hashCode()
Returns a hash code value for this object.boolean
test
(RegistryEntry<T> registryEntry) final String
toString()
Returns a string representation of this record class.tryCast
(RegistryKey<? extends Registry<E>> registryRef) value()
Returns the value of thevalue
record component.
-
Field Details
-
value
The field for thevalue
record component.
-
-
Constructor Details
-
EntryBased
EntryBased(RegistryEntry.Reference<T> reference)
-
-
Method Details
-
getEntry
public com.mojang.datafixers.util.Either<RegistryEntry.Reference<T>,RegistryEntryList.Named<T>> getEntry()- Specified by:
getEntry
in interfaceRegistryEntryPredicateArgumentType.EntryPredicate<T>
- Mappings:
Namespace Name Mixin selector named getEntry
Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;getEntry()Lcom/mojang/datafixers/util/Either;
intermediary method_45647
Lnet/minecraft/class_7737$class_7741;method_45647()Lcom/mojang/datafixers/util/Either;
official a
Lfw$c;a()Lcom/mojang/datafixers/util/Either;
-
tryCast
public <E> Optional<RegistryEntryPredicateArgumentType.EntryPredicate<E>> tryCast(RegistryKey<? extends Registry<E>> registryRef) - Specified by:
tryCast
in interfaceRegistryEntryPredicateArgumentType.EntryPredicate<T>
- Mappings:
Namespace Name Mixin selector named tryCast
Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;tryCast(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
intermediary method_45648
Lnet/minecraft/class_7737$class_7741;method_45648(Lnet/minecraft/class_5321;)Ljava/util/Optional;
official a
Lfw$c;a(Lakp;)Ljava/util/Optional;
-
test
- Specified by:
test
in interfacePredicate<T>
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryBased;test(Lnet/minecraft/registry/entry/RegistryEntry;)Z
intermediary method_45649
Lnet/minecraft/class_7737$class_7740;method_45649(Lnet/minecraft/class_6880;)Z
official a
Lfw$b;a(Ljm;)Z
-
asString
- Specified by:
asString
in interfaceRegistryEntryPredicateArgumentType.EntryPredicate<T>
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;asString()Ljava/lang/String;
intermediary method_45650
Lnet/minecraft/class_7737$class_7741;method_45650()Ljava/lang/String;
official b
Lfw$c;b()Ljava/lang/String;
-
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)
. -
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-