Package net.mcft.copy.betterstorage.attachment

Examples of net.mcft.copy.betterstorage.attachment.EnumAttachmentInteraction


    // Interact with attachments.
    if (leftClick || rightClick) {
      IHasAttachments hasAttachments =
          WorldUtils.get(world, x, y, z, IHasAttachments.class);
      if (hasAttachments != null) {
        EnumAttachmentInteraction interactionType =
            ((event.action == Action.LEFT_CLICK_BLOCK)
                ? EnumAttachmentInteraction.attack
                : EnumAttachmentInteraction.use);
        if (hasAttachments.getAttachments().interact(WorldUtils.rayTrace(player, 1.0F),
                                                     player, interactionType)) {
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.attachment.EnumAttachmentInteraction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.