Class MissingMappingsEvent.Mapping<T>

java.lang.Object
net.minecraftforge.registries.MissingMappingsEvent.Mapping<T>
All Implemented Interfaces:
Comparable<MissingMappingsEvent.Mapping<T>>
Enclosing class:
MissingMappingsEvent

public static class MissingMappingsEvent.Mapping<T> extends Object implements Comparable<MissingMappingsEvent.Mapping<T>>
  • Field Details

  • Constructor Details

  • Method Details

    • ignore

      public void ignore()
      Ignore the missing item.
    • warn

      public void warn()
      Warn the user about the missing item.
    • fail

      public void fail()
      Prevent the world from loading due to the missing item.
    • remap

      public void remap(T target)
      Remap the missing entry to the specified object.

      Use this if you have renamed an entry. Existing references using the old name will point to the new one.

      Parameters:
      target - Entry to remap to.
    • getRegistry

      public IForgeRegistry<T> getRegistry()
    • getKey

      public ResourceLocation getKey()
    • getId

      public int getId()
    • compareTo

      public int compareTo(MissingMappingsEvent.Mapping<T> o)
      Specified by:
      compareTo in interface Comparable<T>