Class ChestLidInteractModule
java.lang.Object
com.hammy275.immersivemc.client.interact_module.ChestLidInteractModule
- All Implemented Interfaces:
org.vivecraft.api.client.HeldInteractModule, org.vivecraft.api.client.InteractModule
public class ChestLidInteractModule
extends Object
implements org.vivecraft.api.client.HeldInteractModule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.IdentifiergetId()booleanisActive(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 handPos) booleanonHoldTick(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand) booleanonPress(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand) voidonRelease(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand) voidvoidreset(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vivecraft.api.client.InteractModule
getPriority, swingsArm
-
Field Details
-
INSTANCE
-
OPEN_THRESHOLD
public static final double OPEN_THRESHOLD- See Also:
-
activeChests
-
-
Constructor Details
-
ChestLidInteractModule
public ChestLidInteractModule()
-
-
Method Details
-
onRelease
public void onRelease(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand) - Specified by:
onReleasein interfaceorg.vivecraft.api.client.HeldInteractModule
-
getId
public net.minecraft.resources.Identifier getId()- Specified by:
getIdin interfaceorg.vivecraft.api.client.InteractModule
-
isActive
public boolean isActive(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 handPos) - Specified by:
isActivein interfaceorg.vivecraft.api.client.InteractModule
-
onPress
public boolean onPress(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand) - Specified by:
onPressin interfaceorg.vivecraft.api.client.InteractModule
-
onHoldTick
public boolean onHoldTick(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand) - Specified by:
onHoldTickin interfaceorg.vivecraft.api.client.HeldInteractModule
-
reset
public void reset(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand) - Specified by:
resetin interfaceorg.vivecraft.api.client.InteractModule
-
removeInvalid
public void removeInvalid()
-