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 atu$d
named name
intermediary comp_529
official a
named underlying
intermediary comp_530
official b
named filter
intermediary comp_531
official c
  • Field Details

  • Constructor Details

  • Method Details

    • removeFiltered

      public void removeFiltered(Collection<Identifier> ids)
      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 Latu$d;a(Ljava/util/Collection;)V
    • isFiltered

      public boolean isFiltered(Identifier id)
      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 Latu$d;a(Lakq;)Z
    • toString

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • underlying

      @Nullable public @Nullable ResourcePack underlying()
      Returns the value of the underlying record component.
      Returns:
      the value of the underlying record component
    • filter

      Returns the value of the filter record component.
      Returns:
      the value of the filter record component