类 FluidItemRender
java.lang.Object
committee.nova.mods.avaritia.api.client.render.FluidItemRender
-
构造器概要
构造器构造器说明FluidItemRender(net.minecraft.resources.ResourceLocation texture, int referenceWidth, int referenceHeight) -
方法概要
修饰符和类型方法说明blending(boolean enable) Enables or disables alpha-blending.voidblit(com.mojang.blaze3d.vertex.PoseStack poseStack, int zIndex) color(float r, float g, float b) colorRgb(int packedRgb) Sets the color to the R,G,B values encoded in the lower 24-bit of the given integer.dest(int x, int y, int w, int h) Draw into the rectangle defined by the given coordinates.opacity(float a) static voidrenderFluid(net.minecraftforge.fluids.FluidStack fluidStack, com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, int z) static FluidItemRendersprite(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) src(int x, int y, int w, int h) Use the given rectangle from the texture (in pixels assuming a 256x256 texture size).
-
构造器详细资料
-
FluidItemRender
public FluidItemRender(net.minecraft.resources.ResourceLocation texture, int referenceWidth, int referenceHeight)
-
-
方法详细资料
-
sprite
public static FluidItemRender sprite(net.minecraft.client.renderer.texture.TextureAtlasSprite sprite) -
src
Use the given rectangle from the texture (in pixels assuming a 256x256 texture size). -
dest
Draw into the rectangle defined by the given coordinates. -
color
-
opacity
-
blending
Enables or disables alpha-blending. If disabled, all pixels of the texture will be drawn as opaque, and the alpha value set usingopacity(float)will be ignored. -
colorRgb
Sets the color to the R,G,B values encoded in the lower 24-bit of the given integer. -
blit
public void blit(com.mojang.blaze3d.vertex.PoseStack poseStack, int zIndex) -
renderFluid
public static void renderFluid(net.minecraftforge.fluids.FluidStack fluidStack, com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y, int z)
-