Class BedrockGuiActorContext

java.lang.Object
com.viaversion.viafabricplus.bedrock.render.BedrockGuiActorContext
All Implemented Interfaces:
AutoCloseable

public final class BedrockGuiActorContext extends Object implements AutoCloseable
One retained GUI perspective. World playback and world effect dispatch remain separate.
  • Constructor Details

    • BedrockGuiActorContext

      public BedrockGuiActorContext(UUID actor, UUID lifetime)
  • Method Details

    • correctPose

      public static void correctPose(com.mojang.blaze3d.vertex.PoseStack pose, float width, int guiScale)
    • requireSupportedEffects

      public void requireSupportedEffects()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • owns

      public boolean owns(UUID actor, UUID lifetime)
    • opacity

      public void opacity(float opacity)
    • compositeColor

      public int compositeColor(int color)
      Java composites the finished GUI texture with premultiplied alpha.
    • picture

      public static <T> T picture(Supplier<T> operation)
      Marks texture-backed GUI submission independently of native camera and actor playback.
    • inPicture

      public static boolean inPicture()
    • current

      public static BedrockGuiActorContext current()
    • frame

      public static BedrockGuiActorContext frame(net.minecraft.client.renderer.entity.state.EntityRenderState state)
    • scoped

      public <T> T scoped(Supplier<T> operation)
    • camera

      public void camera(float pitch, float yaw)
    • pose

      public void pose(float pitch, float yaw, float bodyYaw, float headYaw, org.joml.Matrix4fc modelTransform)
    • transform

      public void transform(com.mojang.blaze3d.vertex.PoseStack pose)
    • extracted

      public static void extracted(net.minecraft.client.renderer.entity.state.AvatarRenderState state)
    • extracted

      public static void extracted(net.minecraft.client.renderer.entity.state.EntityRenderState state)
    • playback

    • resource

      public <T> T resource(Object generation, String identifier, Supplier<T> create)
    • yaw

      public float yaw()
    • seconds

      public float seconds()
    • emote

    • sound

      public void sound(BedrockActorAnimation.SoundCue sound)
    • particle

      public void particle(BedrockActorAnimation.ParticleCue particle)
    • sounds

    • particles

    • selection

    • selection

      public void selection(BedrockPlayerControllers.Selection selection)