Class FluidStackHooksImpl
java.lang.Object
dev.architectury.hooks.fluid.forge.FluidStackHooksImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longstatic intgetColor(@Nullable net.minecraft.world.level.BlockAndTintGetter level, @Nullable net.minecraft.core.BlockPos pos, net.minecraft.world.level.material.FluidState state) static intgetColor(dev.architectury.fluid.FluidStack stack) static intgetColor(net.minecraft.world.level.material.Fluid fluid) static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSpritegetFlowingTexture(@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.TextureAtlasSpritegetFlowingTexture(dev.architectury.fluid.FluidStack stack) static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSpritegetFlowingTexture(net.minecraft.world.level.material.Fluid fluid) static intgetLuminosity(dev.architectury.fluid.FluidStack fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos) static intgetLuminosity(net.minecraft.world.level.material.Fluid fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos) Deprecated, for removal: This API element is subject to removal in a future version.static net.minecraft.network.chat.ComponentgetName(dev.architectury.fluid.FluidStack stack) static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSpritegetStillTexture(@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.TextureAtlasSpritegetStillTexture(dev.architectury.fluid.FluidStack stack) static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSpritegetStillTexture(net.minecraft.world.level.material.Fluid fluid) static intgetTemperature(dev.architectury.fluid.FluidStack fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos) static intgetTemperature(net.minecraft.world.level.material.Fluid fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos) static StringgetTranslationKey(dev.architectury.fluid.FluidStack stack) static intgetViscosity(dev.architectury.fluid.FluidStack fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos) static intgetViscosity(net.minecraft.world.level.material.Fluid fluid, @Nullable net.minecraft.world.level.Level level, @Nullable net.minecraft.core.BlockPos pos) static dev.architectury.fluid.FluidStackread(net.minecraft.nbt.CompoundTag tag) static dev.architectury.fluid.FluidStackread(net.minecraft.network.FriendlyByteBuf buf) static net.minecraft.nbt.CompoundTagwrite(dev.architectury.fluid.FluidStack stack, net.minecraft.nbt.CompoundTag tag) static voidwrite(dev.architectury.fluid.FluidStack stack, net.minecraft.network.FriendlyByteBuf buf)
-
Constructor Details
-
FluidStackHooksImpl
public FluidStackHooksImpl()
-
-
Method Details
-
getName
public static net.minecraft.network.chat.Component getName(dev.architectury.fluid.FluidStack stack) -
getTranslationKey
-
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, net.minecraft.world.level.material.FluidState state) -
getStillTexture
@Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getStillTexture(dev.architectury.fluid.FluidStack stack) -
getStillTexture
@Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getStillTexture(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, net.minecraft.world.level.material.FluidState state) -
getFlowingTexture
@Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getFlowingTexture(dev.architectury.fluid.FluidStack stack) -
getFlowingTexture
@Nullable public static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite getFlowingTexture(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, net.minecraft.world.level.material.FluidState state) -
getColor
public static int getColor(dev.architectury.fluid.FluidStack stack) -
getColor
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
@Deprecated(forRemoval=true) 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) Deprecated, for removal: This API element is subject to removal in a future version. -
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)
-