Class FluidStackHooksImpl
java.lang.Object
me.shedaniel.architectury.hooks.forge.FluidStackHooksImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic me.shedaniel.architectury.utils.Fraction
static int
getColor
(@NotNull me.shedaniel.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 me.shedaniel.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
(me.shedaniel.architectury.fluid.FluidStack stack) static @Nullable net.minecraft.client.renderer.texture.TextureAtlasSprite
getStillTexture
(@NotNull me.shedaniel.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
(me.shedaniel.architectury.fluid.FluidStack stack) static me.shedaniel.architectury.fluid.FluidStack
read
(net.minecraft.nbt.CompoundTag tag) static me.shedaniel.architectury.fluid.FluidStack
read
(net.minecraft.network.FriendlyByteBuf buf) static net.minecraft.nbt.CompoundTag
write
(me.shedaniel.architectury.fluid.FluidStack stack, net.minecraft.nbt.CompoundTag tag) static void
write
(me.shedaniel.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(me.shedaniel.architectury.fluid.FluidStack stack) -
getTranslationKey
-
read
public static me.shedaniel.architectury.fluid.FluidStack read(net.minecraft.network.FriendlyByteBuf buf) -
write
public static void write(me.shedaniel.architectury.fluid.FluidStack stack, net.minecraft.network.FriendlyByteBuf buf) -
read
public static me.shedaniel.architectury.fluid.FluidStack read(net.minecraft.nbt.CompoundTag tag) -
write
public static net.minecraft.nbt.CompoundTag write(me.shedaniel.architectury.fluid.FluidStack stack, net.minecraft.nbt.CompoundTag tag) -
bucketAmount
public static me.shedaniel.architectury.utils.Fraction 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 me.shedaniel.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 me.shedaniel.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 me.shedaniel.architectury.fluid.FluidStack stack) -
getColor
public static int getColor(@NotNull @NotNull net.minecraft.world.level.material.Fluid fluid)
-