Class PhysicalReplayContext
java.lang.Object
com.viaversion.viafabricplus.bedrock.movement.replay.PhysicalReplayContext
Historical physics runs on the client thread. Other threads retain normal network and world behavior.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshotstatic voidstatic net.minecraft.world.entity.Entitycamera(net.minecraft.world.entity.Entity liveCamera) static PhysicalCollisionCachecollisions(net.minecraft.world.entity.Entity actor) static longcompletedFrame(long liveFrame) static PhysicalReplayContext.Scopeenter(net.minecraft.world.level.Level level, net.minecraft.network.Connection connection, Set<net.minecraft.world.entity.Entity> predictedActors) static net.minecraft.world.item.ItemStackequipment(net.minecraft.world.entity.LivingEntity actor, net.minecraft.world.entity.EquipmentSlot slot) static voidframe(long frame) static net.minecraft.world.level.GameTypegameMode(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.GameType live) static net.minecraft.world.level.GameTypegameMode(net.minecraft.world.level.GameType live) static LonggameTime(net.minecraft.world.level.Level level) static PhysicalItemUseitemUse(net.minecraft.world.entity.Entity actor) static net.raphimc.viabedrock.api.model.PlayerInputPermissionspermissions(net.raphimc.viabedrock.api.model.PlayerInputPermissions live) static net.raphimc.viabedrock.api.model.PlayerModeMessage.StateplayerMode(net.raphimc.viabedrock.api.model.PlayerModeMessage.State live) static voidstatic booleanpredicts(net.minecraft.world.entity.Entity actor) static booleanstatic voidrecordItemUse(net.minecraft.world.entity.Entity actor, PhysicalItemUse use) static booleanstatic voidrestoreGameMode(net.minecraft.world.level.GameType value) static voidrestorePermissions(net.raphimc.viabedrock.api.model.PlayerInputPermissions value) static voidrestorePlayerMode(net.raphimc.viabedrock.api.model.PlayerModeMessage.State value) static booleansuppressesNetwork(net.minecraft.network.Connection connection)
-
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
-
itemUse
-
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
-
actor
-
actor
public static void actor(UUID uuid, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot value) -
collisions
-
poll
-