Record Class FakeBorderRegistry.FakeBorderBlock
java.lang.Object
java.lang.Record
tfagaming.projects.minecraft.homestead.borders.FakeBorderRegistry.FakeBorderBlock
- Enclosing class:
FakeBorderRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionFakeBorderBlock(org.bukkit.Location loc, org.bukkit.block.data.BlockData originalData, long regionId, UUID viewerId) Creates an instance of aFakeBorderBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.bukkit.Locationloc()Returns the value of thelocrecord component.org.bukkit.block.data.BlockDataReturns the value of theoriginalDatarecord component.longregionId()Returns the value of theregionIdrecord component.final StringtoString()Returns a string representation of this record class.viewerId()Returns the value of theviewerIdrecord component.
-
Constructor Details
-
FakeBorderBlock
public FakeBorderBlock(org.bukkit.Location loc, org.bukkit.block.data.BlockData originalData, long regionId, UUID viewerId) Creates an instance of aFakeBorderBlockrecord class.- Parameters:
loc- the value for thelocrecord componentoriginalData- the value for theoriginalDatarecord componentregionId- the value for theregionIdrecord componentviewerId- the value for theviewerIdrecord component
-
-
Method Details
-
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 '=='. -
loc
public org.bukkit.Location loc()Returns the value of thelocrecord component.- Returns:
- the value of the
locrecord component
-
originalData
public org.bukkit.block.data.BlockData originalData()Returns the value of theoriginalDatarecord component.- Returns:
- the value of the
originalDatarecord component
-
regionId
public long regionId()Returns the value of theregionIdrecord component.- Returns:
- the value of the
regionIdrecord component
-
viewerId
Returns the value of theviewerIdrecord component.- Returns:
- the value of the
viewerIdrecord component
-