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 SoundEvent
private final ResourceLocation
private boolean
private int
private ResourceLocation
private Rarity
private final 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 TypeMethodDescriptionfinal FluidAttributes.Builder
color
(int color) final FluidAttributes.Builder
density
(int density) final FluidAttributes.Builder
gaseous()
final FluidAttributes.Builder
luminosity
(int luminosity) final FluidAttributes.Builder
overlay
(ResourceLocation texture) final FluidAttributes.Builder
final FluidAttributes.Builder
sound
(SoundEvent sound) final FluidAttributes.Builder
sound
(SoundEvent fillSound, SoundEvent emptySound) final FluidAttributes.Builder
temperature
(int temperature) final FluidAttributes.Builder
translationKey
(String translationKey) final FluidAttributes.Builder
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
-