Package net.mcft.copy.betterstorage.api.lock

Examples of net.mcft.copy.betterstorage.api.lock.EnumLockInteraction


  @Override
  public void onUnlock(ItemStack lock, ItemStack key, ILockable lockable,
                       EntityPlayer player, boolean success) {
    if (success) return;
    // Power is 2 when a key was used to open the lock, 1 otherwise.
    EnumLockInteraction interaction = ((key != null) ? EnumLockInteraction.PICK : EnumLockInteraction.OPEN);
    applyEffects(lock, lockable, player, interaction);
  }
View Full Code Here

TOP

Related Classes of net.mcft.copy.betterstorage.api.lock.EnumLockInteraction

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.