com.yungnickyoung.minecraft.yungsapi.world.structure.terrainadaptation.NoneAdaptation 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.terrainadaptation;
import com.mojang.serialization.MapCodec;
public class NoneAdaptation extends EnhancedTerrainAdaptation {
private static final NoneAdaptation INSTANCE = new NoneAdaptation();
public static final MapCodec CODEC = MapCodec.unit(() -> INSTANCE);
public NoneAdaptation() {
super(0, 0, false, false);
}
@Override
public EnhancedTerrainAdaptationType> type() {
return EnhancedTerrainAdaptationType.NONE;
}
@Override
public double computeDensityFactor(int xDistance, int yDistance, int zDistance, int yDistanceToBeardBase) {
return 0;
}
}