Record Class IChunkExtent.IChunkEntity
java.lang.Object
java.lang.Record
com.fastasyncworldedit.core.queue.IChunkExtent.IChunkEntity
- Enclosing interface:
IChunkExtent<T extends IChunk>
-
Constructor Summary
ConstructorsConstructorDescriptionIChunkEntity(Extent extent, Location location, UUID uuid, BaseEntity base) Creates an instance of aIChunkEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.extent()Returns the value of theextentrecord component.Get the extent that this actor is in.<T> TGet 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 inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.booleanremove()Remove this entity from it container.booleansetLocation(Location location) Sets the location of this actor.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.extension.platform.Locatable
getBlockLocation, setPosition, trySetPosition
-
Constructor Details
-
IChunkEntity
Creates an instance of aIChunkEntityrecord class.- Parameters:
extent- the value for theextentrecord componentlocation- the value for thelocationrecord componentuuid- the value for theuuidrecord componentbase- the value for thebaserecord component
-
-
Method Details
-
getState
Description copied from interface:EntityGet a copy of the entity's state.In some cases, this method may return
nullif 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:EntityRemove this entity from it container. -
getFacet
Description copied from interface:FacetedGet the facet corresponding to the given class or interface. -
getLocation
Description copied from interface:LocatableGet the location of this actor.- Specified by:
getLocationin interfaceLocatable- Returns:
- the location of the actor
-
setLocation
Description copied from interface:LocatableSets the location of this actor.- Specified by:
setLocationin interfaceLocatable- Parameters:
location- the new location of the actor- Returns:
- if the teleport succeeded
-
getExtent
Description copied from interface:LocatableGet 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 theextentrecord component.- Returns:
- the value of the
extentrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-