Record Class BlockContext
java.lang.Object
java.lang.Record
su.nightexpress.excellentclaims.api.highlight.BlockContext
@NullMarked
public record BlockContext(su.nightexpress.nightcore.util.geodata.pos.ExactPos position, org.bukkit.block.data.BlockData data)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockContext(su.nightexpress.nightcore.util.geodata.pos.ExactPos position, org.bukkit.block.data.BlockData data) Creates an instance of aBlockContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.data.BlockDatadata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.su.nightexpress.nightcore.util.geodata.pos.ExactPosposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockContext
public BlockContext(su.nightexpress.nightcore.util.geodata.pos.ExactPos position, org.bukkit.block.data.BlockData data) Creates an instance of aBlockContextrecord class.- Parameters:
position- the value for thepositionrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
position
public su.nightexpress.nightcore.util.geodata.pos.ExactPos position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
data
public org.bukkit.block.data.BlockData data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-