Class SkullPlayerEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.LivingEntity
org.geysermc.geyser.entity.type.player.PlayerEntity
org.geysermc.geyser.entity.type.player.SkullPlayerEntity
A wrapper to handle skulls more effectively - skulls have to be treated as entities since there are no
custom player skulls in Bedrock.
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHandFields inherited from class org.geysermc.geyser.entity.type.Entity
boundingBoxHeight, boundingBoxWidth, definition, dirtyMetadata, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, session, uuid, valid, yaw -
Constructor Summary
ConstructorsConstructorDescriptionSkullPlayerEntity(GeyserSession session, long geyserId, com.github.steveice10.mc.auth.data.GameProfile gameProfile, com.nukkitx.math.vector.Vector3f position, float rotation, int blockState) -
Method Summary
Modifier and TypeMethodDescriptionvoiddespawnEntity(com.nukkitx.math.vector.Vector3i position)protected voidCalled on entity spawn.voidOverwritten so each entity doesn't check for a linked entityMethods inherited from class org.geysermc.geyser.entity.type.player.PlayerEntity
moveAbsolute, moveRelative, sendPlayer, setAbsorptionHearts, setBedPosition, setBelowNameText, setDimensions, setDisplayName, setDisplayNameVisible, setLeftParrot, setPosition, setRightParrot, setSkinVisibility, updateDisplayName, updateHeadLookRotation, updatePositionAndRotation, updateRotationMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, createHealthAttribute, isShaking, setFreezing, setHealth, setLivingEntityFlags, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getFlag, getMaxAir, is, moveAbsolute, moveRelative, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setFlag, setFlags, setGravity, setInvisible, setPose, setRiderSeatPosition, teleport, updateBedrockMetadata
-
Constructor Details
-
SkullPlayerEntity
public SkullPlayerEntity(GeyserSession session, long geyserId, com.github.steveice10.mc.auth.data.GameProfile gameProfile, com.nukkitx.math.vector.Vector3f position, float rotation, int blockState)
-
-
Method Details
-
initializeMetadata
protected void initializeMetadata()Description copied from class:EntityCalled on entity spawn. Used to populate the entity metadata and flags with default values.- Overrides:
initializeMetadatain classPlayerEntity
-
spawnEntity
public void spawnEntity()Overwritten so each entity doesn't check for a linked entity- Overrides:
spawnEntityin classPlayerEntity
-
despawnEntity
public void despawnEntity(com.nukkitx.math.vector.Vector3i position)
-