Class PhysicalReplayContext

java.lang.Object
com.viaversion.viafabricplus.bedrock.movement.replay.PhysicalReplayContext

public final class PhysicalReplayContext extends Object
Historical physics runs on the client thread. Other threads retain normal network and world behavior.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot
    actor(UUID uuid, Supplier<net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot> live)
     
    static void
    actor(UUID uuid, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot value)
     
    static net.minecraft.world.entity.Entity
    camera(net.minecraft.world.entity.Entity liveCamera)
     
    collisions(net.minecraft.world.entity.Entity actor)
     
    static long
    completedFrame(long liveFrame)
     
    enter(net.minecraft.world.level.Level level, net.minecraft.network.Connection connection, Set<net.minecraft.world.entity.Entity> predictedActors)
     
    static net.minecraft.world.item.ItemStack
    equipment(net.minecraft.world.entity.LivingEntity actor, net.minecraft.world.entity.EquipmentSlot slot)
     
    static void
    frame(long frame)
     
    static net.minecraft.world.level.GameType
    gameMode(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.GameType live)
     
    static net.minecraft.world.level.GameType
    gameMode(net.minecraft.world.level.GameType live)
     
    static Long
    gameTime(net.minecraft.world.level.Level level)
     
    itemUse(net.minecraft.world.entity.Entity actor)
     
    static net.raphimc.viabedrock.api.model.PlayerInputPermissions
    permissions(net.raphimc.viabedrock.api.model.PlayerInputPermissions live)
     
    static net.raphimc.viabedrock.api.model.PlayerModeMessage.State
    playerMode(net.raphimc.viabedrock.api.model.PlayerModeMessage.State live)
     
    static void
    poll(net.minecraft.client.player.ClientInput input, Runnable livePoll)
     
    static boolean
    predicts(net.minecraft.world.entity.Entity actor)
     
    static boolean
     
    static void
    recordItemUse(net.minecraft.world.entity.Entity actor, PhysicalItemUse use)
     
    static boolean
     
    static void
    restoreGameMode(net.minecraft.world.level.GameType value)
     
    static void
    restorePermissions(net.raphimc.viabedrock.api.model.PlayerInputPermissions value)
     
    static void
    restorePlayerMode(net.raphimc.viabedrock.api.model.PlayerModeMessage.State value)
     
    static boolean
    suppressesNetwork(net.minecraft.network.Connection connection)
     

    Methods inherited from class Object

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

    • enter

      public static PhysicalReplayContext.Scope enter(net.minecraft.world.level.Level level, net.minecraft.network.Connection connection, Set<net.minecraft.world.entity.Entity> predictedActors)
    • replaying

      public static boolean replaying()
    • predicts

      public static boolean predicts(net.minecraft.world.entity.Entity actor)
    • recording

      public static boolean recording()
    • suppressesNetwork

      public static boolean suppressesNetwork(net.minecraft.network.Connection connection)
    • permissions

      public static net.raphimc.viabedrock.api.model.PlayerInputPermissions permissions(net.raphimc.viabedrock.api.model.PlayerInputPermissions live)
    • restorePermissions

      public static void restorePermissions(net.raphimc.viabedrock.api.model.PlayerInputPermissions value)
    • gameMode

      public static net.minecraft.world.level.GameType gameMode(net.minecraft.world.level.GameType live)
    • gameMode

      public static net.minecraft.world.level.GameType gameMode(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.GameType live)
    • restoreGameMode

      public static void restoreGameMode(net.minecraft.world.level.GameType value)
    • playerMode

      public static net.raphimc.viabedrock.api.model.PlayerModeMessage.State playerMode(net.raphimc.viabedrock.api.model.PlayerModeMessage.State live)
    • restorePlayerMode

      public static void restorePlayerMode(net.raphimc.viabedrock.api.model.PlayerModeMessage.State value)
    • camera

      public static net.minecraft.world.entity.Entity camera(net.minecraft.world.entity.Entity liveCamera)
    • recordItemUse

      public static void recordItemUse(net.minecraft.world.entity.Entity actor, PhysicalItemUse use)
    • itemUse

      public static PhysicalItemUse itemUse(net.minecraft.world.entity.Entity actor)
    • equipment

      public static net.minecraft.world.item.ItemStack equipment(net.minecraft.world.entity.LivingEntity actor, net.minecraft.world.entity.EquipmentSlot slot)
    • frame

      public static void frame(long frame)
    • completedFrame

      public static long completedFrame(long liveFrame)
    • gameTime

      public static Long gameTime(net.minecraft.world.level.Level level)
    • actor

      public static net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot actor(UUID uuid, Supplier<net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot> live)
    • actor

      public static void actor(UUID uuid, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot value)
    • collisions

      public static PhysicalCollisionCache collisions(net.minecraft.world.entity.Entity actor)
    • poll

      public static void poll(net.minecraft.client.player.ClientInput input, Runnable livePoll)