Class AbstractVRHandTracker

java.lang.Object
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
Direct Known Subclasses:
AbstractVRHandsTracker, ArmorTracker, CauldronTracker, PetTracker

public abstract class AbstractVRHandTracker extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected net.minecraft.world.level.block.Block
    getBlockAtHand(net.minecraft.world.entity.player.Player player, org.vivecraft.api.data.VRPose vrPose, net.minecraft.world.InteractionHand hand)
     
    protected net.minecraft.core.BlockPos
    getBlockPosAtHand(org.vivecraft.api.data.VRPose vrPose, net.minecraft.world.InteractionHand hand)
     
    protected net.minecraft.world.level.block.state.BlockState
    getBlockStateAtHand(net.minecraft.world.entity.player.Player player, org.vivecraft.api.data.VRPose vrPose, net.minecraft.world.InteractionHand hand)
     
    abstract boolean
     
    protected boolean
    movingInDirectionWithThreshold(net.minecraft.core.Direction direction, net.minecraft.world.phys.Vec3 handVelocity, double threshold)
     
    void
    preTick(net.minecraft.world.entity.player.Player player)
     
    protected abstract void
    runForHand(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stackInHand, org.vivecraft.api.data.VRPose currentVRData)
     
    protected abstract boolean
    shouldRunForHand(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stackInHand, org.vivecraft.api.data.VRPose currentVRPose)
     
    protected boolean
    signsMatch(double a, double b)
     
    void
    tick(net.minecraft.world.entity.player.Player player, org.vivecraft.api.data.VRPose currentVRPose)
     

    Methods inherited from class java.lang.Object

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

    • AbstractVRHandTracker

      public AbstractVRHandTracker()
  • Method Details

    • shouldRunForHand

      protected abstract boolean shouldRunForHand(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stackInHand, org.vivecraft.api.data.VRPose currentVRPose)
    • runForHand

      protected abstract void runForHand(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stackInHand, org.vivecraft.api.data.VRPose currentVRData)
    • isEnabledInConfig

      public abstract boolean isEnabledInConfig(ActiveConfig config)
    • preTick

      public void preTick(net.minecraft.world.entity.player.Player player)
    • tick

      public void tick(net.minecraft.world.entity.player.Player player, org.vivecraft.api.data.VRPose currentVRPose)
    • getBlockPosAtHand

      protected net.minecraft.core.BlockPos getBlockPosAtHand(org.vivecraft.api.data.VRPose vrPose, net.minecraft.world.InteractionHand hand)
    • getBlockStateAtHand

      protected net.minecraft.world.level.block.state.BlockState getBlockStateAtHand(net.minecraft.world.entity.player.Player player, org.vivecraft.api.data.VRPose vrPose, net.minecraft.world.InteractionHand hand)
    • getBlockAtHand

      protected net.minecraft.world.level.block.Block getBlockAtHand(net.minecraft.world.entity.player.Player player, org.vivecraft.api.data.VRPose vrPose, net.minecraft.world.InteractionHand hand)
    • movingInDirectionWithThreshold

      protected boolean movingInDirectionWithThreshold(net.minecraft.core.Direction direction, net.minecraft.world.phys.Vec3 handVelocity, double threshold)
    • signsMatch

      protected boolean signsMatch(double a, double b)