mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
26 lines
477 B
Java
26 lines
477 B
Java
package minetweaker.api.block;
|
|
|
|
import java.util.List;
|
|
|
|
import stanhebben.zenscript.annotations.*;
|
|
|
|
/**
|
|
* @author Stan
|
|
*/
|
|
@ZenClass("minetweaker.block.IBlockPattern")
|
|
public interface IBlockPattern {
|
|
|
|
@ZenMethod("blocks")
|
|
List<IBlock> getBlocks();
|
|
|
|
@ZenOperator(OperatorType.CONTAINS)
|
|
boolean matches(IBlock block);
|
|
|
|
@ZenOperator(OperatorType.OR)
|
|
IBlockPattern or(IBlockPattern pattern);
|
|
|
|
@ZenGetter("displayName")
|
|
String getDisplayName();
|
|
|
|
}
|