Record Class BlockAttributes

java.lang.Object
java.lang.Record
org.cloudburstmc.server.block.BlockAttributes

public record BlockAttributes(boolean fallable, float friction, float hardness, float resistance, boolean solid, boolean pushesOutItems, float translucency, int burnChance, int burnAbility, int filterLight, boolean experimental, boolean flammable, boolean replaceable, int emitLight, boolean diggable, boolean powerSource, boolean breakFalling, boolean blockWater, boolean canBeSilkTouched, boolean blockSolid, boolean blockMotion, boolean comparatorSignal, boolean pushUpFalling, boolean waterlogFlowing, boolean waterlogSolid, org.cloudburstmc.api.util.AxisAlignedBB boundingBox, org.cloudburstmc.api.item.ToolType targetTool) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockAttributes​(boolean fallable, float friction, float hardness, float resistance, boolean solid, boolean pushesOutItems, float translucency, int burnChance, int burnAbility, int filterLight, boolean experimental, boolean flammable, boolean replaceable, int emitLight, boolean diggable, boolean powerSource, boolean breakFalling, boolean blockWater, boolean canBeSilkTouched, boolean blockSolid, boolean blockMotion, boolean comparatorSignal, boolean pushUpFalling, boolean waterlogFlowing, boolean waterlogSolid, org.cloudburstmc.api.util.AxisAlignedBB boundingBox, org.cloudburstmc.api.item.ToolType targetTool)
    Creates an instance of a BlockAttributes record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the blockMotion record component.
    boolean
    Returns the value of the blockSolid record component.
    boolean
    Returns the value of the blockWater record component.
    org.cloudburstmc.api.util.AxisAlignedBB
    Returns the value of the boundingBox record component.
    boolean
    Returns the value of the breakFalling record component.
    int
    Returns the value of the burnAbility record component.
    int
    Returns the value of the burnChance record component.
    boolean
    Returns the value of the canBeSilkTouched record component.
    boolean
    Returns the value of the comparatorSignal record component.
    boolean
    Returns the value of the diggable record component.
    int
    Returns the value of the emitLight record component.
    boolean
    equals​(Object o)
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the experimental record component.
    boolean
    Returns the value of the fallable record component.
    int
    Returns the value of the filterLight record component.
    boolean
    Returns the value of the flammable record component.
    float
    Returns the value of the friction record component.
    float
    Returns the value of the hardness record component.
    int
    Returns a hash code value for this object.
    boolean
    Returns the value of the powerSource record component.
    boolean
    Returns the value of the pushesOutItems record component.
    boolean
    Returns the value of the pushUpFalling record component.
    boolean
    Returns the value of the replaceable record component.
    float
    Returns the value of the resistance record component.
    boolean
    Returns the value of the solid record component.
    org.cloudburstmc.api.item.ToolType
    Returns the value of the targetTool record component.
    Returns a string representation of this record class.
    float
    Returns the value of the translucency record component.
    boolean
    Returns the value of the waterlogFlowing record component.
    boolean
    Returns the value of the waterlogSolid record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • BlockAttributes

      public BlockAttributes(boolean fallable, float friction, float hardness, float resistance, boolean solid, boolean pushesOutItems, float translucency, int burnChance, int burnAbility, int filterLight, boolean experimental, boolean flammable, boolean replaceable, int emitLight, boolean diggable, boolean powerSource, boolean breakFalling, boolean blockWater, boolean canBeSilkTouched, boolean blockSolid, boolean blockMotion, boolean comparatorSignal, boolean pushUpFalling, boolean waterlogFlowing, boolean waterlogSolid, org.cloudburstmc.api.util.AxisAlignedBB boundingBox, org.cloudburstmc.api.item.ToolType targetTool)
      Creates an instance of a BlockAttributes record class.
      Parameters:
      fallable - the value for the fallable record component
      friction - the value for the friction record component
      hardness - the value for the hardness record component
      resistance - the value for the resistance record component
      solid - the value for the solid record component
      pushesOutItems - the value for the pushesOutItems record component
      translucency - the value for the translucency record component
      burnChance - the value for the burnChance record component
      burnAbility - the value for the burnAbility record component
      filterLight - the value for the filterLight record component
      experimental - the value for the experimental record component
      flammable - the value for the flammable record component
      replaceable - the value for the replaceable record component
      emitLight - the value for the emitLight record component
      diggable - the value for the diggable record component
      powerSource - the value for the powerSource record component
      breakFalling - the value for the breakFalling record component
      blockWater - the value for the blockWater record component
      canBeSilkTouched - the value for the canBeSilkTouched record component
      blockSolid - the value for the blockSolid record component
      blockMotion - the value for the blockMotion record component
      comparatorSignal - the value for the comparatorSignal record component
      pushUpFalling - the value for the pushUpFalling record component
      waterlogFlowing - the value for the waterlogFlowing record component
      waterlogSolid - the value for the waterlogSolid record component
      boundingBox - the value for the boundingBox record component
      targetTool - the value for the targetTool record component
  • Method Details

    • 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.
    • fallable

      public boolean fallable()
      Returns the value of the fallable record component.
      Returns:
      the value of the fallable record component
    • friction

      public float friction()
      Returns the value of the friction record component.
      Returns:
      the value of the friction record component
    • hardness

      public float hardness()
      Returns the value of the hardness record component.
      Returns:
      the value of the hardness record component
    • resistance

      public float resistance()
      Returns the value of the resistance record component.
      Returns:
      the value of the resistance record component
    • solid

      public boolean solid()
      Returns the value of the solid record component.
      Returns:
      the value of the solid record component
    • pushesOutItems

      public boolean pushesOutItems()
      Returns the value of the pushesOutItems record component.
      Returns:
      the value of the pushesOutItems record component
    • translucency

      public float translucency()
      Returns the value of the translucency record component.
      Returns:
      the value of the translucency record component
    • burnChance

      public int burnChance()
      Returns the value of the burnChance record component.
      Returns:
      the value of the burnChance record component
    • burnAbility

      public int burnAbility()
      Returns the value of the burnAbility record component.
      Returns:
      the value of the burnAbility record component
    • filterLight

      public int filterLight()
      Returns the value of the filterLight record component.
      Returns:
      the value of the filterLight record component
    • experimental

      public boolean experimental()
      Returns the value of the experimental record component.
      Returns:
      the value of the experimental record component
    • flammable

      public boolean flammable()
      Returns the value of the flammable record component.
      Returns:
      the value of the flammable record component
    • replaceable

      public boolean replaceable()
      Returns the value of the replaceable record component.
      Returns:
      the value of the replaceable record component
    • emitLight

      public int emitLight()
      Returns the value of the emitLight record component.
      Returns:
      the value of the emitLight record component
    • diggable

      public boolean diggable()
      Returns the value of the diggable record component.
      Returns:
      the value of the diggable record component
    • powerSource

      public boolean powerSource()
      Returns the value of the powerSource record component.
      Returns:
      the value of the powerSource record component
    • breakFalling

      public boolean breakFalling()
      Returns the value of the breakFalling record component.
      Returns:
      the value of the breakFalling record component
    • blockWater

      public boolean blockWater()
      Returns the value of the blockWater record component.
      Returns:
      the value of the blockWater record component
    • canBeSilkTouched

      public boolean canBeSilkTouched()
      Returns the value of the canBeSilkTouched record component.
      Returns:
      the value of the canBeSilkTouched record component
    • blockSolid

      public boolean blockSolid()
      Returns the value of the blockSolid record component.
      Returns:
      the value of the blockSolid record component
    • blockMotion

      public boolean blockMotion()
      Returns the value of the blockMotion record component.
      Returns:
      the value of the blockMotion record component
    • comparatorSignal

      public boolean comparatorSignal()
      Returns the value of the comparatorSignal record component.
      Returns:
      the value of the comparatorSignal record component
    • pushUpFalling

      public boolean pushUpFalling()
      Returns the value of the pushUpFalling record component.
      Returns:
      the value of the pushUpFalling record component
    • waterlogFlowing

      public boolean waterlogFlowing()
      Returns the value of the waterlogFlowing record component.
      Returns:
      the value of the waterlogFlowing record component
    • waterlogSolid

      public boolean waterlogSolid()
      Returns the value of the waterlogSolid record component.
      Returns:
      the value of the waterlogSolid record component
    • boundingBox

      public org.cloudburstmc.api.util.AxisAlignedBB boundingBox()
      Returns the value of the boundingBox record component.
      Returns:
      the value of the boundingBox record component
    • targetTool

      public org.cloudburstmc.api.item.ToolType targetTool()
      Returns the value of the targetTool record component.
      Returns:
      the value of the targetTool record component