MountSeat

public class MountSeat

Represents a single seat on a mount-point bone.

Uses an Interaction entity (1.19.4+) as the vehicle. Interaction has no model on either Java or Bedrock by design, which bypasses Geyser's armor-stand renderer entirely — that renderer continued to draw the seat for Bedrock viewers no matter which Java-side visibility flag was set (setVisible, setInvisible, marker, hideEntity all proven ineffective for the rider-vehicle case).

Constructors

Link copied to clipboard
public void MountSeat(Bone bone, ModeledEntity modeledEntity)

Properties

Link copied to clipboard
public final Bone bone
Link copied to clipboard
public final static NamespacedKey MOUNT_SEAT_KEY
Link copied to clipboard
public Player occupant
Link copied to clipboard
public Interaction vehicle

Functions

Link copied to clipboard
public void cleanup()
Cleans up the seat, removing the vehicle and clearing the occupant.
Link copied to clipboard
public void dismount()
Dismounts the current occupant and removes the vehicle.
Link copied to clipboard
public Bone getBone()
Link copied to clipboard
public Player getOccupant()
Link copied to clipboard
public Interaction getVehicle()
Link copied to clipboard
public boolean isOccupied()
Returns whether this seat currently has an occupant.
Link copied to clipboard
public boolean mount(Player player)
Mounts a player onto this seat by spawning a vehicle Interaction entity at the bone location and adding the player as a passenger.
Link copied to clipboard
public void tick()
Updates the vehicle position to follow the bone location.