Class DoorMoveTracker
java.lang.Object
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
com.hammy275.immersivemc.server.tracker.vrhand.DoorMoveTracker
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.core.Direction
getDirectionToMove
(net.minecraft.world.level.block.state.BlockState state) boolean
isEnabledInConfig
(ActiveConfig config) void
preTick
(net.minecraft.world.entity.player.Player player) 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 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) Methods inherited from class com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
getBlockAtHand, getBlockPosAtHand, getBlockStateAtHand, movingInDirectionWithThreshold, signsMatch, tick
-
Field Details
-
THRESHOLD
public static final double THRESHOLD- See Also:
-
cooldown
-
-
Constructor Details
-
DoorMoveTracker
public DoorMoveTracker()
-
-
Method Details
-
preTick
public void preTick(net.minecraft.world.entity.player.Player player) - Overrides:
preTick
in classAbstractVRHandTracker
-
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
-
isEnabledInConfig
- Specified by:
isEnabledInConfig
in classAbstractVRHandTracker
-
getDirectionToMove
public static net.minecraft.core.Direction getDirectionToMove(net.minecraft.world.level.block.state.BlockState state)
-