Class FluidStackHooksImpl

java.lang.Object
dev.architectury.hooks.fluid.forge.FluidStackHooksImpl

public class FluidStackHooksImpl extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
     
    static int
    getColor(@NotNull dev.architectury.fluid.FluidStack stack)
     
    static int
    getColor(@NotNull net.minecraft.world.level.material.Fluid fluid)
     
    static int
    getColor(@Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.material.FluidState state)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getFlowingTexture(@NotNull dev.architectury.fluid.FluidStack stack)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getFlowingTexture(@NotNull net.minecraft.world.level.material.Fluid fluid)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getFlowingTexture(@Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.material.FluidState state)
     
    static net.minecraft.network.chat.Component
    getName(dev.architectury.fluid.FluidStack stack)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getStillTexture(@NotNull dev.architectury.fluid.FluidStack stack)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getStillTexture(@NotNull net.minecraft.world.level.material.Fluid fluid)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getStillTexture(@Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.material.FluidState state)
     
    static String
    getTranslationKey(dev.architectury.fluid.FluidStack stack)
     
    static dev.architectury.fluid.FluidStack
    read(net.minecraft.nbt.CompoundTag tag)
     
    static dev.architectury.fluid.FluidStack
    read(net.minecraft.network.FriendlyByteBuf buf)
     
    static net.minecraft.nbt.CompoundTag
    write(dev.architectury.fluid.FluidStack stack, net.minecraft.nbt.CompoundTag tag)
     
    static void
    write(dev.architectury.fluid.FluidStack stack, net.minecraft.network.FriendlyByteBuf buf)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FluidStackHooksImpl

      public FluidStackHooksImpl()
  • Method Details

    • getName

      public static net.minecraft.network.chat.Component getName(dev.architectury.fluid.FluidStack stack)
    • getTranslationKey

      public static String getTranslationKey(dev.architectury.fluid.FluidStack stack)
    • read

      public static dev.architectury.fluid.FluidStack read(net.minecraft.network.FriendlyByteBuf buf)
    • write

      public static void write(dev.architectury.fluid.FluidStack stack, net.minecraft.network.FriendlyByteBuf buf)
    • read

      public static dev.architectury.fluid.FluidStack read(net.minecraft.nbt.CompoundTag tag)
    • write

      public static net.minecraft.nbt.CompoundTag write(dev.architectury.fluid.FluidStack stack, net.minecraft.nbt.CompoundTag tag)
    • bucketAmount

      public static long bucketAmount()
    • getStillTexture

      @Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getStillTexture(@Nullable @Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable @Nullable net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.material.FluidState state)
    • getStillTexture

      @Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getStillTexture(@NotNull @NotNull dev.architectury.fluid.FluidStack stack)
    • getStillTexture

      @Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getStillTexture(@NotNull @NotNull net.minecraft.world.level.material.Fluid fluid)
    • getFlowingTexture

      @Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getFlowingTexture(@Nullable @Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable @Nullable net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.material.FluidState state)
    • getFlowingTexture

      @Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getFlowingTexture(@NotNull @NotNull dev.architectury.fluid.FluidStack stack)
    • getFlowingTexture

      @Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getFlowingTexture(@NotNull @NotNull net.minecraft.world.level.material.Fluid fluid)
    • getColor

      public static int getColor(@Nullable @Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable @Nullable net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.material.FluidState state)
    • getColor

      public static int getColor(@NotNull @NotNull dev.architectury.fluid.FluidStack stack)
    • getColor

      public static int getColor(@NotNull @NotNull net.minecraft.world.level.material.Fluid fluid)