SeatingInteraction
Package: com.hypixel.hytale.builtin.mounts.interactions
public class SeatingInteraction extends SimpleBlockInteractionA block interaction that seats the interacting player on a block with configured seat or bed mount points. Registered on Interaction.CODEC with the key "Seating" by MountPlugin.
@Nonnullpublic static final BuilderCodec<SeatingInteraction> CODECExtends SimpleBlockInteraction.CODEC with documentation "Arranges perfect seating accommodations". No additional fields.
Behavior
Section titled “Behavior”@Overrideprotected void interactWithBlock( @Nonnull World world, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull InteractionType type, @Nonnull InteractionContext context, @Nullable ItemStack itemInHand, @Nonnull Vector3i targetBlock, @Nonnull CooldownHandler cooldownHandler)For player entities:
- Computes the raw block hit position from the interaction metadata.
- Delegates to BlockMountAPI.mountOnBlock().
- On
ALREADY_MOUNTED: plays the"SFX_Creative_Play_Add_Mask"sound effect as 2D audio. - On successful
Mounted: looks up the block’sBlockSoundSetand plays the walk sound as 3D audio. - On other failures: sends a
"server.interactions.didNotMount"message with the failure state.
simulateInteractWithBlock
Section titled “simulateInteractWithBlock”No-op.
Related Types
Section titled “Related Types”- BlockMountAPI — performs the actual mount logic
- MountPlugin — registers this interaction
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.