mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-28 15:36:17 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
79fe543ef8
commit
da6558839a
284 files changed
+4465
-4782
No files matched your search
@@ -1,16 +1,16 @@
|
||||
package makeo.gadomancy.api;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.ChunkCoordinates;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
* This class is part of the Gadomancy Mod Gadomancy is Open Source and distributed under the GNU LESSER GENERAL PUBLIC
|
||||
* LICENSE for more read the LICENSE file
|
||||
*
|
||||
* Created by HellFirePvP @ 17.11.2015 14:36
|
||||
*/
|
||||
@@ -19,11 +19,11 @@ public abstract class AuraEffect {
|
||||
/**
|
||||
* Return the EffectType you want to use here.
|
||||
*
|
||||
* EffectType.ENTITY_EFFECT selects entities within {@link AuraEffect#getRange()}
|
||||
* range and fires the Entity-related methods
|
||||
* EffectType.ENTITY_EFFECT selects entities within {@link AuraEffect#getRange()} range and fires the Entity-related
|
||||
* methods
|
||||
*
|
||||
* EffectType.BLOCK_EFFECT selects random locations within {@link #getRange()}
|
||||
* range and fires {@link #doBlockEffect(net.minecraft.util.ChunkCoordinates, net.minecraft.util.ChunkCoordinates, net.minecraft.world.World)}
|
||||
* EffectType.BLOCK_EFFECT selects random locations within {@link #getRange()} range and fires
|
||||
* {@link #doBlockEffect(net.minecraft.util.ChunkCoordinates, net.minecraft.util.ChunkCoordinates, net.minecraft.world.World)}
|
||||
*
|
||||
* Returning null will cause BOTH effects to happen and thus, both should be implemented.
|
||||
*/
|
||||
@@ -33,7 +33,8 @@ public abstract class AuraEffect {
|
||||
* Only fired when {@link #getEffectType()} returns {@link makeo.gadomancy.api.AuraEffect.EffectType#ENTITY_EFFECT}
|
||||
*
|
||||
* @param e an entity to check if it should be handled.
|
||||
* @return if the entity should be handled with {@link #doEntityEffect(net.minecraft.util.ChunkCoordinates, net.minecraft.entity.Entity)}
|
||||
* @return if the entity should be handled with
|
||||
* {@link #doEntityEffect(net.minecraft.util.ChunkCoordinates, net.minecraft.entity.Entity)}
|
||||
*/
|
||||
public abstract boolean isEntityApplicable(Entity e);
|
||||
|
||||
@@ -42,7 +43,7 @@ public abstract class AuraEffect {
|
||||
* Do the actual effect on the Entity here.
|
||||
*
|
||||
* @param originTile where the master tile of the aura pylon is.
|
||||
* @param e an entity where {@link #isEntityApplicable(net.minecraft.entity.Entity)} returned true
|
||||
* @param e an entity where {@link #isEntityApplicable(net.minecraft.entity.Entity)} returned true
|
||||
*/
|
||||
public abstract void doEntityEffect(ChunkCoordinates originTile, Entity e);
|
||||
|
||||
@@ -58,9 +59,9 @@ public abstract class AuraEffect {
|
||||
* Only fired when {@link #getEffectType()} returns {@link makeo.gadomancy.api.AuraEffect.EffectType#BLOCK_EFFECT}
|
||||
* Do the actual effect on a block here.
|
||||
*
|
||||
* @param originTile where the master tile of the aura pylon is.
|
||||
* @param originTile where the master tile of the aura pylon is.
|
||||
* @param selectedBlock a selected block
|
||||
* @param world world of the tile and the block
|
||||
* @param world world of the tile and the block
|
||||
*/
|
||||
public abstract void doBlockEffect(ChunkCoordinates originTile, ChunkCoordinates selectedBlock, World world);
|
||||
|
||||
@@ -74,10 +75,8 @@ public abstract class AuraEffect {
|
||||
/**
|
||||
* Get the range of the aura pylon's effect
|
||||
*
|
||||
* Defines
|
||||
* - the range where entities are collected around the pylon.
|
||||
* - the range where blocks are collected around the pylon.
|
||||
* - how close the player has to be to get the aura's research
|
||||
* Defines - the range where entities are collected around the pylon. - the range where blocks are collected around
|
||||
* the pylon. - how close the player has to be to get the aura's research
|
||||
*/
|
||||
public double getRange() {
|
||||
return 8;
|
||||
|
||||
Reference in new issue
Block a user