Record Class FluidProperties
java.lang.Object
java.lang.Record
earth.terrarium.botarium.common.registry.fluid.FluidProperties
- All Implemented Interfaces:
FluidInformation
public record FluidProperties(net.minecraft.resources.ResourceLocation id, double motionScale, boolean canPushEntity, boolean canSwim, boolean canDrown, float fallDistanceModifier, boolean canExtinguish, boolean canConvertToSource, boolean supportsBloating, net.minecraft.world.level.pathfinder.BlockPathTypes pathType, net.minecraft.world.level.pathfinder.BlockPathTypes adjacentPathType, boolean canHydrate, int lightLevel, int density, int temperature, int viscosity, net.minecraft.world.item.Rarity rarity, FluidSounds sounds, net.minecraft.resources.ResourceLocation still, net.minecraft.resources.ResourceLocation flowing, net.minecraft.resources.ResourceLocation overlay, net.minecraft.resources.ResourceLocation screenOverlay, int tintColor, int tickDelay, int slopeFindDistance, int dropOff, float explosionResistance, boolean canPlace)
extends Record
implements FluidInformation
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFluidProperties(net.minecraft.resources.ResourceLocation id, double motionScale, boolean canPushEntity, boolean canSwim, boolean canDrown, float fallDistanceModifier, boolean canExtinguish, boolean canConvertToSource, boolean supportsBloating, net.minecraft.world.level.pathfinder.BlockPathTypes pathType, net.minecraft.world.level.pathfinder.BlockPathTypes adjacentPathType, boolean canHydrate, int lightLevel, int density, int temperature, int viscosity, net.minecraft.world.item.Rarity rarity, FluidSounds sounds, net.minecraft.resources.ResourceLocation still, net.minecraft.resources.ResourceLocation flowing, net.minecraft.resources.ResourceLocation overlay, net.minecraft.resources.ResourceLocation screenOverlay, int tintColor, int tickDelay, int slopeFindDistance, int dropOff, float explosionResistance, boolean canPlace) Creates an instance of aFluidPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.pathfinder.BlockPathTypesReturns the value of theadjacentPathTyperecord component.booleanReturns the value of thecanConvertToSourcerecord component.booleancanDrown()Returns the value of thecanDrownrecord component.booleanReturns the value of thecanExtinguishrecord component.booleanReturns the value of thecanHydraterecord component.booleancanPlace()Returns the value of thecanPlacerecord component.booleanReturns the value of thecanPushEntityrecord component.booleancanSwim()Returns the value of thecanSwimrecord component.static FluidProperties.Buildercreate()intdensity()Returns the value of thedensityrecord component.intdropOff()Returns the value of thedropOffrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theexplosionResistancerecord component.floatReturns the value of thefallDistanceModifierrecord component.net.minecraft.resources.ResourceLocationflowing()Returns the value of theflowingrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationid()Returns the value of theidrecord component.intReturns the value of thelightLevelrecord component.doubleReturns the value of themotionScalerecord component.net.minecraft.resources.ResourceLocationoverlay()Returns the value of theoverlayrecord component.net.minecraft.world.level.pathfinder.BlockPathTypespathType()Returns the value of thepathTyperecord component.net.minecraft.world.item.Rarityrarity()Returns the value of therarityrecord component.net.minecraft.resources.ResourceLocationReturns the value of thescreenOverlayrecord component.intReturns the value of theslopeFindDistancerecord component.sounds()Returns the value of thesoundsrecord component.net.minecraft.resources.ResourceLocationstill()Returns the value of thestillrecord component.booleanReturns the value of thesupportsBloatingrecord component.intReturns the value of thetemperaturerecord component.intReturns the value of thetickDelayrecord component.intReturns the value of thetintColorrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theviscosityrecord component.
-
Constructor Details
-
FluidProperties
public FluidProperties(net.minecraft.resources.ResourceLocation id, double motionScale, boolean canPushEntity, boolean canSwim, boolean canDrown, float fallDistanceModifier, boolean canExtinguish, boolean canConvertToSource, boolean supportsBloating, net.minecraft.world.level.pathfinder.BlockPathTypes pathType, net.minecraft.world.level.pathfinder.BlockPathTypes adjacentPathType, boolean canHydrate, int lightLevel, int density, int temperature, int viscosity, net.minecraft.world.item.Rarity rarity, FluidSounds sounds, net.minecraft.resources.ResourceLocation still, net.minecraft.resources.ResourceLocation flowing, net.minecraft.resources.ResourceLocation overlay, net.minecraft.resources.ResourceLocation screenOverlay, int tintColor, int tickDelay, int slopeFindDistance, int dropOff, float explosionResistance, boolean canPlace) Creates an instance of aFluidPropertiesrecord class.- Parameters:
id- the value for theidrecord componentmotionScale- the value for themotionScalerecord componentcanPushEntity- the value for thecanPushEntityrecord componentcanSwim- the value for thecanSwimrecord componentcanDrown- the value for thecanDrownrecord componentfallDistanceModifier- the value for thefallDistanceModifierrecord componentcanExtinguish- the value for thecanExtinguishrecord componentcanConvertToSource- the value for thecanConvertToSourcerecord componentsupportsBloating- the value for thesupportsBloatingrecord componentpathType- the value for thepathTyperecord componentadjacentPathType- the value for theadjacentPathTyperecord componentcanHydrate- the value for thecanHydraterecord componentlightLevel- the value for thelightLevelrecord componentdensity- the value for thedensityrecord componenttemperature- the value for thetemperaturerecord componentviscosity- the value for theviscosityrecord componentrarity- the value for therarityrecord componentsounds- the value for thesoundsrecord componentstill- the value for thestillrecord componentflowing- the value for theflowingrecord componentoverlay- the value for theoverlayrecord componentscreenOverlay- the value for thescreenOverlayrecord componenttintColor- the value for thetintColorrecord componenttickDelay- the value for thetickDelayrecord componentslopeFindDistance- the value for theslopeFindDistancerecord componentdropOff- the value for thedropOffrecord componentexplosionResistance- the value for theexplosionResistancerecord componentcanPlace- the value for thecanPlacerecord component
-
-
Method Details
-
toProperties
- Specified by:
toPropertiesin interfaceFluidInformation
-
create
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public net.minecraft.resources.ResourceLocation id()Returns the value of theidrecord component.- Specified by:
idin interfaceFluidInformation- Returns:
- the value of the
idrecord component
-
motionScale
public double motionScale()Returns the value of themotionScalerecord component.- Specified by:
motionScalein interfaceFluidInformation- Returns:
- the value of the
motionScalerecord component
-
canPushEntity
public boolean canPushEntity()Returns the value of thecanPushEntityrecord component.- Specified by:
canPushEntityin interfaceFluidInformation- Returns:
- the value of the
canPushEntityrecord component
-
canSwim
public boolean canSwim()Returns the value of thecanSwimrecord component.- Specified by:
canSwimin interfaceFluidInformation- Returns:
- the value of the
canSwimrecord component
-
canDrown
public boolean canDrown()Returns the value of thecanDrownrecord component.- Specified by:
canDrownin interfaceFluidInformation- Returns:
- the value of the
canDrownrecord component
-
fallDistanceModifier
public float fallDistanceModifier()Returns the value of thefallDistanceModifierrecord component.- Specified by:
fallDistanceModifierin interfaceFluidInformation- Returns:
- the value of the
fallDistanceModifierrecord component
-
canExtinguish
public boolean canExtinguish()Returns the value of thecanExtinguishrecord component.- Specified by:
canExtinguishin interfaceFluidInformation- Returns:
- the value of the
canExtinguishrecord component
-
canConvertToSource
public boolean canConvertToSource()Returns the value of thecanConvertToSourcerecord component.- Specified by:
canConvertToSourcein interfaceFluidInformation- Returns:
- the value of the
canConvertToSourcerecord component
-
supportsBloating
public boolean supportsBloating()Returns the value of thesupportsBloatingrecord component.- Specified by:
supportsBloatingin interfaceFluidInformation- Returns:
- the value of the
supportsBloatingrecord component
-
pathType
public net.minecraft.world.level.pathfinder.BlockPathTypes pathType()Returns the value of thepathTyperecord component.- Specified by:
pathTypein interfaceFluidInformation- Returns:
- the value of the
pathTyperecord component
-
adjacentPathType
public net.minecraft.world.level.pathfinder.BlockPathTypes adjacentPathType()Returns the value of theadjacentPathTyperecord component.- Specified by:
adjacentPathTypein interfaceFluidInformation- Returns:
- the value of the
adjacentPathTyperecord component
-
canHydrate
public boolean canHydrate()Returns the value of thecanHydraterecord component.- Specified by:
canHydratein interfaceFluidInformation- Returns:
- the value of the
canHydraterecord component
-
lightLevel
public int lightLevel()Returns the value of thelightLevelrecord component.- Specified by:
lightLevelin interfaceFluidInformation- Returns:
- the value of the
lightLevelrecord component
-
density
public int density()Returns the value of thedensityrecord component.- Specified by:
densityin interfaceFluidInformation- Returns:
- the value of the
densityrecord component
-
temperature
public int temperature()Returns the value of thetemperaturerecord component.- Specified by:
temperaturein interfaceFluidInformation- Returns:
- the value of the
temperaturerecord component
-
viscosity
public int viscosity()Returns the value of theviscosityrecord component.- Specified by:
viscosityin interfaceFluidInformation- Returns:
- the value of the
viscosityrecord component
-
rarity
public net.minecraft.world.item.Rarity rarity()Returns the value of therarityrecord component.- Specified by:
rarityin interfaceFluidInformation- Returns:
- the value of the
rarityrecord component
-
sounds
Returns the value of thesoundsrecord component.- Specified by:
soundsin interfaceFluidInformation- Returns:
- the value of the
soundsrecord component
-
still
public net.minecraft.resources.ResourceLocation still()Returns the value of thestillrecord component.- Specified by:
stillin interfaceFluidInformation- Returns:
- the value of the
stillrecord component
-
flowing
public net.minecraft.resources.ResourceLocation flowing()Returns the value of theflowingrecord component.- Specified by:
flowingin interfaceFluidInformation- Returns:
- the value of the
flowingrecord component
-
overlay
public net.minecraft.resources.ResourceLocation overlay()Returns the value of theoverlayrecord component.- Specified by:
overlayin interfaceFluidInformation- Returns:
- the value of the
overlayrecord component
-
screenOverlay
public net.minecraft.resources.ResourceLocation screenOverlay()Returns the value of thescreenOverlayrecord component.- Specified by:
screenOverlayin interfaceFluidInformation- Returns:
- the value of the
screenOverlayrecord component
-
tintColor
public int tintColor()Returns the value of thetintColorrecord component.- Specified by:
tintColorin interfaceFluidInformation- Returns:
- the value of the
tintColorrecord component
-
tickDelay
public int tickDelay()Returns the value of thetickDelayrecord component.- Specified by:
tickDelayin interfaceFluidInformation- Returns:
- the value of the
tickDelayrecord component
-
slopeFindDistance
public int slopeFindDistance()Returns the value of theslopeFindDistancerecord component.- Specified by:
slopeFindDistancein interfaceFluidInformation- Returns:
- the value of the
slopeFindDistancerecord component
-
dropOff
public int dropOff()Returns the value of thedropOffrecord component.- Specified by:
dropOffin interfaceFluidInformation- Returns:
- the value of the
dropOffrecord component
-
explosionResistance
public float explosionResistance()Returns the value of theexplosionResistancerecord component.- Specified by:
explosionResistancein interfaceFluidInformation- Returns:
- the value of the
explosionResistancerecord component
-
canPlace
public boolean canPlace()Returns the value of thecanPlacerecord component.- Specified by:
canPlacein interfaceFluidInformation- Returns:
- the value of the
canPlacerecord component
-