API/CanTriggerInterface
Code Snapshot for the CanTriggerInterface
Subject to change till 0.4.0 and again till release: The interfaces will get changed slightly.
package asofold.admittance.interfaces; import org.bukkit.block.Block; import org.bukkit.entity.Player; /** * This interface allows for providing information about blocks to the admittance-plugin, in terms of "may trigger levers, buttons, doors on this block...". * These hecks will be called on placing or changing signs, not on interaction wit an already placed sign (!). * * @attention this will only be used for checks for blocks orthogonal to the block the sign is attached to, in case of doors this might trigger a door-part above or underneath, that is on ground where the player is not allowed to trigger. * @author dummy * */ public interface CanTriggerInterface extends PublicInterface{ public boolean canTriggerBlock(Player player, Block block); }
Comments