Class LeafTypeLoader

java.lang.Object
de.cheaterpaul.fallingleaves.data.LeafTypeLoader
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public class LeafTypeLoader extends Object implements net.minecraft.server.packs.resources.PreparableReloadListener
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     
    static class 
     
    static interface 
     

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LeafTypeLoader(net.minecraft.client.renderer.texture.TextureManager manager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    @NotNull String
     
    getSpriteSet(net.minecraft.resources.ResourceLocation leafType)
     
    reload(@NotNull net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier stage, @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull net.minecraft.util.profiling.ProfilerFiller p_10640_, @NotNull net.minecraft.util.profiling.ProfilerFiller p_10641_, @NotNull Executor pBackgroundExecutor, @NotNull Executor p_10643_)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LEAVES_ATLAS

      public static final net.minecraft.resources.ResourceLocation LEAVES_ATLAS
  • Constructor Details

    • LeafTypeLoader

      public LeafTypeLoader(net.minecraft.client.renderer.texture.TextureManager manager)
  • Method Details

    • getSpriteSet

      @Nullable public @Nullable LeafTypeLoader.LeafTypeSettings getSpriteSet(net.minecraft.resources.ResourceLocation leafType)
    • reload

      @NotNull public @NotNull CompletableFuture<Void> reload(@NotNull @NotNull net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier stage, @NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller p_10640_, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller p_10641_, @NotNull @NotNull Executor pBackgroundExecutor, @NotNull @NotNull Executor p_10643_)
      Specified by:
      reload in interface net.minecraft.server.packs.resources.PreparableReloadListener
    • close

      public void close()
    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface net.minecraft.server.packs.resources.PreparableReloadListener