mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Javadocs, added Lighting to the damage types affected by Shock Proof
This commit is contained in:
parent
5ba9fb78fd
commit
ab138bdba2
@ -100,14 +100,15 @@ public class TamingManager {
|
|||||||
environmentallyAware(event, cause);
|
environmentallyAware(event, cause);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FIRE_TICK:
|
|
||||||
case ENTITY_ATTACK:
|
case ENTITY_ATTACK:
|
||||||
|
case FIRE_TICK:
|
||||||
case PROJECTILE:
|
case PROJECTILE:
|
||||||
thickFur(event, cause);
|
thickFur(event, cause);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ENTITY_EXPLOSION:
|
|
||||||
case BLOCK_EXPLOSION:
|
case BLOCK_EXPLOSION:
|
||||||
|
case ENTITY_EXPLOSION:
|
||||||
|
case LIGHTNING:
|
||||||
shockProof(event);
|
shockProof(event);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -130,6 +131,11 @@ public class TamingManager {
|
|||||||
callOfTheWild(EntityType.WOLF, configInstance.getTamingCOTWWolfCost());
|
callOfTheWild(EntityType.WOLF, configInstance.getTamingCOTWWolfCost());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle the Beast Lore ability.
|
||||||
|
*
|
||||||
|
* @param livingEntity The entity to examine
|
||||||
|
*/
|
||||||
public void beastLore(LivingEntity livingEntity) {
|
public void beastLore(LivingEntity livingEntity) {
|
||||||
if (!permissionsInstance.beastLore(player)) {
|
if (!permissionsInstance.beastLore(player)) {
|
||||||
return;
|
return;
|
||||||
@ -140,6 +146,12 @@ public class TamingManager {
|
|||||||
eventHandler.sendInspectMessage();
|
eventHandler.sendInspectMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle the Call of the Wild ability.
|
||||||
|
*
|
||||||
|
* @param type The type of entity to summon.
|
||||||
|
* @param summonAmount The amount of material needed to summon the entity
|
||||||
|
*/
|
||||||
private void callOfTheWild(EntityType type, int summonAmount) {
|
private void callOfTheWild(EntityType type, int summonAmount) {
|
||||||
if (!permissionsInstance.callOfTheWild(player)) {
|
if (!permissionsInstance.callOfTheWild(player)) {
|
||||||
return;
|
return;
|
||||||
@ -166,6 +178,12 @@ public class TamingManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle the Environmentally Aware ability.
|
||||||
|
*
|
||||||
|
* @param event The event to modify
|
||||||
|
* @param cause The damage cause of the event
|
||||||
|
*/
|
||||||
private void environmentallyAware(EntityDamageEvent event, DamageCause cause) {
|
private void environmentallyAware(EntityDamageEvent event, DamageCause cause) {
|
||||||
if (!permissionsInstance.environmentallyAware(player)) {
|
if (!permissionsInstance.environmentallyAware(player)) {
|
||||||
return;
|
return;
|
||||||
@ -192,6 +210,12 @@ public class TamingManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle the Thick Fur ability.
|
||||||
|
*
|
||||||
|
* @param event The event to modify
|
||||||
|
* @param cause The damage cause of the event
|
||||||
|
*/
|
||||||
private void thickFur(EntityDamageEvent event, DamageCause cause) {
|
private void thickFur(EntityDamageEvent event, DamageCause cause) {
|
||||||
if (!permissionsInstance.thickFur(player)) {
|
if (!permissionsInstance.thickFur(player)) {
|
||||||
return;
|
return;
|
||||||
@ -204,6 +228,11 @@ public class TamingManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle the Shock Proof ability.
|
||||||
|
*
|
||||||
|
* @param event The event to modify
|
||||||
|
*/
|
||||||
private void shockProof(EntityDamageEvent event) {
|
private void shockProof(EntityDamageEvent event) {
|
||||||
if (!permissionsInstance.shockProof(player)) {
|
if (!permissionsInstance.shockProof(player)) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user