Constructor and Description |
---|
PaletteLayer(E type)
Constructs a PaletteLayer with a single Material and a number of layers.
|
PaletteLayer(ProbabilityCollection<E> type)
Constructs a PaletteLayer with a ProbabilityCollection of materials and a number of layers.
|
Modifier and Type | Method and Description |
---|---|
E |
get(FastNoiseLite random,
int x,
int z) |
E |
get(Random random)
Gets a material from the layer.
|
ProbabilityCollection<E> |
getCollection() |
public PaletteLayer(ProbabilityCollection<E> type)
type
- - The collection of materials to choose from.public PaletteLayer(E type)
type
- - The material to use.public E get(FastNoiseLite random, int x, int z)
public ProbabilityCollection<E> getCollection()
Copyright © 2020. All rights reserved.