Interface VideoPlayer

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
DummyVideoPlayer, VLCVideoPlayer

public interface VideoPlayer extends AutoCloseable
Loads and plays a video.
  • Method Details

    • getId

      net.minecraft.util.Identifier getId()
      Get the identifier of this video player.
      Returns:
      Video player ID.
    • getTexture

      net.minecraft.util.Identifier getTexture()
      Get the texture that this video player will write to.
      Returns:
      Texture ID.
    • getMediaInterface

      MediaInterface getMediaInterface()
    • getControlsInterface

      ControlsInterface getControlsInterface()
    • getCodecInterface

      CodecInterface getCodecInterface()
    • getEvents

      VideoEvents getEvents()
    • getTextureId

      static net.minecraft.util.Identifier getTextureId(net.minecraft.util.Identifier id)
      Generate a texture identifier from a video player identifier. This is just an internal utility function. It's not guarenteed that any given video player will use this scheme. Use getTexture() instead.
      Parameters:
      id - Video player ID.
      Returns:
      Texture ID.