Class FluidKey.FluidKeyBuilder
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey.FluidKeyBuilder
- Direct Known Subclasses:
- ColouredFluidKey.ColouredFluidKeyBuilder,- NormalFluidKey.NormalFluidKeyBuilder
- Enclosing class:
- FluidKey
- 
Constructor SummaryConstructorsConstructorDescriptionFluidKeyBuilder(FluidRegistryEntry<?> registryEntry, 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.FluidKeyBuilder(FluidRegistryEntry<?> registryEntry, net.minecraft.util.Identifier spriteId, net.minecraft.util.Identifier flowingSpriteId, net.minecraft.text.Text name)FluidKeyBuilder(net.minecraft.fluid.Fluid fluid)FluidKeyBuilder(net.minecraft.util.Identifier id)
- 
Method SummaryModifier and TypeMethodDescriptionAdds the given unit to the set of units used.copyFrom(FluidKey.FluidKeyBuilder from)setCohesion(FluidAmount to)Sets theFluidKey.cohesionproperty to the givenFluidAmount, or null to use the default value.setDensity(FluidAmount to)Sets theFluidKey.densityproperty to the givenFluidAmount, or null to use the default value.setGas()Sets theFluidKey.gaseousproperty to true.setIdEntry(net.minecraft.util.Identifier id)Sets theFluidKey.gaseousproperty to false.setLuminosity(int luminance)Sets theFluidKey.luminosityproperty.setName(net.minecraft.text.Text name)Sets theFluidKey.netherCohesionproperty to the givenFluidAmount, or null to use the default value.Sets theFluidKey.netherViscosityproperty to the givenFluidAmount, or null to use the default value.setRawFluid(net.minecraft.fluid.Fluid rawFluid)setRegistryEntry(FluidRegistryEntry<?> registryEntry)setRenderColor(int renderColor)setSprites(net.minecraft.util.Identifier stillSprite, net.minecraft.util.Identifier flowingSprite)setTemperature(FluidTemperature.ContinuousFluidTemperature temperature)Sets theFluidKey.thermalCapacityproperty to the givenFluidAmount, or null to allowFluidPropertys to provide the fluid for this fluid.setTemperature(FluidTemperature.DiscreteFluidTemperature temperature)Sets theFluidKey.thermalCapacityproperty to the givenFluidAmount, or null to allowFluidPropertys to provide the fluid for this fluid.Sets theFluidKey.thermalCapacityproperty to the givenFluidAmount, or null to use the default value.setViscosity(FluidAmount to)Sets theFluidKey.viscosityproperty to the givenFluidAmount, or null to use the default value.
- 
Constructor Details- 
FluidKeyBuilder@Deprecated(since="0.5.0", forRemoval=true) public FluidKeyBuilder(FluidRegistryEntry<?> registryEntry, 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.
- 
FluidKeyBuilderpublic FluidKeyBuilder(FluidRegistryEntry<?> registryEntry, net.minecraft.util.Identifier spriteId, net.minecraft.util.Identifier flowingSpriteId, net.minecraft.text.Text name)
- 
FluidKeyBuilderpublic FluidKeyBuilder()
- 
FluidKeyBuilderpublic FluidKeyBuilder(net.minecraft.util.Identifier id)
- 
FluidKeyBuilderpublic FluidKeyBuilder(net.minecraft.fluid.Fluid fluid)
 
- 
- 
Method Details- 
copyFrom
- 
setRegistryEntry
- 
setIdEntry- Parameters:
- id- The floating identifier to use to identify this fluid - this will not be backed by a normal- DefaultedRegistry, instead these instances will only be backed by a floating- Identifier.
 
- 
setName
- 
setSpritespublic FluidKey.FluidKeyBuilder setSprites(net.minecraft.util.Identifier stillSprite, net.minecraft.util.Identifier flowingSprite)
- 
setRenderColor
- 
setLuminositySets theFluidKey.luminosityproperty.- Parameters:
- luminance- A value between 0 and 15.
 
- 
setUnit
- 
addUnitAdds the given unit to the set of units used.
- 
setRawFluid
- 
setGasSets theFluidKey.gaseousproperty to true.- Returns:
- this.
 
- 
setLiquidSets theFluidKey.gaseousproperty to false.- Returns:
- this.
 
- 
setViscositySets theFluidKey.viscosityproperty to the givenFluidAmount, or null to use the default value.- Returns:
- this.
 
- 
setNetherViscositySets theFluidKey.netherViscosityproperty to the givenFluidAmount, or null to use the default value.- Returns:
- this.
 
- 
setCohesionSets theFluidKey.cohesionproperty to the givenFluidAmount, or null to use the default value.- Returns:
- this.
 
- 
setNetherCohesionSets theFluidKey.netherCohesionproperty to the givenFluidAmount, or null to use the default value.- Returns:
- this.
 
- 
setDensitySets theFluidKey.densityproperty to the givenFluidAmount, or null to use the default value.- Returns:
- this.
 
- 
setThermalCapacitySets theFluidKey.thermalCapacityproperty to the givenFluidAmount, or null to use the default value. (If this is null then it will default to the same value assetDensity(FluidAmount)).- Returns:
- this.
 
- 
setTemperaturepublic FluidKey.FluidKeyBuilder setTemperature(FluidTemperature.DiscreteFluidTemperature temperature)Sets theFluidKey.thermalCapacityproperty to the givenFluidAmount, or null to allowFluidPropertys to provide the fluid for this fluid.- Returns:
- this.
 
- 
setTemperaturepublic FluidKey.FluidKeyBuilder setTemperature(FluidTemperature.ContinuousFluidTemperature temperature)Sets theFluidKey.thermalCapacityproperty to the givenFluidAmount, or null to allowFluidPropertys to provide the fluid for this fluid.- Returns:
- this.
 
 
-