Class BedrockPlayerModes

java.lang.Object
com.viaversion.viafabricplus.bedrock.input.BedrockPlayerModes

public final class BedrockPlayerModes extends Object
Live native owners stay separate from the historical copies used during physical replay.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    applyEvent(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message)
     
    static void
    capture(net.minecraft.client.player.LocalPlayer player, PhysicalState.Builder builder)
     
    static <T> void
    captureAbility(net.minecraft.world.entity.player.Player player, PhysicalState.Builder state, Enum<?> key, T value, Consumer<T> setter)
     
    static net.raphimc.viabedrock.api.model.PlayerModeMessage.State
    current(net.minecraft.world.entity.player.Player player)
     
    static net.raphimc.viabedrock.api.model.FlightMovementContext
    flightContext(net.raphimc.viabedrock.api.model.FlightMovementContext live)
     
    static boolean
    matches(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message)
     
    static boolean
    noClip(net.minecraft.world.entity.player.Player player, boolean fallback)
     
    static int
    portalDuration(net.minecraft.world.entity.player.Player player, int fallback)
     
    static void
     
    static void
    restoreSnapshot(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage.State state)
     
    static void
    restoreUpdate(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • register

      public static void register()
    • matches

      public static boolean matches(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message)
    • current

      public static net.raphimc.viabedrock.api.model.PlayerModeMessage.State current(net.minecraft.world.entity.player.Player player)
    • capture

      public static void capture(net.minecraft.client.player.LocalPlayer player, PhysicalState.Builder builder)
    • captureAbility

      public static <T> void captureAbility(net.minecraft.world.entity.player.Player player, PhysicalState.Builder state, Enum<?> key, T value, Consumer<T> setter)
    • restoreSnapshot

      public static void restoreSnapshot(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage.State state)
    • restoreUpdate

      public static void restoreUpdate(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message)
    • applyEvent

      public static void applyEvent(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message)
    • noClip

      public static boolean noClip(net.minecraft.world.entity.player.Player player, boolean fallback)
    • portalDuration

      public static int portalDuration(net.minecraft.world.entity.player.Player player, int fallback)
    • flightContext

      public static net.raphimc.viabedrock.api.model.FlightMovementContext flightContext(net.raphimc.viabedrock.api.model.FlightMovementContext live)