Record Class IChunkExtent.IChunkEntity
java.lang.Object
java.lang.Record
com.fastasyncworldedit.core.queue.IChunkExtent.IChunkEntity
- Enclosing interface:
IChunkExtent<T extends IChunk>
-
Constructor Summary
ConstructorDescriptionIChunkEntity
(Extent extent, Location location, UUID uuid, BaseEntity base) Creates an instance of aIChunkEntity
record class. -
Method Summary
Modifier and TypeMethodDescriptionbase()
Returns the value of thebase
record component.final boolean
Indicates whether some other object is "equal to" this one.extent()
Returns the value of theextent
record component.Get the extent that this actor is in.<T> T
Get the facet corresponding to the given class or interface.Get the location of this actor.getState()
Get a copy of the entity's state.final int
hashCode()
Returns a hash code value for this object.location()
Returns the value of thelocation
record component.boolean
remove()
Remove this entity from it container.boolean
setLocation
(Location location) Sets the location of this actor.final String
toString()
Returns a string representation of this record class.uuid()
Returns the value of theuuid
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocation, setPosition, trySetPosition
-
Constructor Details
-
IChunkEntity
Creates an instance of aIChunkEntity
record class.- Parameters:
extent
- the value for theextent
record componentlocation
- the value for thelocation
record componentuuid
- the value for theuuid
record componentbase
- the value for thebase
record component
-
-
Method Details
-
getState
Description copied from interface:Entity
Get a copy of the entity's state.In some cases, this method may return
null
if a snapshot of the entity can't be created. It may not be possible, for example, to get a snapshot of a player. -
remove
public boolean remove()Description copied from interface:Entity
Remove this entity from it container. -
getFacet
Description copied from interface:Faceted
Get the facet corresponding to the given class or interface. -
getLocation
Description copied from interface:Locatable
Get the location of this actor.- Specified by:
getLocation
in interfaceLocatable
- Returns:
- the location of the actor
-
setLocation
Description copied from interface:Locatable
Sets the location of this actor.- Specified by:
setLocation
in interfaceLocatable
- Parameters:
location
- the new location of the actor- Returns:
- if the teleport succeeded
-
getExtent
Description copied from interface:Locatable
Get the extent that this actor is in. -
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 withObjects::equals(Object,Object)
. -
extent
Returns the value of theextent
record component.- Returns:
- the value of the
extent
record component
-
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
uuid
Returns the value of theuuid
record component.- Returns:
- the value of the
uuid
record component
-
base
Returns the value of thebase
record component.- Returns:
- the value of the
base
record component
-