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.
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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceWhat a texture can read while the pack is built. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<BufferedImage> frames(int size, @NotNull FluidTexture.Context context) The texture's animation frames: square images ofsizepx (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 ofsizepx (16 for still, 32 for flowing), as many as the animation has. The pack builder fits them to the water animation.- Throws:
IOException
-