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 ajv$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 Details

  • Constructor Details

  • Method Details

    • removeFiltered

      public void removeFiltered(Collection<Identifier> ids)
      Mappings:
      Namespace Name Mixin selector
      official a Lajv$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

      public boolean isFiltered(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Lajv$d;a(Lacf;)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

      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