Class AbstractVRHandTracker

java.lang.Object
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
Direct Known Subclasses:
AbstractVRHandsTracker, ArmorTracker, CauldronTracker, DoorMoveTracker, 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, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, net.minecraft.world.InteractionHand hand)
     
    protected net.minecraft.core.BlockPos
    getBlockPosAtHand(net.blf02.vrapi.api.data.IVRPlayer vrPlayer, net.minecraft.world.InteractionHand hand)
     
    protected net.minecraft.world.level.block.state.BlockState
    getBlockStateAtHand(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, 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, net.blf02.vrapi.api.data.IVRPlayer currentVRData, LastTickData lastVRData)
     
    protected abstract boolean
    shouldRunForHand(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stackInHand, net.blf02.vrapi.api.data.IVRPlayer currentVRData, LastTickData lastVRData)
     
    protected boolean
    signsMatch(double a, double b)
     
    void
    tick(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer currentVRData, LastTickData lastVRData)
     

    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, net.blf02.vrapi.api.data.IVRPlayer currentVRData, LastTickData lastVRData)
    • runForHand

      protected abstract void runForHand(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stackInHand, net.blf02.vrapi.api.data.IVRPlayer currentVRData, LastTickData lastVRData)
    • 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, net.blf02.vrapi.api.data.IVRPlayer currentVRData, LastTickData lastVRData)
    • getBlockPosAtHand

      protected net.minecraft.core.BlockPos getBlockPosAtHand(net.blf02.vrapi.api.data.IVRPlayer vrPlayer, net.minecraft.world.InteractionHand hand)
    • getBlockStateAtHand

      protected net.minecraft.world.level.block.state.BlockState getBlockStateAtHand(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, net.minecraft.world.InteractionHand hand)
    • getBlockAtHand

      protected net.minecraft.world.level.block.Block getBlockAtHand(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, 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)