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$dintermediary net/minecraft/class_3294$class_7082named net/minecraft/resource/NamespaceResourceManager$FilterablePackofficial aintermediary comp_529named nameofficial bintermediary comp_530named underlyingofficial cintermediary comp_531named filter
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionFilterablePack(String string, @Nullable ResourcePack resourcePack, @Nullable Predicate<Identifier> predicate) -
Method Summary
Modifier 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
-
name
The field for thenamerecord component. -
underlying
The field for theunderlyingrecord component. -
filter
The field for thefilterrecord 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 aLako$d;a(Ljava/util/Collection;)Vintermediary method_41268Lnet/minecraft/class_3294$class_7082;method_41268(Ljava/util/Collection;)Vnamed removeFilteredLnet/minecraft/resource/NamespaceResourceManager$FilterablePack;removeFiltered(Ljava/util/Collection;)V
-
isFiltered
- Mappings:
Namespace Name Mixin selector official aLako$d;a(Lacq;)Zintermediary method_41269Lnet/minecraft/class_3294$class_7082;method_41269(Lnet/minecraft/class_2960;)Znamed isFilteredLnet/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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
underlying
Returns the value of theunderlyingrecord component.- Returns:
- the value of the
underlyingrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-