Pausable Stream Wrapper

About

Creates a Minecraft plugin that wraps InputStreams to support pause, resume, and stop functionality without ******* the underlying thread. Pausing blocks reads until resumed, while stopping causes reads to return EOF (-*), enabling clean termination of audio playback loops. The wrapper provides volatile state flags for thread-safe control, a polling wait mechanism with interrupt handling, and proper close behavior that signals EOF before closing the source stream. This utility is ideal for audio streaming plugins requiring responsive playback control.