Class CamelVehicleComponent
java.lang.Object
org.geysermc.geyser.entity.vehicle.VehicleComponent<CamelEntity>
org.geysermc.geyser.entity.vehicle.CamelVehicleComponent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.entity.vehicle.VehicleComponent
VehicleComponent.VehicleContext -
Field Summary
Fields inherited from class org.geysermc.geyser.entity.vehicle.VehicleComponent
boundingBox, effectLevitation, effectSlowFalling, effectWeaving, gravity, moveSpeed, stepHeight, vehicle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.cloudburstmc.math.vector.Vector3fgetInputVelocity(VehicleComponent<CamelEntity>.VehicleContext ctx, float speed) Translates the player's input into velocity.protected org.cloudburstmc.math.vector.Vector2fGets the rotation to use for the vehicle.voidvoidremoveEffect(org.geysermc.mcprotocollib.protocol.data.game.entity.Effect effect) voidsetEffect(org.geysermc.mcprotocollib.protocol.data.game.entity.Effect effect, int effectAmplifier) voidsetHorseJumpStrength(float horseJumpStrength) voidsetLastPoseTick(long lastPoseTick) voidvoidCalled every session tick while the player is mounted on the vehicle.protected booleantravel(VehicleComponent<CamelEntity>.VehicleContext ctx, float speed) Calculates the next position of the vehicle while checking for collision and adjusting velocity.Methods inherited from class org.geysermc.geyser.entity.vehicle.VehicleComponent
applyBlockCollisionEffects, correctMovement, getBlockMovementMultiplier, getBlockUnderSupport, getBoundingBox, getFluidGravity, getFluidHeightAndApplyMovement, getGravity, getJumpVelocityMultiplier, getLandingBlock, getLogicalFluidHeight, getMoveSpeed, getVelocityBlock, getVelocityMultiplier, getWorldFluidHeight, isClimbing, isFlowBlocked, javaNormalize, landMovement, lavaMovement, moveAbsolute, moveRelative, moveRelative, moveVehicle, normalizeInput, onBubbleColumnCollision, onHoneyBlockCollision, onMount, setGravity, setHeight, setMoveSpeed, setStepHeight, setWidth, shouldApplyFluidJumpBoost, updateFluidMovement, waterMovement
-
Constructor Details
-
CamelVehicleComponent
-
-
Method Details
-
startDashCooldown
public void startDashCooldown() -
tickVehicle
public void tickVehicle()Description copied from class:VehicleComponentCalled every session tick while the player is mounted on the vehicle.- Overrides:
tickVehiclein classVehicleComponent<CamelEntity>
-
onDismount
public void onDismount()- Overrides:
onDismountin classVehicleComponent<CamelEntity>
-
travel
Description copied from class:VehicleComponentCalculates the next position of the vehicle while checking for collision and adjusting velocity.- Overrides:
travelin classVehicleComponent<CamelEntity>- Returns:
- true if there was a horizontal collision
-
getInputVelocity
protected org.cloudburstmc.math.vector.Vector3f getInputVelocity(VehicleComponent<CamelEntity>.VehicleContext ctx, float speed) Description copied from class:VehicleComponentTranslates the player's input into velocity.- Overrides:
getInputVelocityin classVehicleComponent<CamelEntity>- Parameters:
ctx- contextspeed- multiplier for input- Returns:
- velocity
-
getVehicleRotation
protected org.cloudburstmc.math.vector.Vector2f getVehicleRotation()Description copied from class:VehicleComponentGets the rotation to use for the vehicle. This is based on the player's head rotation.- Overrides:
getVehicleRotationin classVehicleComponent<CamelEntity>
-
setEffect
public void setEffect(org.geysermc.mcprotocollib.protocol.data.game.entity.Effect effect, int effectAmplifier) - Overrides:
setEffectin classVehicleComponent<CamelEntity>
-
removeEffect
public void removeEffect(org.geysermc.mcprotocollib.protocol.data.game.entity.Effect effect) - Overrides:
removeEffectin classVehicleComponent<CamelEntity>
-
setHorseJumpStrength
public void setHorseJumpStrength(float horseJumpStrength) -
setLastPoseTick
public void setLastPoseTick(long lastPoseTick)
-