A B C D G I L P R S U V W X 
All Classes All Packages

A

ActionType - Enum in xyz.tehbrian.restrictionhelper
Various types of actions that a player can perform.
ALL - xyz.tehbrian.restrictionhelper.ActionType
Wildcard.

B

BREAK - xyz.tehbrian.restrictionhelper.ActionType
Breaking a block.

C

check(Player, Location, ActionType) - Method in class xyz.tehbrian.restrictionhelper.Restriction
Checks whether player has sufficient permission to perform action at loc.
check(Player, Location, ActionType) - Method in class xyz.tehbrian.restrictionhelper.restrictions.PlotSquaredRestriction
 
check(Player, Location, ActionType) - Method in class xyz.tehbrian.restrictionhelper.restrictions.WorldGuardRestriction
 
checkRestrictions(Player, Location, ActionType) - Method in class xyz.tehbrian.restrictionhelper.RestrictionHelper
Checks whether player has sufficient permission to perform action at loc according to all registered restrictions.

D

debugLogger - Variable in class xyz.tehbrian.restrictionhelper.Restriction
The DebugLogger which will be used to log whether a check fails or passes, and why.
DebugLogger - Class in xyz.tehbrian.restrictionhelper
A small class to make debug logging easier.
DebugLogger(Logger) - Constructor for class xyz.tehbrian.restrictionhelper.DebugLogger
Creates a DebugLogger using logger as the internal Logger.

G

getDebugLogger() - Method in class xyz.tehbrian.restrictionhelper.RestrictionHelper
Gets the DebugLogger constructed with the Logger provided to RestrictionHelper(Logger).
getPrefix() - Method in class xyz.tehbrian.restrictionhelper.DebugLogger
Get the prefix to be prepended to the debug message.
getRegisteredRestrictions() - Method in class xyz.tehbrian.restrictionhelper.RestrictionHelper
Gets the internal list of registered restrictions.

I

INTERACT - xyz.tehbrian.restrictionhelper.ActionType
Non-destructively interacting with a block.
isDebug() - Method in class xyz.tehbrian.restrictionhelper.DebugLogger
Get whether attempted debug logs will be logged via DebugLogger.logger.

L

log(String) - Method in class xyz.tehbrian.restrictionhelper.DebugLogger
Logs a message using DebugLogger.logger if DebugLogger.debug is true.
log(String, Object...) - Method in class xyz.tehbrian.restrictionhelper.DebugLogger
Convenience method which applies String.format(String, Object...) onto a message before passing it to DebugLogger.log(String).

P

PLACE - xyz.tehbrian.restrictionhelper.ActionType
Placing a block.
PlotSquaredRestriction - Class in xyz.tehbrian.restrictionhelper.restrictions
 
PlotSquaredRestriction(DebugLogger) - Constructor for class xyz.tehbrian.restrictionhelper.restrictions.PlotSquaredRestriction
 

R

registerRestriction(Restriction) - Method in class xyz.tehbrian.restrictionhelper.RestrictionHelper
Registers a restriction to be checked against.
Restriction - Class in xyz.tehbrian.restrictionhelper
The abstract class which all restrictions must extend.
Restriction(DebugLogger) - Constructor for class xyz.tehbrian.restrictionhelper.Restriction
 
RestrictionHelper - Class in xyz.tehbrian.restrictionhelper
The main class for use in interacting with RestrictionHelper.
RestrictionHelper(Logger) - Constructor for class xyz.tehbrian.restrictionhelper.RestrictionHelper
Creates an instance of RestrictionHelper with a DebugLogger constructed with logger.

S

setDebug(boolean) - Method in class xyz.tehbrian.restrictionhelper.DebugLogger
Set whether attempted debug logs will be logged via DebugLogger.logger.
setPrefix(String) - Method in class xyz.tehbrian.restrictionhelper.DebugLogger
Set the prefix to be prepended to the debug message.

U

unregisterRestriction(Restriction) - Method in class xyz.tehbrian.restrictionhelper.RestrictionHelper
Unregisters a restriction.

V

valueOf(String) - Static method in enum xyz.tehbrian.restrictionhelper.ActionType
Returns the enum constant of this type with the specified name.
values() - Static method in enum xyz.tehbrian.restrictionhelper.ActionType
Returns an array containing the constants of this enum type, in the order they are declared.

W

WorldGuardRestriction - Class in xyz.tehbrian.restrictionhelper.restrictions
 
WorldGuardRestriction(DebugLogger) - Constructor for class xyz.tehbrian.restrictionhelper.restrictions.WorldGuardRestriction
 

X

xyz.tehbrian.restrictionhelper - package xyz.tehbrian.restrictionhelper
Top-level package containing all code for RestrictionHelper.
xyz.tehbrian.restrictionhelper.restrictions - package xyz.tehbrian.restrictionhelper.restrictions
Built-in restrictions for ease of use.
A B C D G I L P R S U V W X 
All Classes All Packages