Record Class RegistryInfoLookupImpl
java.lang.Object
java.lang.Record
top.qwertycxz.loadabledialog.RegistryInfoLookupImpl
- All Implemented Interfaces:
net.minecraft.resources.RegistryOps.RegistryInfoLookup
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegistryInfoLookupImpl(Map<? extends net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>>, ? extends net.minecraft.resources.RegistryOps.RegistryInfo<?>> info) Creates an instance of aRegistryInfoLookupImplrecord 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.Map<? extends net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>>, ? extends net.minecraft.resources.RegistryOps.RegistryInfo<?>> info()Returns the value of theinforecord component.static net.minecraft.core.RegistryAccess.FrozenloadDialog(net.minecraft.core.RegistryAccess.Frozen layer, net.minecraft.core.HolderLookup.Provider access, net.minecraft.server.packs.resources.ResourceManager manager) <U> Optional<net.minecraft.resources.RegistryOps.RegistryInfo<U>> lookup(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<? extends U>> key) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STALE_PLAYERS
-
-
Constructor Details
-
RegistryInfoLookupImpl
public RegistryInfoLookupImpl(Map<? extends net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>>, ? extends net.minecraft.resources.RegistryOps.RegistryInfo<?>> info) Creates an instance of aRegistryInfoLookupImplrecord class.- Parameters:
info- the value for theinforecord component
-
-
Method Details
-
lookup
public <U> Optional<net.minecraft.resources.RegistryOps.RegistryInfo<U>> lookup(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<? extends U>> key) - Specified by:
lookupin interfacenet.minecraft.resources.RegistryOps.RegistryInfoLookup
-
loadDialog
public static net.minecraft.core.RegistryAccess.Frozen loadDialog(net.minecraft.core.RegistryAccess.Frozen layer, net.minecraft.core.HolderLookup.Provider access, net.minecraft.server.packs.resources.ResourceManager manager) -
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). -
info
public Map<? extends net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>>, ? extends net.minecraft.resources.RegistryOps.RegistryInfo<?>> info()Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-