Package ac.boar.anticheat.data
Record Class EntityDimensions
java.lang.Object
java.lang.Record
ac.boar.anticheat.data.EntityDimensions
public record EntityDimensions(float width, float height, float eyeHeight, boolean fixed)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntityDimensions(float width, float height, float eyeHeight, boolean fixed) Creates an instance of aEntityDimensionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityDimensionschanging(float width, float height) final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theeyeHeightrecord component.booleanfixed()Returns the value of thefixedrecord component.static EntityDimensionsfixed(float width, float height) getBoxAt(float x, float y, float z) hardScaled(float ratio) final inthashCode()Returns a hash code value for this object.floatheight()Returns the value of theheightrecord component.scaled(float ratio) scaled(float widthRatio, float heightRatio) final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.withEyeHeight(float eyeHeight)
-
Constructor Details
-
EntityDimensions
public EntityDimensions(float width, float height, float eyeHeight, boolean fixed) Creates an instance of aEntityDimensionsrecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componenteyeHeight- the value for theeyeHeightrecord componentfixed- the value for thefixedrecord component
-
-
Method Details
-
getBoxAt
-
getBoxAt
-
hardScaled
-
scaled
-
scaled
-
changing
-
fixed
-
withEyeHeight
-
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. All components in this record class are compared with '=='. -
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public float height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
eyeHeight
public float eyeHeight()Returns the value of theeyeHeightrecord component.- Returns:
- the value of the
eyeHeightrecord component
-
fixed
public boolean fixed()Returns the value of thefixedrecord component.- Returns:
- the value of the
fixedrecord component
-