Package net.mcft.copy.betterstorage.attachment

Examples of net.mcft.copy.betterstorage.attachment.Attachments.interact()


 
  @Override
  public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {
    // TODO: See if we can make a pull request to Forge to get PlayerInteractEvent to fire for left click on client.
    Attachments attachments = WorldUtils.get(world, x, y, z, IHasAttachments.class).getAttachments();
    boolean abort = attachments.interact(WorldUtils.rayTrace(player, 1.0F), player, EnumAttachmentInteraction.attack);
    // TODO: Abort block breaking? playerController.resetBlockBreaking doesn't seem to do the job.
  }
 
  @Override
  public boolean hasComparatorInputOverride() { return true; }
View Full Code Here


 
  @Override
  public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {
    if (world.getBlockMetadata(x, y, z) > 0) y -= 1;
    Attachments attachments = WorldUtils.get(world, x, y, z, IHasAttachments.class).getAttachments();
    boolean abort = attachments.interact(WorldUtils.rayTrace(player, 1.0F), player, EnumAttachmentInteraction.attack);
  }
 
  @Override
  public MovingObjectPosition collisionRayTrace(World world, int x, int y, int z, Vec3 start, Vec3 end) {
    int metadata = world.getBlockMetadata(x, y, z);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.