public static class FluidAttributes.Builder
extends java.lang.Object
Modifier and Type | Field and 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 |
Modifier | Constructor and Description |
---|---|
protected |
Builder(ResourceLocation stillTexture,
ResourceLocation flowingTexture,
java.util.function.BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes> factory) |
Modifier and Type | Method and 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) |
private final ResourceLocation stillTexture
private final ResourceLocation flowingTexture
private ResourceLocation overlayTexture
private int color
private java.lang.String translationKey
private SoundEvent fillSound
private SoundEvent emptySound
private int luminosity
private int density
private int temperature
private int viscosity
private boolean isGaseous
private Rarity rarity
private java.util.function.BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes> factory
protected Builder(ResourceLocation stillTexture, ResourceLocation flowingTexture, java.util.function.BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes> factory)
public final FluidAttributes.Builder translationKey(java.lang.String translationKey)
public final FluidAttributes.Builder color(int color)
public final FluidAttributes.Builder overlay(ResourceLocation texture)
public final FluidAttributes.Builder luminosity(int luminosity)
public final FluidAttributes.Builder density(int density)
public final FluidAttributes.Builder temperature(int temperature)
public final FluidAttributes.Builder viscosity(int viscosity)
public final FluidAttributes.Builder gaseous()
public final FluidAttributes.Builder rarity(Rarity rarity)
public final FluidAttributes.Builder sound(SoundEvent sound)
public final FluidAttributes.Builder sound(SoundEvent fillSound, SoundEvent emptySound)
public FluidAttributes build(Fluid fluid)