Class StudyItemListener
java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
com.minecolonies.core.datalistener.BaseDataListener<StudyItem>
com.minecolonies.core.datalistener.StudyItemListener
- All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
Loads and listens to study items for the
BuildingLibrary.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull MappingResult<StudyItem> mapEntry(net.minecraft.resources.ResourceLocation key, com.google.gson.JsonObject object) Parsed an individual entry from it's input json element.Methods inherited from class com.minecolonies.core.datalistener.BaseDataListener
apply, getEntriesMethods inherited from class net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
getPreparedPath, prepare, scanDirectoryMethods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reloadMethods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOpsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
INSTANCE
Singleton instance.
-
-
Method Details
-
mapEntry
@NotNull protected @NotNull MappingResult<StudyItem> mapEntry(net.minecraft.resources.ResourceLocation key, com.google.gson.JsonObject object) Description copied from class:BaseDataListenerParsed an individual entry from it's input json element.- Specified by:
mapEntryin classBaseDataListener<StudyItem>- Parameters:
key- the resource key.object- the resource value.- Returns:
- the mapping result.
-