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
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity,org.geysermc.geyser.api.entity.type.player.GeyserPlayerEntity
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
body, boots, chestplate, hand, health, helmet, leggings, maxHealth, offhand, saddleFields inherited from class org.geysermc.geyser.entity.type.Entity
definition, dirtyMetadata, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, propertyManager, session, silent, uuid, valid, vehicle, yaw -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.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
despawnEntity, getBedPosition, getCachedScore, getDisplayName, getLeftParrot, getRightParrot, getTabListUuid, getTexturesProperty, getUsername, isScoreVisible, moveAbsolute, moveRelative, position, resetMetadata, scoreVisibility, sendPlayer, setAbsorptionHearts, setBedPosition, setBelowNameText, setCachedScore, setDimensions, setDisplayName, setDisplayNameVisible, setLeftParrot, setNametag, setParrot, setPosition, setRightParrot, setScoreVisible, setSkinVisibility, setTexturesProperty, setUsername, teamIdentifierMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getBody, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffhand, getSaddle, hasShield, interact, isAlive, isMaxFrozenState, isShaking, setBody, setBoots, setBoundingBoxHeight, setBoundingBoxWidth, setChestplate, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffhand, setParticles, setSaddle, setScale, switchHands, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateNametag, updateOffHand, updateSaddled, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, getBedrockRotation, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getUuid, getVehicle, getYaw, interactAt, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setClientSideSilent, setDefinition, setEntityId, setFlag, setFlags, setFlagsDirty, setGravity, setHeadYaw, setInvisible, setMotion, setOnGround, setPassengers, setPitch, setPose, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, setYaw, standardDisplayName, teleport, testInteraction, updateBedrockEntityProperties, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, updatePassengerOffsets, updatePositionAndRotation, updateRotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.entity.type.GeyserEntity
javaId
-
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
-
updateSkull
-
getSkullUUID
-
getSkullPosition
public org.cloudburstmc.math.vector.Vector3i getSkullPosition()
-