Record Class ResourceManagerWrapper
java.lang.Object
java.lang.Record
top.offsetmonkey538.loottablemodifier.modded.impl.wrapper.ResourceManagerWrapper
- All Implemented Interfaces:
ResourceManager
public record ResourceManagerWrapper(net.minecraft.server.packs.resources.ResourceManager vanillaIdentifier)
extends Record
implements ResourceManager
-
Constructor Summary
ConstructorsConstructorDescriptionResourceManagerWrapper(net.minecraft.server.packs.resources.ResourceManager vanillaIdentifier) Creates an instance of aResourceManagerWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Stream<it.unimi.dsi.fastutil.Pair<top.offsetmonkey538.monkeylib538.common.api.wrapper.Identifier,Supplier<BufferedReader>>> listResources(String string, Predicate<String> predicate) final StringtoString()Returns a string representation of this record class.net.minecraft.server.packs.resources.ResourceManagerReturns the value of thevanillaIdentifierrecord component.
-
Constructor Details
-
ResourceManagerWrapper
public ResourceManagerWrapper(net.minecraft.server.packs.resources.ResourceManager vanillaIdentifier) Creates an instance of aResourceManagerWrapperrecord class.- Parameters:
vanillaIdentifier- the value for thevanillaIdentifierrecord component
-
-
Method Details
-
listResources
public Stream<it.unimi.dsi.fastutil.Pair<top.offsetmonkey538.monkeylib538.common.api.wrapper.Identifier,Supplier<BufferedReader>>> listResources(String string, Predicate<String> predicate) - Specified by:
listResourcesin interfaceResourceManager
-
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). -
vanillaIdentifier
public net.minecraft.server.packs.resources.ResourceManager vanillaIdentifier()Returns the value of thevanillaIdentifierrecord component.- Returns:
- the value of the
vanillaIdentifierrecord component
-