Class SHolder<T>

java.lang.Object
net.lcc.sollib.api.common.registry.SHolder<T>
All Implemented Interfaces:
Supplier<T>
Direct Known Subclasses:
BlockHolder, DensityFunctionHolder, EffectHolder, EntityHolder, ItemHolder

public class SHolder<T> extends Object implements Supplier<T>
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public T get()
      Retrieves the cached entry if it exists, otherwise calls the supplier to create a new entry.
      Specified by:
      get in interface Supplier<T>
      Returns:
      The cached entry, or a new entry if the cached entry does not exist.
    • getID

      public net.minecraft.resources.ResourceLocation getID()
      Returns:
      This entry's identifier, built from its name and mod container
    • getRegistry

      public net.minecraft.core.Registry<T> getRegistry()