Class BedrockPlayerModes
java.lang.Object
com.viaversion.viafabricplus.bedrock.input.BedrockPlayerModes
Live native owners stay separate from the historical copies used during physical replay.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyEvent(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message) static voidcapture(net.minecraft.client.player.LocalPlayer player, PhysicalState.Builder builder) static <T> voidcaptureAbility(net.minecraft.world.entity.player.Player player, PhysicalState.Builder state, Enum<?> key, T value, Consumer<T> setter) static net.raphimc.viabedrock.api.model.PlayerModeMessage.Statecurrent(net.minecraft.world.entity.player.Player player) static net.raphimc.viabedrock.api.model.FlightMovementContextflightContext(net.raphimc.viabedrock.api.model.FlightMovementContext live) static booleanmatches(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message) static booleannoClip(net.minecraft.world.entity.player.Player player, boolean fallback) static intportalDuration(net.minecraft.world.entity.player.Player player, int fallback) static voidregister()static voidrestoreSnapshot(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage.State state) static voidrestoreUpdate(net.minecraft.client.player.LocalPlayer player, net.raphimc.viabedrock.api.model.PlayerModeMessage message)
-
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)
-