Package net.createmod.catnip.render
Class SpriteShiftEntry
java.lang.Object
net.createmod.catnip.render.SpriteShiftEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.client.renderer.texture.TextureAtlasSpriteprotected final net.minecraft.resources.ResourceLocationprotected net.minecraft.client.renderer.texture.TextureAtlasSpriteprotected final net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionSpriteShiftEntry(net.minecraft.resources.ResourceLocation originalTextureLocation, net.minecraft.resources.ResourceLocation targetTextureLocation) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.texture.TextureAtlasSpritenet.minecraft.resources.ResourceLocationnet.minecraft.client.renderer.texture.TextureAtlasSpritenet.minecraft.resources.ResourceLocationfloatgetTargetU(float localU) floatgetTargetV(float localV) static floatgetUnInterpolatedU(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, float u) static floatgetUnInterpolatedV(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, float v) protected voidvoidloadTextures(net.minecraft.client.renderer.texture.TextureAtlas atlas)
-
Field Details
-
originalLocation
protected final net.minecraft.resources.ResourceLocation originalLocation -
targetLocation
protected final net.minecraft.resources.ResourceLocation targetLocation -
original
@Nullable protected net.minecraft.client.renderer.texture.TextureAtlasSprite original -
target
@Nullable protected net.minecraft.client.renderer.texture.TextureAtlasSprite target
-
-
Constructor Details
-
SpriteShiftEntry
public SpriteShiftEntry(net.minecraft.resources.ResourceLocation originalTextureLocation, net.minecraft.resources.ResourceLocation targetTextureLocation)
-
-
Method Details
-
getOriginalResourceLocation
public net.minecraft.resources.ResourceLocation getOriginalResourceLocation() -
getTargetResourceLocation
public net.minecraft.resources.ResourceLocation getTargetResourceLocation() -
getOriginal
public net.minecraft.client.renderer.texture.TextureAtlasSprite getOriginal() -
getTarget
public net.minecraft.client.renderer.texture.TextureAtlasSprite getTarget() -
getTargetU
public float getTargetU(float localU) -
getTargetV
public float getTargetV(float localV) -
loadTextures
protected void loadTextures() -
loadTextures
public void loadTextures(net.minecraft.client.renderer.texture.TextureAtlas atlas) -
getUnInterpolatedU
public static float getUnInterpolatedU(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, float u) -
getUnInterpolatedV
public static float getUnInterpolatedV(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite, float v)
-