Interface FluidTexture.Context

Enclosing interface:
FluidTexture

public static interface FluidTexture.Context
What a texture can read while the pack is built.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether this is the flowing texture (else the still one).
    pack(@NotNull net.kyori.adventure.key.Key texture, int size)
    A texture from the CraftEngine resource packs, e.g.
    vanilla(@NotNull String path, int size)
    A vanilla texture's frames (from the official client jar), e.g.
  • Method Details

    • flowing

      boolean flowing()
      Whether this is the flowing texture (else the still one).
    • vanilla

      @NotNull @NotNull List<BufferedImage> vanilla(@NotNull @NotNull String path, int size) throws IOException
      A vanilla texture's frames (from the official client jar), e.g. block/water_still or block/lava_flow, scaled to size.
      Throws:
      IOException
    • pack

      @NotNull @NotNull List<BufferedImage> pack(@NotNull @NotNull net.kyori.adventure.key.Key texture, int size) throws IOException
      A texture from the CraftEngine resource packs, e.g. mymod:block/oil_still for assets/mymod/textures/block/oil_still.png, cut into frames and scaled to size.
      Throws:
      IOException