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 TypeMethodDescriptionbooleanflowing()Whether this is the flowing texture (else the still one).@NotNull List<BufferedImage> pack(@NotNull net.kyori.adventure.key.Key texture, int size) A texture from the CraftEngine resource packs, e.g.@NotNull List<BufferedImage> 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_stillorblock/lava_flow, scaled tosize.- 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_stillforassets/mymod/textures/block/oil_still.png, cut into frames and scaled tosize.- Throws:
IOException
-