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 - named - net/minecraft/resource/NamespaceResourceManager$FilterablePack- intermediary - net/minecraft/class_3294$class_7082- official - aug$d- named - name- intermediary - comp_529- official - a- named - underlying- intermediary - comp_530- official - b- named - filter- intermediary - comp_531- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final @Nullable Predicate<Identifier> The field for thefilterrecord component.private final StringThe field for thenamerecord component.private final @Nullable ResourcePackThe field for theunderlyingrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionFilterablePack(String string, @Nullable ResourcePack resourcePack, @Nullable Predicate<Identifier> predicate) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.booleanisFiltered(Identifier id) name()Returns the value of thenamerecord component.voidfinal StringtoString()Returns a string representation of this record class.Returns the value of theunderlyingrecord component.
- 
Field Details- 
nameThe field for thenamerecord component.
- 
underlyingThe field for theunderlyingrecord component.
- 
filterThe field for thefilterrecord component.
 
- 
- 
Constructor Details- 
FilterablePackFilterablePack(String string, @Nullable @Nullable ResourcePack resourcePack, @Nullable @Nullable Predicate<Identifier> predicate) 
 
- 
- 
Method Details- 
removeFiltered- Mappings:
- Namespace - Name - Mixin selector - named - removeFiltered- Lnet/minecraft/resource/NamespaceResourceManager$FilterablePack;removeFiltered(Ljava/util/Collection;)V- intermediary - method_41268- Lnet/minecraft/class_3294$class_7082;method_41268(Ljava/util/Collection;)V- official - a- Laug$d;a(Ljava/util/Collection;)V
 
- 
isFiltered- Mappings:
- Namespace - Name - Mixin selector - named - isFiltered- Lnet/minecraft/resource/NamespaceResourceManager$FilterablePack;isFiltered(Lnet/minecraft/util/Identifier;)Z- intermediary - method_41269- Lnet/minecraft/class_3294$class_7082;method_41269(Lnet/minecraft/class_2960;)Z- official - a- Laug$d;a(Lakv;)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
underlyingReturns the value of theunderlyingrecord component.- Returns:
- the value of the underlyingrecord component
 
- 
filterReturns the value of thefilterrecord component.- Returns:
- the value of the filterrecord component
 
 
-