Class VisorVRPlayerDataProvider
java.lang.Object
net.timtaran.interactivemc.bridge.vr.visor.VisorVRPlayerDataProvider
- All Implemented Interfaces:
VRPlayerDataProvider
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
VisorVRPlayerDataProvider
public VisorVRPlayerDataProvider()
-
-
Method Details
-
getVrPose
Description copied from interface:VRPlayerDataProviderRetrieves the VR player data for the given player.- Specified by:
getVrPosein interfaceVRPlayerDataProvider- 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
public boolean isVRPlayer(net.minecraft.world.entity.player.Player player) Description copied from interface:VRPlayerDataProviderChecks if the given player is a VR player.- Specified by:
isVRPlayerin interfaceVRPlayerDataProvider- Parameters:
player- the player to check- Returns:
trueif the player is a VR player,falseotherwise
-
getPoseHistory
- Specified by:
getPoseHistoryin interfaceVRPlayerDataProvider
-