Package dev.latvian.mods.kubejs.fluid
Class FluidTypeBuilder
java.lang.Object
dev.latvian.mods.kubejs.registry.BuilderBase<net.neoforged.neoforge.fluids.FluidType>
dev.latvian.mods.kubejs.fluid.FluidTypeBuilder
- All Implemented Interfaces:
Supplier<net.neoforged.neoforge.fluids.FluidType>
@ReturnsSelf
public class FluidTypeBuilder
extends BuilderBase<net.neoforged.neoforge.fluids.FluidType>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationnet.neoforged.neoforge.fluids.FluidType.Propertiesnet.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationFields inherited from class dev.latvian.mods.kubejs.registry.BuilderBase
defaultTags, displayName, dummyBuilder, formattedDisplayName, id, object, registryKey, sourceLine, translationKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDripstoneDripping(float chance, net.minecraft.core.particles.ParticleOptions dripParticle, net.minecraft.world.level.block.Block cauldron, @Nullable net.minecraft.sounds.SoundEvent fillSound) adjacentPathType(@Nullable net.minecraft.world.level.pathfinder.PathType adjacentPathType) blockOverlayTexture(net.minecraft.resources.ResourceLocation blockOverlayTexture) canConvertToSource(boolean canConvertToSource) canDrown(boolean canDrown) canExtinguish(boolean canExtinguish) canHydrate(boolean canHydrate) canPushEntity(boolean canPushEntity) canSwim(boolean canSwim) net.neoforged.neoforge.fluids.FluidTypedensity(int density) descriptionId(String descriptionId) fallDistanceModifier(float fallDistanceModifier) flowingTexture(net.minecraft.resources.ResourceLocation flowingTexture) lightLevel(int lightLevel) motionScale(double motionScale) pathType(@Nullable net.minecraft.world.level.pathfinder.PathType pathType) rarity(net.minecraft.world.item.Rarity rarity) renderType(BlockRenderType renderType) screenOverlayTexture(net.minecraft.resources.ResourceLocation screenOverlayTexture) sound(net.neoforged.neoforge.common.SoundAction action, net.minecraft.sounds.SoundEvent sound) stillTexture(net.minecraft.resources.ResourceLocation stillTexture) supportsBoating(boolean supportsBoating) temperature(int temperature) viscosity(int viscosity) Methods inherited from class dev.latvian.mods.kubejs.registry.BuilderBase
createAdditionalObjects, createTransformedObject, displayName, formattedDisplayName, formattedDisplayName, generateAssets, generateData, generateLang, get, getBuilderTranslationKey, getTranslationKeyGroup, newID, tag, toString, transformObject, translationKey
-
Field Details
-
properties
public transient net.neoforged.neoforge.fluids.FluidType.Properties properties -
stillTexture
public transient net.minecraft.resources.ResourceLocation stillTexture -
flowingTexture
public transient net.minecraft.resources.ResourceLocation flowingTexture -
actualStillTexture
public transient net.minecraft.resources.ResourceLocation actualStillTexture -
actualFlowingTexture
public transient net.minecraft.resources.ResourceLocation actualFlowingTexture -
screenOverlayTexture
public transient net.minecraft.resources.ResourceLocation screenOverlayTexture -
blockOverlayTexture
public transient net.minecraft.resources.ResourceLocation blockOverlayTexture -
tint
-
renderType
-
-
Constructor Details
-
FluidTypeBuilder
public FluidTypeBuilder(net.minecraft.resources.ResourceLocation id)
-
-
Method Details
-
createObject
public net.neoforged.neoforge.fluids.FluidType createObject()- Specified by:
createObjectin classBuilderBase<net.neoforged.neoforge.fluids.FluidType>
-
stillTexture
-
flowingTexture
-
screenOverlayTexture
public FluidTypeBuilder screenOverlayTexture(net.minecraft.resources.ResourceLocation screenOverlayTexture) -
blockOverlayTexture
public FluidTypeBuilder blockOverlayTexture(net.minecraft.resources.ResourceLocation blockOverlayTexture) -
tint
-
descriptionId
-
motionScale
-
canPushEntity
-
canSwim
-
canDrown
-
fallDistanceModifier
-
canExtinguish
-
canConvertToSource
-
supportsBoating
-
pathType
public FluidTypeBuilder pathType(@Nullable @Nullable net.minecraft.world.level.pathfinder.PathType pathType) -
adjacentPathType
public FluidTypeBuilder adjacentPathType(@Nullable @Nullable net.minecraft.world.level.pathfinder.PathType adjacentPathType) -
sound
public FluidTypeBuilder sound(net.neoforged.neoforge.common.SoundAction action, net.minecraft.sounds.SoundEvent sound) -
canHydrate
-
lightLevel
-
density
-
temperature
-
viscosity
-
rarity
-
addDripstoneDripping
public FluidTypeBuilder addDripstoneDripping(float chance, net.minecraft.core.particles.ParticleOptions dripParticle, net.minecraft.world.level.block.Block cauldron, @Nullable @Nullable net.minecraft.sounds.SoundEvent fillSound) -
renderType
-