Class FluidStackHooksImpl

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

public class FluidStackHooksImpl extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
     
    static int
    getColor(@Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState state)
     
    static int
    getColor(dev.architectury.fluid.FluidStack stack)
     
    static int
    getColor(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, net.minecraft.world.level.material.FluidState state)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getFlowingTexture(dev.architectury.fluid.FluidStack stack)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getFlowingTexture(net.minecraft.world.level.material.Fluid fluid)
     
    static int
    getLuminosity(dev.architectury.fluid.FluidStack fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos)
     
    static int
    getLuminosity(net.minecraft.world.level.material.Fluid fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos)
     
    static net.minecraft.network.chat.Component
    getName(dev.architectury.fluid.FluidStack stack)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getStillTexture(@Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState state)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getStillTexture(dev.architectury.fluid.FluidStack stack)
     
    static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
    getStillTexture(net.minecraft.world.level.material.Fluid fluid)
     
    static int
    getTemperature(dev.architectury.fluid.FluidStack fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos)
     
    static int
    getTemperature(net.minecraft.world.level.material.Fluid fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos)
     
    static String
    getTranslationKey(dev.architectury.fluid.FluidStack stack)
     
    static int
    getViscosity(dev.architectury.fluid.FluidStack fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos)
     
    static int
    getViscosity(net.minecraft.world.level.material.Fluid fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos)
     
    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

      @Environment(CLIENT) @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, net.minecraft.world.level.material.FluidState state)
    • getStillTexture

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

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

      @Environment(CLIENT) @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, net.minecraft.world.level.material.FluidState state)
    • getFlowingTexture

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

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

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

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

      @Environment(CLIENT) public static int getColor(net.minecraft.world.level.material.Fluid fluid)
    • getLuminosity

      public static int getLuminosity(dev.architectury.fluid.FluidStack fluid, @Nullable @Nullable net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.core.BlockPos pos)
    • getLuminosity

      public static int getLuminosity(net.minecraft.world.level.material.Fluid fluid, @Nullable @Nullable net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.core.BlockPos pos)
    • getTemperature

      public static int getTemperature(dev.architectury.fluid.FluidStack fluid, @Nullable @Nullable net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.core.BlockPos pos)
    • getTemperature

      public static int getTemperature(net.minecraft.world.level.material.Fluid fluid, @Nullable @Nullable net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.core.BlockPos pos)
    • getViscosity

      public static int getViscosity(dev.architectury.fluid.FluidStack fluid, @Nullable @Nullable net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.core.BlockPos pos)
    • getViscosity

      public static int getViscosity(net.minecraft.world.level.material.Fluid fluid, @Nullable @Nullable net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.core.BlockPos pos)