All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yungnickyoung.minecraft.yungsapi.world.structure.terrainadaptation.NoneAdaptation Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy