NaturesAura/src/main/java/de/ellpeck/naturesaura/api/aura/chunk/IDrainSpotEffect.java
2020-01-23 16:05:52 +01:00

31 lines
908 B
Java

package de.ellpeck.naturesaura.api.aura.chunk;
import de.ellpeck.naturesaura.api.aura.type.IAuraType;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
public interface IDrainSpotEffect {
void update(World world, Chunk chunk, IAuraChunk auraChunk, BlockPos pos, Integer spot);
boolean appliesHere(Chunk chunk, IAuraChunk auraChunk, IAuraType type);
ResourceLocation getName();
default ActiveType isActiveHere(PlayerEntity player, Chunk chunk, IAuraChunk auraChunk, BlockPos pos, Integer spot) {
return ActiveType.INACTIVE;
}
default ItemStack getDisplayIcon() {
return ItemStack.EMPTY;
}
public enum ActiveType {
INACTIVE, INHIBITED, ACTIVE
}
}