Class MinecartEntity

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

public class MinecartEntity extends Entity
  • Constructor Details

    • MinecartEntity

      public MinecartEntity(GeyserSession session, long entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
  • Method Details

    • setCustomBlock

      public void setCustomBlock(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
    • setCustomBlockOffset

      public void setCustomBlockOffset(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
    • setShowCustomBlock

      public void setShowCustomBlock(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
    • moveAbsolute

      public void moveAbsolute(com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, float headYaw, 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