Interface VRPlayerDataProvider
- All Known Implementing Classes:
VisorVRPlayerDataProvider,VivecraftVRPlayerDataProvider
public interface VRPlayerDataProvider
-
Method Summary
Modifier and TypeMethodDescriptiongetPoseHistory(net.minecraft.world.entity.player.Player player) @Nullable VRPosegetVrPose(net.minecraft.world.entity.player.Player player) Retrieves the VR player data for the given player.booleanisVRPlayer(net.minecraft.world.entity.player.Player player) Checks if the given player is a VR player.
-
Method Details
-
getVrPose
Retrieves the VR player data for the given player.- Parameters:
player- the player to retrieve the VR player data for- Returns:
- the VR player data, or
nullif the player is not a VR player
-
isVRPlayer
boolean isVRPlayer(net.minecraft.world.entity.player.Player player) Checks if the given player is a VR player.- Parameters:
player- the player to check- Returns:
trueif the player is a VR player,falseotherwise
-
getPoseHistory
-