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
    Modifier and Type
    Field
    Description
    final EnumMap<net.minecraft.world.InteractionHand, ChestInfo>
     
     
    static final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.Identifier
     
    boolean
    isActive(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.Vec3 handPos)
     
    boolean
    onHoldTick(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand)
     
    boolean
    onPress(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand)
     
    void
    onRelease(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand)
     
    void
     
    void
    reset(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, wait

    Methods inherited from interface org.vivecraft.api.client.InteractModule

    getPriority, swingsArm
  • Field Details

  • Constructor Details

    • ChestLidInteractModule

      public ChestLidInteractModule()
  • Method Details

    • onRelease

      public void onRelease(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand)
      Specified by:
      onRelease in interface org.vivecraft.api.client.HeldInteractModule
    • getId

      public net.minecraft.resources.Identifier getId()
      Specified by:
      getId in interface org.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:
      isActive in interface org.vivecraft.api.client.InteractModule
    • onPress

      public boolean onPress(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand)
      Specified by:
      onPress in interface org.vivecraft.api.client.InteractModule
    • onHoldTick

      public boolean onHoldTick(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand)
      Specified by:
      onHoldTick in interface org.vivecraft.api.client.HeldInteractModule
    • reset

      public void reset(net.minecraft.client.player.LocalPlayer player, net.minecraft.world.InteractionHand hand)
      Specified by:
      reset in interface org.vivecraft.api.client.InteractModule
    • removeInvalid

      public void removeInvalid()