Skip to content

Replace Geyser anvil patch with optional Geyser Forms substitution for Anvil UI #119

Backlog

Description

@CyR1en

Summary

In a future release (post-3.3.0), remove the experimental Geyser-Anvil-Patch feature (in-memory Geyser-Spigot patching and /cmdp patch Geyser-Standalone JAR patching) and instead provide an opt-in configuration option allowing Bedrock players to substitute Anvil UI prompts with native Geyser/Floodgate Forms.

Motivation

  • Runtime translator replacement and standalone JAR patching couple CommandPrompter to Geyser internals and specific Geyser builds, require custom Bedrock resource pack generation, and force server restarts and manual JAR rebuilds.
  • Using native Geyser/Floodgate Forms (Cumulus) for Anvil text input avoids brittle Geyser internals patching and delivers a native Bedrock UX.

Scope

1. Remove the Geyser Anvil Patch feature

  • Config & Commands:
    • Remove Geyser-Anvil-Patch from CommandPrompterConfig and its reload warning check in ReloadCommand.
    • Remove /cmdp patch (PatchCommand, registration in PromptRootCommand, promptpaper.patch in paper-plugin.yml, and command.patch.* locale keys in messages_en_US.properties).
  • Geyser Patcher & Translator Code:
    • Remove dev.cyr1en.promptpaper.hook.geyser.* (GeyserAnvilPatch, PatchedAnvilTranslator, PatchedAnvilContainer, PatchedAnvilUpdater, GeyserStandaloneSupport, StandaloneJarPatcher, AnvilPatchProtocol, GeyserAnvilDefinitions, BedrockAnvilAppearance, BedrockAnvilCarrier, BedrockAnvilItems, BedrockAnvilPresentation), patch wiring in GeyserHook and CommandPrompter, and bedrock-anvil-icons.properties.
  • Build & Packaging:
    • Remove the geyser-spigot-compat / geyser-standalone-compat Ivy repositories and dependencies, standalone / standaloneTest source sets, and nested compat/geyser-standalone-patch.jar payload packaging in prompt-paper/build.gradle.kts.
  • UI Plumbing:
    • Remove geyserAnvilPatch config/presentation plumbing in AnvilPromptScreen, PlayerUIScreen, and prompt-ui-26.{1,2,3} (FrameworkAnvilScreen, AnvilInventoryImpl), keeping standard Bedrock player detection (BedrockUtil) as needed.

2. Add opt-in Geyser Forms substitution for Anvil UI

  • Add a configuration toggle allowing admins to opt in to substituting Anvil UI prompts with a Geyser/Floodgate Form (Cumulus CustomForm) for Bedrock players.
  • Support form substitution for both AnvilPromptScreen and PlayerUIScreen search prompts when enabled and a Geyser/Floodgate session is available.
  • Preserve prompt title/prompt text, input validation, cancellation handling (closing/dismissing the form cancels the prompt), and session timeout/cleanup semantics.
  • Fall back gracefully to the standard Bedrock anvil / chat flow when disabled or when the Geyser/Floodgate Forms API is not present.

Target Release

Deferred to a later version (PR #118 / 3.3.0 stays as-is).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions