Class BasicFluidType

java.lang.Object
net.neoforged.neoforge.fluids.FluidType
top.girlkisser.lazuli.api.fluid.BasicFluidType

public class BasicFluidType extends net.neoforged.neoforge.fluids.FluidType
A basic FluidType implementation.
Based on Kaupenjoe's BaseFluidType.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.neoforged.neoforge.fluids.FluidType

    net.neoforged.neoforge.fluids.FluidType.DripstoneDripInfo, net.neoforged.neoforge.fluids.FluidType.Properties
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.resources.ResourceLocation
    The texture to use for the fluid's flowing texture.
    final org.joml.Vector3f
    The fluid type's fog colour as a Vector3f.
    final net.minecraft.resources.ResourceLocation
    The texture to use for the fluid's overlay texture.
    final net.minecraft.resources.ResourceLocation
    The texture to use for the fluid's still texture.
    final int
    The fluid type's tint colour as a packed integer.

    Fields inherited from class net.neoforged.neoforge.fluids.FluidType

    BUCKET_VOLUME, SIZE, sounds
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicFluidType(net.minecraft.resources.ResourceLocation stillTexture, net.minecraft.resources.ResourceLocation flowingTexture, net.minecraft.resources.ResourceLocation overlayTexture, int tintColour, org.joml.Vector3f fogColour, net.neoforged.neoforge.fluids.FluidType.Properties properties)
    A basic FluidType implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions
    Get IClientFluidTypeExtensions for the fluid.

    Methods inherited from class net.neoforged.neoforge.fluids.FluidType

    canBePlacedInLevel, canBePlacedInLevel, canConvertToSource, canConvertToSource, canDrownIn, canExtinguish, canExtinguish, canHydrate, canHydrate, canHydrate, canPushEntity, canRideVehicleUnder, canSwim, getAdjacentBlockPathType, getBlockForFluidState, getBlockPathType, getBucket, getDensity, getDensity, getDensity, getDescription, getDescription, getDescriptionId, getDescriptionId, getDripInfo, getFallDistanceModifier, getLightLevel, getLightLevel, getLightLevel, getRarity, getRarity, getSound, getSound, getSound, getSound, getStateForPlacement, getTemperature, getTemperature, getTemperature, getViscosity, getViscosity, getViscosity, handleCauldronDrip, initializeClient, isAir, isLighterThanAir, isVanilla, isVaporizedOnPlacement, motionScale, move, onVaporize, setItemMovement, supportsBoating, supportsBoating, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • stillTexture

      public final net.minecraft.resources.ResourceLocation stillTexture
      The texture to use for the fluid's still texture.
    • flowingTexture

      public final net.minecraft.resources.ResourceLocation flowingTexture
      The texture to use for the fluid's flowing texture.
    • overlayTexture

      public final net.minecraft.resources.ResourceLocation overlayTexture
      The texture to use for the fluid's overlay texture.
    • tintColour

      public final int tintColour
      The fluid type's tint colour as a packed integer.
      TODO: Convert this to an UnpackedColour
    • fogColour

      public final org.joml.Vector3f fogColour
      The fluid type's fog colour as a Vector3f.
      TODO: Convert this to an UnpackedColour
  • Constructor Details

    • BasicFluidType

      public BasicFluidType(net.minecraft.resources.ResourceLocation stillTexture, net.minecraft.resources.ResourceLocation flowingTexture, net.minecraft.resources.ResourceLocation overlayTexture, int tintColour, org.joml.Vector3f fogColour, net.neoforged.neoforge.fluids.FluidType.Properties properties)
      A basic FluidType implementation.
      Parameters:
      stillTexture - The fluid's still texture.
      flowingTexture - The fluid's flowing texture.
      overlayTexture - The fluid's overlay texture.
      tintColour - The tint to apply to the textures.
      fogColour - The fog colour when swimming in the fluid.
      properties - The fluid's properties.
  • Method Details

    • getClientExtensionsFor

      public static net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensions getClientExtensionsFor(BasicFluidType fluidType)
      Get IClientFluidTypeExtensions for the fluid.
      Parameters:
      fluidType - The fluid type.
      Returns:
      The client extensions.