Package ac.boar.geyser.mappings.entity
Record Class GeyserEntity
java.lang.Object
java.lang.Record
ac.boar.geyser.mappings.entity.GeyserEntity
- All Implemented Interfaces:
ac.boar.mappings.entity.Entity
public record GeyserEntity(org.geysermc.geyser.entity.type.Entity handle)
extends Record
implements ac.boar.mappings.entity.Entity
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserEntity(org.geysermc.geyser.entity.type.Entity handle) Creates an instance of aGeyserEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatbbHeight()floatbbWidth()org.cloudburstmc.math.vector.Vector3iac.boar.mappings.entity.EntityDefinitionfinal booleanIndicates whether some other object is "equal to" this one.org.geysermc.geyser.entity.type.Entityhandle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.<T> voidmetadata(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> type, T value) voidvoidvoidfinal StringtoString()Returns a string representation of this record class.ac.boar.mappings.entity.Entityvehicle()
-
Constructor Details
-
GeyserEntity
public GeyserEntity(org.geysermc.geyser.entity.type.Entity handle) Creates an instance of aGeyserEntityrecord class.- Parameters:
handle- the value for thehandlerecord component
-
-
Method Details
-
definition
public ac.boar.mappings.entity.EntityDefinition definition()- Specified by:
definitionin interfaceac.boar.mappings.entity.Entity
-
vehicle
public ac.boar.mappings.entity.Entity vehicle()- Specified by:
vehiclein interfaceac.boar.mappings.entity.Entity
-
bedPosition
public org.cloudburstmc.math.vector.Vector3i bedPosition()- Specified by:
bedPositionin interfaceac.boar.mappings.entity.Entity
-
bbWidth
public float bbWidth()- Specified by:
bbWidthin interfaceac.boar.mappings.entity.Entity
-
bbHeight
public float bbHeight()- Specified by:
bbHeightin interfaceac.boar.mappings.entity.Entity
-
metadata
public <T> void metadata(org.cloudburstmc.protocol.bedrock.data.entity.EntityDataType<T> type, T value) - Specified by:
metadatain interfaceac.boar.mappings.entity.Entity
-
refreshMetadata
public void refreshMetadata()- Specified by:
refreshMetadatain interfaceac.boar.mappings.entity.Entity
-
refreshAttributesToSelf
public void refreshAttributesToSelf()- Specified by:
refreshAttributesToSelfin interfaceac.boar.mappings.entity.Entity
-
releaseItem
public void releaseItem()- Specified by:
releaseItemin interfaceac.boar.mappings.entity.Entity
-
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). -
handle
public org.geysermc.geyser.entity.type.Entity handle()Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-