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/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionLeafTypeLoader(net.minecraft.client.renderer.texture.TextureManager manager) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()@NotNull StringgetName()@Nullable net.minecraft.client.particle.SpriteSetgetSpriteSet(net.minecraft.resources.ResourceLocation leafType) @NotNull CompletableFuture<Void> 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_)
-
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 net.minecraft.client.particle.SpriteSet 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:
reloadin interfacenet.minecraft.server.packs.resources.PreparableReloadListener
-
close
public void close() -
getName
- Specified by:
getNamein interfacenet.minecraft.server.packs.resources.PreparableReloadListener
-