NaturesAura/src/main/java/de/ellpeck/naturesaura/api/multiblock/IMultiblock.java

38 lines
738 B
Java
Raw Normal View History

package de.ellpeck.naturesaura.api.multiblock;
2021-12-04 15:40:09 +01:00
import net.minecraft.core.BlockPos;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.Level;
import java.util.Map;
import java.util.function.BiFunction;
public interface IMultiblock {
2021-12-04 15:40:09 +01:00
boolean isComplete(Level level, BlockPos center);
boolean forEach(BlockPos center, char c, BiFunction<BlockPos, Matcher, Boolean> function);
BlockPos getStart(BlockPos center);
char getChar(BlockPos offset);
ResourceLocation getName();
Map<BlockPos, Matcher> getMatchers();
int getWidth();
int getHeight();
int getDepth();
int getXOffset();
int getYOffset();
int getZOffset();
char[][][] getRawPattern();
}