类 FluidItemRender

java.lang.Object
committee.nova.mods.avaritia.api.client.render.FluidItemRender

public final class FluidItemRender extends Object
  • 构造器详细资料

    • 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

      public FluidItemRender src(int x, int y, int w, int h)
      Use the given rectangle from the texture (in pixels assuming a 256x256 texture size).
    • dest

      public FluidItemRender dest(int x, int y, int w, int h)
      Draw into the rectangle defined by the given coordinates.
    • color

      public FluidItemRender color(float r, float g, float b)
    • opacity

      public FluidItemRender opacity(float a)
    • blending

      public FluidItemRender blending(boolean enable)
      Enables or disables alpha-blending. If disabled, all pixels of the texture will be drawn as opaque, and the alpha value set using opacity(float) will be ignored.
    • colorRgb

      public FluidItemRender colorRgb(int packedRgb)
      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)