Class FeedAnimalsTracker
java.lang.Object
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandsTracker
com.hammy275.immersivemc.server.tracker.vrhand.FeedAnimalsTracker
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.minecraft.world.entity.animal.Animal>
getLivingNearby
(net.minecraft.world.entity.player.Player player) static net.minecraft.world.phys.AABB
getMouthHitbox
(net.minecraft.world.entity.LivingEntity entity) boolean
isEnabledInConfig
(ActiveConfig config) protected void
run
(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) protected boolean
shouldRun
(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.AbstractVRHandsTracker
runForHand, shouldRunForHand, tick
Methods inherited from class com.hammy275.immersivemc.server.tracker.vrhand.AbstractVRHandTracker
getBlockAtHand, getBlockPosAtHand, getBlockStateAtHand, movingInDirectionWithThreshold, preTick, signsMatch
-
Field Details
-
COOLDOWN_TICKS
public static final int COOLDOWN_TICKS- See Also:
-
cooldown
-
-
Constructor Details
-
FeedAnimalsTracker
public FeedAnimalsTracker()
-
-
Method Details
-
isEnabledInConfig
- Specified by:
isEnabledInConfig
in classAbstractVRHandTracker
-
shouldRun
protected boolean shouldRun(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) - Specified by:
shouldRun
in classAbstractVRHandsTracker
-
run
protected void run(net.minecraft.world.entity.player.Player player, net.blf02.vrapi.api.data.IVRPlayer vrPlayer, LastTickData lastVRData) - Specified by:
run
in classAbstractVRHandsTracker
-
getMouthHitbox
public static net.minecraft.world.phys.AABB getMouthHitbox(net.minecraft.world.entity.LivingEntity entity) -
getLivingNearby
public static List<net.minecraft.world.entity.animal.Animal> getLivingNearby(net.minecraft.world.entity.player.Player player)
-