| Package | Description |
|---|---|
| de.pheasn.blockown | |
| de.pheasn.blockown.protection |
| Modifier and Type | Field and Description |
|---|---|
static Material |
Material.ANY |
| Modifier and Type | Method and Description |
|---|---|
Material |
OwnedEntity.getMaterial() |
Material |
OwnedBlock.getMaterial() |
Material |
Ownable.getMaterial()
Returns the Material of the Ownable.
|
static Material |
Material.parseMaterial(String materialName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
User.hasAccess(Material material,
User owner) |
boolean |
User.hasLocked(Material material) |
boolean |
User.hasProtected(Material material) |
boolean |
BlockOwn.isOwnEnabled(Material material) |
static OwnedBlock |
OwnedBlock.newInstance(String worldName,
int x,
int y,
int z,
Material material)
Creates a new OwnedBlock instance.
|
static OwnedEntity |
OwnedEntity.newInstance(UUID id,
String worldName,
Material material)
Creates a new OwnedEntity instance.
|
| Modifier and Type | Method and Description |
|---|---|
Material |
ProtectAction.getMaterial() |
| Modifier and Type | Method and Description |
|---|---|
Set<Material> |
Protection.getLocks(User owner)
Gets an immutable Set of locked materials for a user
|
Set<Material> |
Protection.getProtections(User owner)
Gets an immutable Set of protected materials for a user
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Protection.hasAccess(User owner,
Material material,
User user)
Checks whether a user can access an Ownable consisting of the specified material that is owned by the specified owner.
|
boolean |
Protection.isLocked(User owner,
Material material)
Checks whether the user has locked the access to the material
|
boolean |
Protection.isProtected(User owner,
Material material)
Checks whether the material is protected
|
ProtectAction.Builder |
ProtectAction.Builder.lock(Material material) |
ProtectAction.Builder |
ProtectAction.Builder.protect(Material material) |
ProtectAction.Builder |
ProtectAction.Builder.unlock(Material material) |
ProtectAction.Builder |
ProtectAction.Builder.unprotect(Material material) |
Copyright © 2015. All rights reserved.