2018-11-11 13:26:19 +01:00
|
|
|
package de.ellpeck.naturesaura.api.aura.chunk;
|
2018-10-25 18:49:42 +02:00
|
|
|
|
2018-11-12 01:29:33 +01:00
|
|
|
import de.ellpeck.naturesaura.api.aura.type.IAuraType;
|
2019-10-20 22:30:49 +02:00
|
|
|
import net.minecraft.entity.player.PlayerEntity;
|
2019-02-09 21:55:40 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
2018-11-13 11:39:28 +01:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
2018-10-25 18:49:42 +02:00
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
import net.minecraft.world.chunk.Chunk;
|
|
|
|
|
|
|
|
public interface IDrainSpotEffect {
|
|
|
|
|
2018-12-02 01:36:41 +01:00
|
|
|
void update(World world, Chunk chunk, IAuraChunk auraChunk, BlockPos pos, Integer spot);
|
2018-10-25 18:49:42 +02:00
|
|
|
|
2018-11-13 18:21:41 +01:00
|
|
|
boolean appliesHere(Chunk chunk, IAuraChunk auraChunk, IAuraType type);
|
2018-11-13 11:39:28 +01:00
|
|
|
|
|
|
|
ResourceLocation getName();
|
2019-02-09 21:55:40 +01:00
|
|
|
|
2020-01-23 16:05:52 +01:00
|
|
|
default ActiveType isActiveHere(PlayerEntity player, Chunk chunk, IAuraChunk auraChunk, BlockPos pos, Integer spot) {
|
|
|
|
return ActiveType.INACTIVE;
|
2019-02-09 21:55:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
default ItemStack getDisplayIcon() {
|
|
|
|
return ItemStack.EMPTY;
|
|
|
|
}
|
2020-01-23 16:05:52 +01:00
|
|
|
|
|
|
|
public enum ActiveType {
|
|
|
|
INACTIVE, INHIBITED, ACTIVE
|
|
|
|
}
|
2018-10-25 18:49:42 +02:00
|
|
|
}
|