Package net.minecraftforge.fluids
Class FluidAttributes.Builder
- java.lang.Object
-
- net.minecraftforge.fluids.FluidAttributes.Builder
-
- Enclosing class:
- FluidAttributes
public static class FluidAttributes.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
color
private int
density
private SoundEvent
emptySound
private java.util.function.BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes>
factory
private SoundEvent
fillSound
private ResourceLocation
flowingTexture
private boolean
isGaseous
private int
luminosity
private ResourceLocation
overlayTexture
private Rarity
rarity
private ResourceLocation
stillTexture
private int
temperature
private java.lang.String
translationKey
private int
viscosity
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(ResourceLocation stillTexture, ResourceLocation flowingTexture, java.util.function.BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FluidAttributes
build(Fluid fluid)
FluidAttributes.Builder
color(int color)
FluidAttributes.Builder
density(int density)
FluidAttributes.Builder
gaseous()
FluidAttributes.Builder
luminosity(int luminosity)
FluidAttributes.Builder
overlay(ResourceLocation texture)
FluidAttributes.Builder
rarity(Rarity rarity)
FluidAttributes.Builder
sound(SoundEvent sound)
FluidAttributes.Builder
sound(SoundEvent fillSound, SoundEvent emptySound)
FluidAttributes.Builder
temperature(int temperature)
FluidAttributes.Builder
translationKey(java.lang.String translationKey)
FluidAttributes.Builder
viscosity(int viscosity)
-
-
-
Field Detail
-
stillTexture
private final ResourceLocation stillTexture
-
flowingTexture
private final ResourceLocation flowingTexture
-
overlayTexture
private ResourceLocation overlayTexture
-
color
private int color
-
translationKey
private java.lang.String translationKey
-
fillSound
private SoundEvent fillSound
-
emptySound
private SoundEvent emptySound
-
luminosity
private int luminosity
-
density
private int density
-
temperature
private int temperature
-
viscosity
private int viscosity
-
isGaseous
private boolean isGaseous
-
rarity
private Rarity rarity
-
factory
private java.util.function.BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes> factory
-
-
Constructor Detail
-
Builder
protected Builder(ResourceLocation stillTexture, ResourceLocation flowingTexture, java.util.function.BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes> factory)
-
-
Method Detail
-
translationKey
public final FluidAttributes.Builder translationKey(java.lang.String translationKey)
-
color
public final FluidAttributes.Builder color(int color)
-
overlay
public final FluidAttributes.Builder overlay(ResourceLocation texture)
-
luminosity
public final FluidAttributes.Builder luminosity(int luminosity)
-
density
public final FluidAttributes.Builder density(int density)
-
temperature
public final FluidAttributes.Builder temperature(int temperature)
-
viscosity
public final FluidAttributes.Builder viscosity(int viscosity)
-
gaseous
public final FluidAttributes.Builder gaseous()
-
rarity
public final FluidAttributes.Builder rarity(Rarity rarity)
-
sound
public final FluidAttributes.Builder sound(SoundEvent sound)
-
sound
public final FluidAttributes.Builder sound(SoundEvent fillSound, SoundEvent emptySound)
-
build
public FluidAttributes build(Fluid fluid)
-
-