Class AbstractVRHandTracker
java.lang.Object
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
- Direct Known Subclasses:
AbstractVRHandsTracker,ArmorTracker,CauldronTracker,PetTracker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.level.block.BlockgetBlockAtHand(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, net.minecraft.world.InteractionHand hand) protected net.minecraft.core.BlockPosgetBlockPosAtHand(net.blf02.vrapi.api.data.IVRPlayer vrPlayer, net.minecraft.world.InteractionHand hand) protected net.minecraft.world.level.block.state.BlockStategetBlockStateAtHand(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, net.minecraft.world.InteractionHand hand) abstract booleanisEnabledInConfig(ActiveConfig config) protected booleanmovingInDirectionWithThreshold(net.minecraft.core.Direction direction, net.minecraft.world.phys.Vec3 handVelocity, double threshold) voidpreTick(net.minecraft.world.entity.player.Player player) protected abstract voidrunForHand(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 booleanshouldRunForHand(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 booleansignsMatch(double a, double b) voidtick(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)
-