public class FoliagePlacerType<P extends FoliagePlacer> extends Object
| Modifier and Type | Field and Description |
|---|---|
static FoliagePlacerType<AcaciaFoliagePlacer> |
ACACIA_FOLIAGE_PLACER |
static FoliagePlacerType<BlobFoliagePlacer> |
BLOB_FOLIAGE_PLACER |
private Function<com.mojang.datafixers.Dynamic<?>,P> |
deserializer |
static FoliagePlacerType<PineFoliagePlacer> |
PINE_FOLIAGE_PLACER |
static FoliagePlacerType<SpruceFoliagePlacer> |
SPRUCE_FOLIAGE_PLACER |
| Modifier | Constructor and Description |
|---|---|
private |
FoliagePlacerType(Function<com.mojang.datafixers.Dynamic<?>,P> deserializer) |
| Modifier and Type | Method and Description |
|---|---|
P |
deserialize(com.mojang.datafixers.Dynamic<?> dynamic) |
private static <P extends FoliagePlacer> |
register(String id,
Function<com.mojang.datafixers.Dynamic<?>,P> deserializer) |
public static final FoliagePlacerType<BlobFoliagePlacer> BLOB_FOLIAGE_PLACER
public static final FoliagePlacerType<SpruceFoliagePlacer> SPRUCE_FOLIAGE_PLACER
public static final FoliagePlacerType<PineFoliagePlacer> PINE_FOLIAGE_PLACER
public static final FoliagePlacerType<AcaciaFoliagePlacer> ACACIA_FOLIAGE_PLACER
private final Function<com.mojang.datafixers.Dynamic<?>,P extends FoliagePlacer> deserializer
private static <P extends FoliagePlacer> FoliagePlacerType<P> register(String id, Function<com.mojang.datafixers.Dynamic<?>,P> deserializer)
public P deserialize(com.mojang.datafixers.Dynamic<?> dynamic)