Class BedrockInputPermissions
java.lang.Object
com.viaversion.viafabricplus.bedrock.input.BedrockInputPermissions
Connection-scoped permissions also work when ViaBedrock runs remotely in ViaProxy.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccept(net.raphimc.viabedrock.api.model.PlayerInputPermissions value) static booleanactive()static voidcapture(net.minecraft.world.entity.player.Input input) static voidclear()static net.raphimc.viabedrock.api.model.PlayerInputPermissionscurrent()static net.minecraft.world.entity.player.Inputfilter(net.minecraft.world.entity.player.Input input, boolean passenger) static booleanDirect sessions are known before the first snapshot; ViaProxy advertises them through the core channel.static net.minecraft.world.phys.Vec2movement(net.minecraft.world.entity.player.Input input) static net.raphimc.viabedrock.api.model.PlayerInputsample(net.minecraft.world.entity.player.Input input)
-
Method Details
-
current
public static net.raphimc.viabedrock.api.model.PlayerInputPermissions current() -
active
public static boolean active() -
isBedrockConnection
public static boolean isBedrockConnection()Direct sessions are known before the first snapshot; ViaProxy advertises them through the core channel. -
accept
public static void accept(net.raphimc.viabedrock.api.model.PlayerInputPermissions value) -
clear
public static void clear() -
sample
public static net.raphimc.viabedrock.api.model.PlayerInput sample(net.minecraft.world.entity.player.Input input) -
capture
public static void capture(net.minecraft.world.entity.player.Input input) -
filter
public static net.minecraft.world.entity.player.Input filter(net.minecraft.world.entity.player.Input input, boolean passenger) -
movement
public static net.minecraft.world.phys.Vec2 movement(net.minecraft.world.entity.player.Input input)
-