Package net.minecraft.resource
Record Class NamespaceResourceManager.FilterablePack
java.lang.Object
java.lang.Record
net.minecraft.resource.NamespaceResourceManager.FilterablePack
- Record Components:
name
-underlying
-filter
-
- Enclosing class:
NamespaceResourceManager
private static record NamespaceResourceManager.FilterablePack(String name, @Nullable ResourcePack underlying, @Nullable Predicate<Identifier> filter)
extends Record
- Mappings:
Namespace Name official ako$d
intermediary net/minecraft/class_3294$class_7082
named net/minecraft/resource/NamespaceResourceManager$FilterablePack
official a
intermediary comp_529
named name
official b
intermediary comp_530
named underlying
official c
intermediary comp_531
named filter
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @Nullable Predicate<Identifier>
The field for thefilter
record component.private final String
The field for thename
record component.private final @Nullable ResourcePack
The field for theunderlying
record component. -
Constructor Summary
ConstructorDescriptionFilterablePack
(String string, @Nullable ResourcePack resourcePack, @Nullable Predicate<Identifier> predicate) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.filter()
Returns the value of thefilter
record component.final int
hashCode()
Returns a hash code value for this object.boolean
isFiltered
(Identifier id) name()
Returns the value of thename
record component.void
final String
toString()
Returns a string representation of this record class.Returns the value of theunderlying
record component.
-
Field Details
-
name
The field for thename
record component. -
underlying
The field for theunderlying
record component. -
filter
The field for thefilter
record component.
-
-
Constructor Details
-
FilterablePack
FilterablePack(String string, @Nullable @Nullable ResourcePack resourcePack, @Nullable @Nullable Predicate<Identifier> predicate)
-
-
Method Details
-
removeFiltered
- Mappings:
Namespace Name Mixin selector official a
Lako$d;a(Ljava/util/Collection;)V
intermediary method_41268
Lnet/minecraft/class_3294$class_7082;method_41268(Ljava/util/Collection;)V
named removeFiltered
Lnet/minecraft/resource/NamespaceResourceManager$FilterablePack;removeFiltered(Ljava/util/Collection;)V
-
isFiltered
- Mappings:
Namespace Name Mixin selector official a
Lako$d;a(Lacq;)Z
intermediary method_41269
Lnet/minecraft/class_3294$class_7082;method_41269(Lnet/minecraft/class_2960;)Z
named isFiltered
Lnet/minecraft/resource/NamespaceResourceManager$FilterablePack;isFiltered(Lnet/minecraft/util/Identifier;)Z
-
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
underlying
Returns the value of theunderlying
record component.- Returns:
- the value of the
underlying
record component
-
filter
Returns the value of thefilter
record component.- Returns:
- the value of the
filter
record component
-