Class CreakingEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.LivingEntity
org.geysermc.geyser.entity.type.living.MobEntity
org.geysermc.geyser.entity.type.living.CreatureEntity
org.geysermc.geyser.entity.type.living.monster.MonsterEntity
org.geysermc.geyser.entity.type.living.monster.CreakingEntity
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity,Leashable
-
Field Summary
FieldsFields inherited from class org.geysermc.geyser.entity.type.LivingEntity
body, boots, chestplate, hand, health, helmet, leggings, maxHealth, offhandFields 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
ConstructorsConstructorDescriptionCreakingEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalSpawnData(org.cloudburstmc.protocol.bedrock.packet.AddEntityPacket addEntityPacket) To be overridden in other entity classes, if additional things need to be done to the spawn entity packet.voidprotected voidCalled on entity spawn.voidsetActive(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Boolean, ? extends org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.MetadataType<Boolean>> booleanEntityMetadata) voidsetCanMove(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Boolean, ? extends org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.MetadataType<Boolean>> booleanEntityMetadata) voidsetHomePos(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<org.cloudburstmc.math.vector.Vector3i>, ? extends org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.MetadataType<Optional<org.cloudburstmc.math.vector.Vector3i>>> optionalEntityMetadata) voidsetIsTearingDown(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Boolean, ? extends org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.MetadataType<Boolean>> booleanEntityMetadata) Methods inherited from class org.geysermc.geyser.entity.type.living.monster.MonsterEntity
isEnemyMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
canBeLeashed, interact, leashHolderBedrockId, mobInteract, setLeashHolderBedrockId, setMobFlags, testInteraction, testMobInteractionMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getBody, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffhand, hasShield, isAlive, isMaxFrozenState, isShaking, moveRelative, setBedPosition, setBody, setBoots, setBoundingBoxHeight, setBoundingBoxWidth, setChestplate, setDimensions, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffhand, setParticles, setScale, switchHands, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateNametag, updateOffHand, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
despawnEntity, getBedrockRotation, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getUuid, getVehicle, getYaw, interactAt, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, scoreVisibility, setAir, setAirSupply, setClientSideSilent, setDefinition, setDisplayName, setDisplayNameVisible, setEntityId, setFlag, setFlags, setFlagsDirty, setGravity, setHeadYaw, setInvisible, setMotion, setNametag, setOnGround, setPassengers, setPitch, setPose, setPosition, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, setYaw, spawnEntity, standardDisplayName, teamIdentifier, teleport, 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.entity.type.Leashable
isNotLeashed
-
Field Details
-
CREAKING_STATE
- See Also:
-
CREAKING_SWAYING_TICKS
- See Also:
-
-
Constructor Details
-
CreakingEntity
public CreakingEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
-
-
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 classMobEntity
-
addAdditionalSpawnData
public void addAdditionalSpawnData(org.cloudburstmc.protocol.bedrock.packet.AddEntityPacket addEntityPacket) Description copied from class:EntityTo be overridden in other entity classes, if additional things need to be done to the spawn entity packet.- Overrides:
addAdditionalSpawnDatain classEntity
-
setCanMove
-
setActive
-
setIsTearingDown
-
setHomePos
public void setHomePos(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<org.cloudburstmc.math.vector.Vector3i>, ? extends org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.MetadataType<Optional<org.cloudburstmc.math.vector.Vector3i>>> optionalEntityMetadata) -
createParticleBeam
public void createParticleBeam()
-