Record Class FallbackResourceManager.PackEntry
java.lang.Object
java.lang.Record
net.minecraft.server.packs.resources.FallbackResourceManager.PackEntry
- Enclosing class:
FallbackResourceManager
private static record FallbackResourceManager.PackEntry(String name, @Nullable PackResources resources, @Nullable Predicate<Identifier> filter)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Predicate<Identifier> The field for thefilterrecord component.private final StringThe field for thenamerecord component.private final @Nullable PackResourcesThe field for theresourcesrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePackEntry(String name, @Nullable PackResources resources, @Nullable Predicate<Identifier> filter) Creates an instance of aPackEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Predicate<Identifier> filter()Returns the value of thefilterrecord component.voidfilterAll(Collection<Identifier> collection) final inthashCode()Returns a hash code value for this object.booleanisFiltered(Identifier location) name()Returns the value of thenamerecord component.@Nullable PackResourcesReturns the value of theresourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
resources
The field for theresourcesrecord component. -
filter
The field for thefilterrecord component.
-
-
Constructor Details
-
PackEntry
private PackEntry(String name, @Nullable PackResources resources, @Nullable Predicate<Identifier> filter) Creates an instance of aPackEntryrecord class.- Parameters:
name- the value for thenamerecord componentresources- the value for theresourcesrecord componentfilter- the value for thefilterrecord component
-
-
Method Details
-
filterAll
-
isFiltered
-
toString
-
hashCode
-
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
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-