Interface FluidTexture

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FluidTexture
Where a fluid's still or flowing texture comes from, for the resource pack MachineEngine builds (docs/FLUID_TYPES_PLAN.md ยง2.3). Made by a FluidTextureType from a definition, or written in code.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    What a texture can read while the pack is built.
  • Method Summary

    Modifier and Type
    Method
    Description
    frames(int size, @NotNull FluidTexture.Context context)
    The texture's animation frames: square images of size px (16 for still, 32 for flowing), as many as the animation has.
  • Method Details

    • frames

      @NotNull @NotNull List<BufferedImage> frames(int size, @NotNull @NotNull FluidTexture.Context context) throws IOException
      The texture's animation frames: square images of size px (16 for still, 32 for flowing), as many as the animation has. The pack builder fits them to the water animation.
      Throws:
      IOException