Class MinecartEntity

java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.MinecartEntity
Direct Known Subclasses:
DefaultBlockMinecartEntity

public class MinecartEntity extends Entity
  • Constructor Details

    • MinecartEntity

      public MinecartEntity(long entityId, long geyserId, EntityType entityType, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, com.nukkitx.math.vector.Vector3f rotation)
  • Method Details

    • updateBedrockMetadata

      public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)
      Description copied from class: Entity
      Applies the Java metadata to the local Bedrock metadata copy
      Overrides:
      updateBedrockMetadata in class Entity
      Parameters:
      entityMetadata - the Java entity metadata
      session - GeyserSession
    • moveAbsolute

      public void moveAbsolute(GeyserSession session, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround, boolean teleported)
      Overrides:
      moveAbsolute in class Entity
    • getBedrockRotation

      public com.nukkitx.math.vector.Vector3f getBedrockRotation()
      Description copied from class: Entity
      x = Pitch, y = HeadYaw, z = Yaw
      Overrides:
      getBedrockRotation in class Entity
      Returns:
      the bedrock rotation