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;
|
2023-06-27 10:40:31 +02:00
|
|
|
import de.ellpeck.naturesaura.chunk.AuraChunk;
|
2021-12-04 15:40:09 +01:00
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
import net.minecraft.resources.ResourceLocation;
|
|
|
|
import net.minecraft.world.entity.player.Player;
|
|
|
|
import net.minecraft.world.item.ItemStack;
|
|
|
|
import net.minecraft.world.level.Level;
|
|
|
|
import net.minecraft.world.level.chunk.LevelChunk;
|
2018-10-25 18:49:42 +02:00
|
|
|
|
|
|
|
public interface IDrainSpotEffect {
|
|
|
|
|
2023-06-27 10:40:31 +02:00
|
|
|
void update(Level level, LevelChunk chunk, IAuraChunk auraChunk, BlockPos pos, Integer spot, AuraChunk.DrainSpot actualSpot);
|
2018-10-25 18:49:42 +02:00
|
|
|
|
2021-12-04 15:40:09 +01:00
|
|
|
boolean appliesHere(LevelChunk chunk, IAuraChunk auraChunk, IAuraType type);
|
2018-11-13 11:39:28 +01:00
|
|
|
|
|
|
|
ResourceLocation getName();
|
2019-02-09 21:55:40 +01:00
|
|
|
|
2021-12-04 15:40:09 +01:00
|
|
|
default ActiveType isActiveHere(Player player, LevelChunk chunk, IAuraChunk auraChunk, BlockPos pos, Integer spot) {
|
2020-01-23 16:05:52 +01:00
|
|
|
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
|
|
|
|
2022-06-27 15:24:04 +02:00
|
|
|
enum ActiveType {
|
2020-01-23 16:05:52 +01:00
|
|
|
INACTIVE, INHIBITED, ACTIVE
|
|
|
|
}
|
2018-10-25 18:49:42 +02:00
|
|
|
}
|