classpublicPriority 3
ConstantThicknessLayer
com.hypixel.hytale.builtin.hytalegenerator.materialproviders.spaceanddepth.layers.ConstantThicknessLayer
extends SpaceAndDepthMaterialProvider.Layer
1
Methods
1
Public Methods
2
Fields
1
Constructors
Constructors
public
ConstantThicknessLayer(int thickness, MaterialProvider<V> materialProvider)Methods
Public Methods (1)
public
MaterialProvider<V> getMaterialProvider()@Nullable@Override
Fields
Private/Package Fields (2)
private
MaterialProvider<V> materialProviderprivate
int thicknessInheritance
Parent
Current
Interface
Child
Use mouse wheel to zoom, drag to pan. Click nodes to navigate.
Related Classes
Source Code
package com.hypixel.hytale.builtin.hytalegenerator.materialproviders.spaceanddepth.layers;
import com.hypixel.hytale.builtin.hytalegenerator.materialproviders.MaterialProvider;
import com.hypixel.hytale.builtin.hytalegenerator.materialproviders.spaceanddepth.SpaceAndDepthMaterialProvider;
import javax.annotation.Nullable;
public class ConstantThicknessLayer<V> extends SpaceAndDepthMaterialProvider.Layer<V> {
private final int thickness;
@Nullable
private final MaterialProvider<V> materialProvider;
public ConstantThicknessLayer(int thickness, @Nullable MaterialProvider<V> materialProvider) {
this.thickness = thickness;
this.materialProvider = materialProvider;
}
@Override
public int getThicknessAt(
int x, int y, int z, int depthIntoFloor, int depthIntoCeiling, int spaceAboveFloor, int spaceBelowCeiling, double distanceTOBiomeEdge
) {
return this.thickness;
}
@Nullable
@Override
public MaterialProvider<V> getMaterialProvider() {
return this.materialProvider;
}
}