Package net.minecraftforge.fluids
Class FluidAttributes.Builder
java.lang.Object
net.minecraftforge.fluids.FluidAttributes.Builder
- Enclosing class:
- FluidAttributes
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private SoundEvent
private BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes>
private SoundEvent
private ResourceLocation
private boolean
private int
private ResourceLocation
private Rarity
private ResourceLocation
private int
private String
private int
-
Constructor Summary
ModifierConstructorDescriptionprotected
Builder(ResourceLocation stillTexture, ResourceLocation flowingTexture, BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes> factory)
-
Method Summary
Modifier and TypeMethodDescriptioncolor(int color)
density(int density)
gaseous()
luminosity(int luminosity)
overlay(ResourceLocation texture)
sound(SoundEvent sound)
sound(SoundEvent fillSound, SoundEvent emptySound)
temperature(int temperature)
translationKey(String translationKey)
viscosity(int viscosity)
-
Field Details
-
stillTexture
-
flowingTexture
-
overlayTexture
-
color
private int color -
translationKey
-
fillSound
-
emptySound
-
luminosity
private int luminosity -
density
private int density -
temperature
private int temperature -
viscosity
private int viscosity -
isGaseous
private boolean isGaseous -
rarity
-
factory
-
-
Constructor Details
-
Builder
protected Builder(ResourceLocation stillTexture, ResourceLocation flowingTexture, BiFunction<FluidAttributes.Builder,Fluid,FluidAttributes> factory)
-
-
Method Details
-
translationKey
-
color
-
overlay
-
luminosity
-
density
-
temperature
-
viscosity
-
gaseous
-
rarity
-
sound
-
sound
-
build
-