Examples of EnumLockInteraction


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
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.