Record Class FallbackResourceManager.PackEntry
java.lang.Object
java.lang.Record
net.minecraft.server.packs.resources.FallbackResourceManager.PackEntry
- Enclosing class:
FallbackResourceManager
static record FallbackResourceManager.PackEntry(String name, @Nullable PackResources resources, @Nullable Predicate<ResourceLocation> filter)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate
<ResourceLocation> The field for thefilter
record component.private final String
The field for thename
record component.private final PackResources
The field for theresources
record component. -
Constructor Summary
ConstructorDescriptionPackEntry
(String name, PackResources resources, Predicate<ResourceLocation> filter) Creates an instance of aPackEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.filter()
Returns the value of thefilter
record component.void
filterAll
(Collection<ResourceLocation> p_215443_) final int
hashCode()
Returns a hash code value for this object.boolean
isFiltered
(ResourceLocation p_215441_) name()
Returns the value of thename
record component.Returns the value of theresources
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
resources
The field for theresources
record component. -
filter
The field for thefilter
record component.
-
-
Constructor Details
-
PackEntry
PackEntry(String name, @Nullable PackResources resources, @Nullable Predicate<ResourceLocation> filter) Creates an instance of aPackEntry
record class.- Parameters:
name
- the value for thename
record componentresources
- the value for theresources
record componentfilter
- the value for thefilter
record component
-
-
Method Details
-
filterAll
-
isFiltered
-
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
-
resources
Returns the value of theresources
record component.- Returns:
- the value of the
resources
record component
-
filter
Returns the value of thefilter
record component.- Returns:
- the value of the
filter
record component
-