Class ResetableLazy<T>

java.lang.Object
com.simibubi.create.foundation.utility.ResetableLazy<T>
All Implemented Interfaces:
Supplier<T>

public class ResetableLazy<T> extends Object implements Supplier<T>
  • Constructor Details

    • ResetableLazy

      public ResetableLazy(net.minecraftforge.common.util.NonNullSupplier<T> supplier)
  • Method Details

    • get

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

      public void reset()
    • of

      public static <T> ResetableLazy<T> of(net.minecraftforge.common.util.NonNullSupplier<T> supplier)