Class StriderEntity
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.AgeableEntity
org.geysermc.geyser.entity.type.living.animal.AnimalEntity
org.geysermc.geyser.entity.type.living.animal.StriderEntity
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity,Leashable,Tickable,ClientVehicle
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
attributeScale, dirtyHeadYaw, dirtyPitch, dirtyYaw, equipment, health, maxHealthFields inherited from class org.geysermc.geyser.entity.type.Entity
customName, customNameVisible, 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 TypeMethodDescriptionprotected booleancanUseSlot(org.geysermc.mcprotocollib.protocol.data.game.entity.EquipmentSlot slot) booleanorg.cloudburstmc.math.vector.Vector3fgetRiddenInput(org.cloudburstmc.math.vector.Vector2f input) floatprotected booleanIf true, the entity should be shaking on the client's end.protected @NonNull InteractionResultmobInteract(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) voidsetBoost(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) voidsetCold(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata) booleanprotected @NonNull InteractiveTagtestMobInteraction(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) voidtick()This function gets called every game tick as long as the game tick loop isn't frozen.voidSends the Bedrock metadata to the clientMethods inherited from class org.geysermc.geyser.entity.type.living.animal.AnimalEntity
canEatMethods inherited from class org.geysermc.geyser.entity.type.living.AgeableEntity
getAdultSize, getBabySize, initializeMetadata, isBaby, setBabyMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
canBeLeashed, canShearEquipment, interact, isEnemy, leashHolderBedrockId, setLeashHolderBedrockId, setMobFlags, testInteractionMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getEquipment, getItemInSlot, getLerpPosition, getLerpSteps, getMainHandItem, getOffHandItem, hasBodyArmor, hasShield, isAlive, isDirtyHeadYaw, isDirtyPitch, isDirtyYaw, isEquippableInSlot, isHolding, isMaxFrozenState, moveAbsolute, moveRelative, setAttributeScale, setBedPosition, setBody, setBoots, setBoundingBoxHeight, setBoundingBoxWidth, setChestplate, setDimensionsFromPose, setDirtyHeadYaw, setDirtyPitch, setDirtyYaw, setEquipment, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLerpPosition, setLerpSteps, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffhand, setParticles, setSaddle, setScale, setSpinAttack, shouldLerp, switchHands, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateNametag, updateOffHand, updateSaddled, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, despawnEntity, doesJumpDismount, getBedrockRotation, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getDisplayName, getEntityId, getFlag, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getVehicle, getYaw, geyserId, hasLeashesToDrop, interactAt, isCustomNameVisible, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveAbsoluteRaw, moveRelativeRaw, playEntityEvent, playEntityEvent, scoreVisibility, setAir, setAirSupply, setClientSideSilent, setCustomName, setCustomNameVisible, setDefinition, setEntityId, setFlag, setFlags, setFlagsDirty, setGliding, setGravity, setHeadYaw, setInvisible, setMotion, setNameEntityData, setNametag, setNametagAlwaysShow, setOnGround, setPassengers, setPitch, setPose, setPosition, setRiderSeatPosition, setSilent, setSneaking, setSprinting, setValid, setVehicle, setYaw, spawnEntity, standardDisplayName, teamIdentifier, teleport, updateBedrockEntityProperties, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updateNametag, updatePassengerOffsets, updatePositionAndRotation, updatePropertiesBatched, updateRotation, uuid, uuidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.entity.vehicle.ClientVehicle
canClimbMethods inherited from interface org.geysermc.geyser.api.entity.type.GeyserEntity
updatePropertiesBatched, updateProperty
-
Constructor Details
-
StriderEntity
-
-
Method Details
-
setCold
public void setCold(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata) -
updateBedrockMetadata
public void updateBedrockMetadata()Description copied from class:EntitySends the Bedrock metadata to the client- Overrides:
updateBedrockMetadatain classEntity
-
isShaking
protected boolean isShaking()Description copied from class:EntityIf true, the entity should be shaking on the client's end.- Overrides:
isShakingin classLivingEntity- Returns:
- whether
EntityFlag.SHAKINGshould be set to true.
-
getFoodTag
- Specified by:
getFoodTagin classAnimalEntity- Returns:
- the tag associated with this animal for eating food. Null for nothing or different behavior.
-
testMobInteraction
protected @NonNull InteractiveTag testMobInteraction(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) - Overrides:
testMobInteractionin classAnimalEntity
-
mobInteract
protected @NonNull InteractionResult mobInteract(@NonNull org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand, @NonNull GeyserItemStack itemInHand) - Overrides:
mobInteractin classAnimalEntity
-
setBoost
public void setBoost(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata) -
tick
public void tick()Description copied from interface:TickableThis function gets called every game tick as long as the game tick loop isn't frozen.- Specified by:
tickin interfaceTickable- Overrides:
tickin classLivingEntity
-
getVehicleComponent
- Specified by:
getVehicleComponentin interfaceClientVehicle
-
getRiddenInput
public org.cloudburstmc.math.vector.Vector3f getRiddenInput(org.cloudburstmc.math.vector.Vector2f input) - Specified by:
getRiddenInputin interfaceClientVehicle
-
getVehicleSpeed
public float getVehicleSpeed()- Specified by:
getVehicleSpeedin interfaceClientVehicle
-
shouldSimulateMovement
public boolean shouldSimulateMovement()- Specified by:
shouldSimulateMovementin interfaceClientVehicle
-
canWalkOnLava
public boolean canWalkOnLava()- Specified by:
canWalkOnLavain interfaceClientVehicle
-
canUseSlot
protected boolean canUseSlot(org.geysermc.mcprotocollib.protocol.data.game.entity.EquipmentSlot slot) - Overrides:
canUseSlotin classLivingEntity
-