Class KhazReg.Entry<T>

java.lang.Object
com.khazoda.core.KhazReg.Entry<T>
All Implemented Interfaces:
Supplier<T>
Enclosing class:
KhazReg

public static final class KhazReg.Entry<T> extends Object implements Supplier<T>
==========[ Registration Handles ]========== Define object as Entry for all types except a block with its block item. For that use BlockEntry.
  • Method Details

    • id

      public net.minecraft.resources.Identifier id()
    • key

      public net.minecraft.resources.ResourceKey<T> key()
    • get

      public T get()
      Specified by:
      get in interface Supplier<T>
    • addToTab

      public KhazReg.Entry<T> addToTab(List<Supplier<? extends net.minecraft.world.level.ItemLike>> tabItems)
    • toString

      public String toString()
      Overrides:
      toString in class Object