Record Class FakeBorderRegistry.FakeBorderBlock
java.lang.Object
java.lang.Record
me.tayebyassine.homestead.borders.blocks.FakeBorderRegistry.FakeBorderBlock
- Record Components:
loc- the block locationoriginalData- the original block data before modificationregionId- the region ID this border belongs toviewerId- the unique ID of the player seeing this fake block
- 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()Creates a location copy to prevent external modification.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
-
loc
public org.bukkit.Location loc()Creates a location copy to prevent external modification.- Returns:
- a new Location instance with the same coordinates
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
originalData
public org.bukkit.block.data.BlockData originalData()Returns the value of theoriginalDatarecord component.- Returns:
- the value of the
originalDatarecord component
-
regionId
-
viewerId
-