Package com.jozufozu.flywheel.util
Class Textures
java.lang.Object
com.jozufozu.flywheel.util.Textures
Helper class to keep track of what texture atlases are bound to what texture units.
Works with RenderTexturesMixin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void_setShaderTexture(int pShaderTexture, net.minecraft.resources.ResourceLocation pTextureId) static voidCall this after callingRenderStateShard.setupRenderState().static net.minecraft.resources.ResourceLocationgetShaderTexture(int pShaderTexture)
-
Constructor Details
-
Textures
public Textures()
-
-
Method Details
-
getShaderTexture
@Nullable public static net.minecraft.resources.ResourceLocation getShaderTexture(int pShaderTexture) -
_setShaderTexture
public static void _setShaderTexture(int pShaderTexture, net.minecraft.resources.ResourceLocation pTextureId) -
bindActiveTextures
public static void bindActiveTextures()Call this after callingRenderStateShard.setupRenderState().
-