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
tech.anonymoushacker1279.immersiveweapons.entity.npc.trading.TradeLoader
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public class TradeLoader extends net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
  • 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
    Modifier and Type
    Field
    Description
    static final Map<net.minecraft.world.entity.EntityType<?>,MerchantTrades>
     

    Fields inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener

    conditionContext, registryAccess
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement> pObject, net.minecraft.server.packs.resources.ResourceManager pResourceManager, net.minecraft.util.profiling.ProfilerFiller pProfiler)
     
    int
    getTradeRefreshTime(net.minecraft.world.entity.EntityType<?> type)
     
    static it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.entity.npc.VillagerTrades.ItemListing[]>
    getTrades(net.minecraft.world.entity.EntityType<?> type)
     

    Methods inherited from class net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener

    getPreparedPath, prepare, scanDirectory

    Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener

    reload

    Methods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener

    getContext, getRegistryAccess, injectContext, makeConditionalOps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    getName
  • Field Details

    • TRADES

      public static final Map<net.minecraft.world.entity.EntityType<?>,MerchantTrades> TRADES
  • Constructor Details

    • TradeLoader

      public TradeLoader()
  • Method Details

    • apply

      protected void apply(Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement> pObject, net.minecraft.server.packs.resources.ResourceManager pResourceManager, net.minecraft.util.profiling.ProfilerFiller pProfiler)
      Specified by:
      apply in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>
    • getTrades

      public static it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.entity.npc.VillagerTrades.ItemListing[]> getTrades(net.minecraft.world.entity.EntityType<?> type)
    • getTradeRefreshTime

      public int getTradeRefreshTime(net.minecraft.world.entity.EntityType<?> type)