public class FishingHookEntity extends ThrowableEntity
lastJavaPosition| Constructor and Description |
|---|
FishingHookEntity(long entityId,
long geyserId,
EntityType entityType,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation,
PlayerEntity owner) |
| Modifier and Type | Method and Description |
|---|---|
protected float |
getDrag(GeyserSession session) |
protected float |
getGravity(GeyserSession session)
Get the gravity of this entity type.
|
protected boolean |
isInAir(GeyserSession session) |
protected void |
moveAbsoluteImmediate(GeyserSession session,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround,
boolean teleported) |
void |
tick(GeyserSession session)
Updates the position for the Bedrock client.
|
void |
updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
Applies the Java metadata to the local Bedrock metadata copy
|
despawnEntity, isInWater, moveAbsolute, moveRelativeaddAdditionalSpawnData, as, getBedrockRotation, is, isShaking, moveAbsolute, moveRelative, setDimensions, setFreezing, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationpublic FishingHookEntity(long entityId,
long geyserId,
EntityType entityType,
com.nukkitx.math.vector.Vector3f position,
com.nukkitx.math.vector.Vector3f motion,
com.nukkitx.math.vector.Vector3f rotation,
PlayerEntity owner)
public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class EntityentityMetadata - the Java entity metadatasession - GeyserSessionprotected void moveAbsoluteImmediate(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
moveAbsoluteImmediate in class ThrowableEntitypublic void tick(GeyserSession session)
ThrowableEntitytick in interface Tickabletick in class ThrowableEntityprotected float getGravity(GeyserSession session)
ThrowableEntitygetGravity in class ThrowableEntitysession - the session of the Bedrock client.protected boolean isInAir(GeyserSession session)
session - the session of the Bedrock client.protected float getDrag(GeyserSession session)
getDrag in class ThrowableEntitysession - the session of the Bedrock client.Copyright © 2021 GeyserMC. All rights reserved.