Class AbstractVRHandTracker
java.lang.Object
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
- Direct Known Subclasses:
AbstractVRHandsTracker
,ArmorTracker
,CauldronTracker
,DoorMoveTracker
,PetTracker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
isEnabledInConfig
(ActiveConfig config) 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)
-
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
-
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)
-