com.yungnickyoung.minecraft.yungsapi.world.structure.condition.StructureCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of YungsApi-1.21-Fabric Show documentation
Show all versions of YungsApi-1.21-Fabric Show documentation
A common API for YUNG's Minecraft mods
The newest version!
package com.yungnickyoung.minecraft.yungsapi.world.structure.condition;
import com.yungnickyoung.minecraft.yungsapi.world.structure.context.StructureContext;
/**
* A serializable class used for checking specific parameters during world generation.
* Can be used for jigsaw pieces as well as processors.
*/
public abstract class StructureCondition {
public static final StructureCondition ALWAYS_TRUE = new AlwaysTrueCondition();
abstract public StructureConditionType> type();
abstract public boolean passes(StructureContext ctx);
}