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.player.PlayerEntity
BASE_ABILITY_LAYER, SNEAKING_POSE_HEIGHTFields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()Hide the player entity so that it can be reused for a different skull.com.nukkitx.math.vector.Vector3iprotected voidCalled on entity spawn.voidOverwritten so each entity doesn't check for a linked entityvoidupdateSkull(SkullCache.Skull skull)Methods inherited from class org.geysermc.geyser.entity.type.player.PlayerEntity
getBedPosition, getLeftParrot, getRightParrot, getTabListUuid, getTexturesProperty, getUsername, moveAbsolute, moveRelative, sendPlayer, setAbsorptionHearts, setBedPosition, setBelowNameText, setDimensions, setDisplayName, setDisplayNameVisible, setLeftParrot, setPosition, setRightParrot, setSkinVisibility, setTexturesProperty, setUsername, updateDisplayName, updateRotationMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffHand, hasShield, interact, isAlive, isMaxFrozenState, isShaking, setBoots, setChestplate, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffHand, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getSession, getUuid, getVehicle, getYaw, interactAt, isOnGround, isSilent, isValid, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setClientSideSilent, setDefinition, setEntityId, setFlag, setFlags, setFlagsDirty, setGravity, setHeadYaw, setInvisible, setMotion, setOnGround, setPassengers, setPitch, setPose, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, setYaw, teleport, testInteraction, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Constructor Details
-
SkullPlayerEntity
-
-
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
-
free
public void free()Hide the player entity so that it can be reused for a different skull. -
updateSkull
-
getSkullUUID
-
getSkullPosition
public com.nukkitx.math.vector.Vector3i getSkullPosition()
-