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
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a FluidProperties record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.pathfinder.BlockPathTypes
    Returns the value of the adjacentPathType record component.
    boolean
    Returns the value of the canConvertToSource record component.
    boolean
    Returns the value of the canDrown record component.
    boolean
    Returns the value of the canExtinguish record component.
    boolean
    Returns the value of the canHydrate record component.
    boolean
    Returns the value of the canPlace record component.
    boolean
    Returns the value of the canPushEntity record component.
    boolean
    Returns the value of the canSwim record component.
     
    int
    Returns the value of the density record component.
    int
    Returns the value of the dropOff record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the explosionResistance record component.
    float
    Returns the value of the fallDistanceModifier record component.
    net.minecraft.resources.ResourceLocation
    Returns the value of the flowing record component.
    final int
    Returns a hash code value for this object.
    net.minecraft.resources.ResourceLocation
    id()
    Returns the value of the id record component.
    int
    Returns the value of the lightLevel record component.
    double
    Returns the value of the motionScale record component.
    net.minecraft.resources.ResourceLocation
    Returns the value of the overlay record component.
    net.minecraft.world.level.pathfinder.BlockPathTypes
    Returns the value of the pathType record component.
    net.minecraft.world.item.Rarity
    Returns the value of the rarity record component.
    net.minecraft.resources.ResourceLocation
    Returns the value of the screenOverlay record component.
    int
    Returns the value of the slopeFindDistance record component.
    Returns the value of the sounds record component.
    net.minecraft.resources.ResourceLocation
    Returns the value of the still record component.
    boolean
    Returns the value of the supportsBloating record component.
    int
    Returns the value of the temperature record component.
    int
    Returns the value of the tickDelay record component.
    int
    Returns the value of the tintColor record component.
     
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the viscosity record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a FluidProperties record class.
      Parameters:
      id - the value for the id record component
      motionScale - the value for the motionScale record component
      canPushEntity - the value for the canPushEntity record component
      canSwim - the value for the canSwim record component
      canDrown - the value for the canDrown record component
      fallDistanceModifier - the value for the fallDistanceModifier record component
      canExtinguish - the value for the canExtinguish record component
      canConvertToSource - the value for the canConvertToSource record component
      supportsBloating - the value for the supportsBloating record component
      pathType - the value for the pathType record component
      adjacentPathType - the value for the adjacentPathType record component
      canHydrate - the value for the canHydrate record component
      lightLevel - the value for the lightLevel record component
      density - the value for the density record component
      temperature - the value for the temperature record component
      viscosity - the value for the viscosity record component
      rarity - the value for the rarity record component
      sounds - the value for the sounds record component
      still - the value for the still record component
      flowing - the value for the flowing record component
      overlay - the value for the overlay record component
      screenOverlay - the value for the screenOverlay record component
      tintColor - the value for the tintColor record component
      tickDelay - the value for the tickDelay record component
      slopeFindDistance - the value for the slopeFindDistance record component
      dropOff - the value for the dropOff record component
      explosionResistance - the value for the explosionResistance record component
      canPlace - the value for the canPlace record component
  • Method Details

    • toProperties

      public FluidProperties toProperties()
      Specified by:
      toProperties in interface FluidInformation
    • create

      public static FluidProperties.Builder create()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public net.minecraft.resources.ResourceLocation id()
      Returns the value of the id record component.
      Specified by:
      id in interface FluidInformation
      Returns:
      the value of the id record component
    • motionScale

      public double motionScale()
      Returns the value of the motionScale record component.
      Specified by:
      motionScale in interface FluidInformation
      Returns:
      the value of the motionScale record component
    • canPushEntity

      public boolean canPushEntity()
      Returns the value of the canPushEntity record component.
      Specified by:
      canPushEntity in interface FluidInformation
      Returns:
      the value of the canPushEntity record component
    • canSwim

      public boolean canSwim()
      Returns the value of the canSwim record component.
      Specified by:
      canSwim in interface FluidInformation
      Returns:
      the value of the canSwim record component
    • canDrown

      public boolean canDrown()
      Returns the value of the canDrown record component.
      Specified by:
      canDrown in interface FluidInformation
      Returns:
      the value of the canDrown record component
    • fallDistanceModifier

      public float fallDistanceModifier()
      Returns the value of the fallDistanceModifier record component.
      Specified by:
      fallDistanceModifier in interface FluidInformation
      Returns:
      the value of the fallDistanceModifier record component
    • canExtinguish

      public boolean canExtinguish()
      Returns the value of the canExtinguish record component.
      Specified by:
      canExtinguish in interface FluidInformation
      Returns:
      the value of the canExtinguish record component
    • canConvertToSource

      public boolean canConvertToSource()
      Returns the value of the canConvertToSource record component.
      Specified by:
      canConvertToSource in interface FluidInformation
      Returns:
      the value of the canConvertToSource record component
    • supportsBloating

      public boolean supportsBloating()
      Returns the value of the supportsBloating record component.
      Specified by:
      supportsBloating in interface FluidInformation
      Returns:
      the value of the supportsBloating record component
    • pathType

      public net.minecraft.world.level.pathfinder.BlockPathTypes pathType()
      Returns the value of the pathType record component.
      Specified by:
      pathType in interface FluidInformation
      Returns:
      the value of the pathType record component
    • adjacentPathType

      public net.minecraft.world.level.pathfinder.BlockPathTypes adjacentPathType()
      Returns the value of the adjacentPathType record component.
      Specified by:
      adjacentPathType in interface FluidInformation
      Returns:
      the value of the adjacentPathType record component
    • canHydrate

      public boolean canHydrate()
      Returns the value of the canHydrate record component.
      Specified by:
      canHydrate in interface FluidInformation
      Returns:
      the value of the canHydrate record component
    • lightLevel

      public int lightLevel()
      Returns the value of the lightLevel record component.
      Specified by:
      lightLevel in interface FluidInformation
      Returns:
      the value of the lightLevel record component
    • density

      public int density()
      Returns the value of the density record component.
      Specified by:
      density in interface FluidInformation
      Returns:
      the value of the density record component
    • temperature

      public int temperature()
      Returns the value of the temperature record component.
      Specified by:
      temperature in interface FluidInformation
      Returns:
      the value of the temperature record component
    • viscosity

      public int viscosity()
      Returns the value of the viscosity record component.
      Specified by:
      viscosity in interface FluidInformation
      Returns:
      the value of the viscosity record component
    • rarity

      public net.minecraft.world.item.Rarity rarity()
      Returns the value of the rarity record component.
      Specified by:
      rarity in interface FluidInformation
      Returns:
      the value of the rarity record component
    • sounds

      public FluidSounds sounds()
      Returns the value of the sounds record component.
      Specified by:
      sounds in interface FluidInformation
      Returns:
      the value of the sounds record component
    • still

      public net.minecraft.resources.ResourceLocation still()
      Returns the value of the still record component.
      Specified by:
      still in interface FluidInformation
      Returns:
      the value of the still record component
    • flowing

      public net.minecraft.resources.ResourceLocation flowing()
      Returns the value of the flowing record component.
      Specified by:
      flowing in interface FluidInformation
      Returns:
      the value of the flowing record component
    • overlay

      public net.minecraft.resources.ResourceLocation overlay()
      Returns the value of the overlay record component.
      Specified by:
      overlay in interface FluidInformation
      Returns:
      the value of the overlay record component
    • screenOverlay

      public net.minecraft.resources.ResourceLocation screenOverlay()
      Returns the value of the screenOverlay record component.
      Specified by:
      screenOverlay in interface FluidInformation
      Returns:
      the value of the screenOverlay record component
    • tintColor

      public int tintColor()
      Returns the value of the tintColor record component.
      Specified by:
      tintColor in interface FluidInformation
      Returns:
      the value of the tintColor record component
    • tickDelay

      public int tickDelay()
      Returns the value of the tickDelay record component.
      Specified by:
      tickDelay in interface FluidInformation
      Returns:
      the value of the tickDelay record component
    • slopeFindDistance

      public int slopeFindDistance()
      Returns the value of the slopeFindDistance record component.
      Specified by:
      slopeFindDistance in interface FluidInformation
      Returns:
      the value of the slopeFindDistance record component
    • dropOff

      public int dropOff()
      Returns the value of the dropOff record component.
      Specified by:
      dropOff in interface FluidInformation
      Returns:
      the value of the dropOff record component
    • explosionResistance

      public float explosionResistance()
      Returns the value of the explosionResistance record component.
      Specified by:
      explosionResistance in interface FluidInformation
      Returns:
      the value of the explosionResistance record component
    • canPlace

      public boolean canPlace()
      Returns the value of the canPlace record component.
      Specified by:
      canPlace in interface FluidInformation
      Returns:
      the value of the canPlace record component