Class NormalFluidKey

java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.NormalFluidKey

@Deprecated(since="0.6.0", forRemoval=true) public class NormalFluidKey extends FluidKey
Deprecated, for removal: This API element is subject to removal in a future version.
Because any FluidKey can map to a single Fluid, and SimpleFluidKey has a much better name than this.
Identical to NormalFluidVolume, but without an amount and with extra data hidden from public view. As such this is safe to use in normal maps and sets.
  • Field Details

    • fluid

      @Nonnull public final net.minecraft.fluid.Fluid fluid
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

  • Method Details

    • builder

      @Deprecated(since="0.6.0", forRemoval=true) public static NormalFluidKey.NormalFluidKeyBuilder builder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.text.Text name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      As the flowing sprite ID is needed as well.
    • builder

      public static NormalFluidKey.NormalFluidKeyBuilder builder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.util.Identifier flowingSpriteId, net.minecraft.text.Text name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRawFluid

      public net.minecraft.fluid.Fluid getRawFluid()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getRawFluid in class FluidKey
    • withAmount

      @Deprecated(since="0.6.0", forRemoval=true) public NormalFluidVolume withAmount(int amount)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      withAmount in class FluidKey
    • withAmount

      public NormalFluidVolume withAmount(FluidAmount amount)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      withAmount in class FluidKey
    • readVolume

      public NormalFluidVolume readVolume(net.minecraft.nbt.NbtCompound tag)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      readVolume in class FluidKey
    • readVolume

      public NormalFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      readVolume in class FluidKey
      Throws:
      com.google.gson.JsonSyntaxException