类 NeoForgeRegistryCallbacks.ItemCallbacks

java.lang.Object
net.neoforged.neoforge.registries.NeoForgeRegistryCallbacks.ItemCallbacks
所有已实现的接口:
AddCallback<Item>, ClearCallback<Item>, RegistryCallback<Item>
封闭类:
NeoForgeRegistryCallbacks

static class NeoForgeRegistryCallbacks.ItemCallbacks extends Object implements AddCallback<Item>, ClearCallback<Item>
  • 字段详细资料

  • 构造器详细资料

    • ItemCallbacks

      ItemCallbacks()
  • 方法详细资料

    • onAdd

      public void onAdd(Registry<Item> registry, int id, ResourceKey<Item> key, Item item)
      从接口复制的说明: AddCallback
      Called when an entry is added to the registry.
      指定者:
      onAdd 在接口中 AddCallback<Item>
      参数:
      registry - the registry
      id - the integer ID assigned to the entry
      key - the resource key for the entry
      item - the entry's value
    • onClear

      public void onClear(Registry<Item> registry, boolean full)
      从接口复制的说明: ClearCallback
      Called when the registry is cleared before anything is done to the registry.
      指定者:
      onClear 在接口中 ClearCallback<Item>
      参数:
      registry - the registry
      full - if true, all entries in the registry will be cleared. if false, only integer IDs in the registry will be cleared.