Class AbstractVRHandsTracker
java.lang.Object
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandsTracker
- Direct Known Subclasses:
FeedAnimalsTracker
Hacked extends of AbstractVRHandTracker that's intended to be used for both hands instead of one
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
run
(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) protected 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
shouldRun
(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) protected 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) void
tick
(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) Methods inherited from class com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
getBlockAtHand, getBlockPosAtHand, getBlockStateAtHand, isEnabledInConfig, movingInDirectionWithThreshold, preTick, signsMatch
-
Constructor Details
-
AbstractVRHandsTracker
public AbstractVRHandsTracker()
-
-
Method Details
-
shouldRunForHand
protected 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) - Specified by:
shouldRunForHand
in classAbstractVRHandTracker
-
runForHand
protected 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) - Specified by:
runForHand
in classAbstractVRHandTracker
-
shouldRun
protected abstract boolean shouldRun(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) -
run
protected abstract void run(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) -
tick
public void tick(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) - Overrides:
tick
in classAbstractVRHandTracker
-