类 NeoForgeRegistryCallbacks.PoiTypeCallbacks

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

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

  • 构造器详细资料

    • PoiTypeCallbacks

      PoiTypeCallbacks()
  • 方法详细资料

    • onAdd

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

      public void onClear(Registry<PoiType> registry, boolean full)
      从接口复制的说明: ClearCallback
      Called when the registry is cleared before anything is done to the registry.
      指定者:
      onClear 在接口中 ClearCallback<PoiType>
      参数:
      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.