Package top.girlkisser.lazuli.api.fluid
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
-
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
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.resources.ResourceLocationThe texture to use for the fluid's flowing texture.final org.joml.Vector3fThe fluid type's fog colour as aVector3f.final net.minecraft.resources.ResourceLocationThe texture to use for the fluid's overlay texture.final net.minecraft.resources.ResourceLocationThe texture to use for the fluid's still texture.final intThe fluid type's tint colour as a packed integer.Fields inherited from class net.neoforged.neoforge.fluids.FluidType
BUCKET_VOLUME, SIZE, sounds -
Constructor Summary
ConstructorsConstructorDescriptionBasicFluidType(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 basicFluidTypeimplementation. -
Method Summary
Modifier and TypeMethodDescriptionstatic net.neoforged.neoforge.client.extensions.common.IClientFluidTypeExtensionsgetClientExtensionsFor(BasicFluidType fluidType) GetIClientFluidTypeExtensionsfor 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
-
Field Details
-
stillTexture
public final net.minecraft.resources.ResourceLocation stillTextureThe texture to use for the fluid's still texture. -
flowingTexture
public final net.minecraft.resources.ResourceLocation flowingTextureThe texture to use for the fluid's flowing texture. -
overlayTexture
public final net.minecraft.resources.ResourceLocation overlayTextureThe texture to use for the fluid's overlay texture. -
tintColour
public final int tintColourThe fluid type's tint colour as a packed integer.
TODO: Convert this to an UnpackedColour -
fogColour
public final org.joml.Vector3f fogColourThe fluid type's fog colour as aVector3f.
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 basicFluidTypeimplementation.- 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) GetIClientFluidTypeExtensionsfor the fluid.- Parameters:
fluidType- The fluid type.- Returns:
- The client extensions.
-