Contents
Class PrefabSpawnerBlock
java.lang.Object
com.hypixel.hytale.server.core.modules.prefabspawner.PrefabSpawnerBlock
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<PrefabSpawnerBlock> The codec used to parsePrefabSpawnerBlockinstances.static final KeyedCodec<Boolean> static final KeyedCodec<Boolean> static final KeyedCodec<Boolean> static final KeyedCodec<PrefabWeights> Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionPrefabSpawnerBlock(String prefabPath, boolean fitHeightmap, boolean inheritSeed, boolean inheritHeightCondition, PrefabWeights prefabWeights) -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<ChunkStore, PrefabSpawnerBlock> booleanbooleanbooleanvoidsetFitHeightmap(boolean fitHeightmap) voidsetInheritHeightCondition(boolean inheritHeightCondition) voidsetInheritSeed(boolean inheritSeed) voidsetPrefabPath(String prefabPath) voidsetPrefabWeights(PrefabWeights prefabWeights) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
FIT_HEIGHTMAP_CODEC
-
INHERIT_SEED_CODEC
-
INHERIT_HEIGHT_CONDITION_CODEC
-
PREFAB_WEIGHTS_CODEC
-
CODEC
The codec used to parsePrefabSpawnerBlockinstances.
-
-
Constructor Details
-
PrefabSpawnerBlock
public PrefabSpawnerBlock() -
PrefabSpawnerBlock
public PrefabSpawnerBlock(String prefabPath, boolean fitHeightmap, boolean inheritSeed, boolean inheritHeightCondition, PrefabWeights prefabWeights)
-
-
Method Details
-
getComponentType
-
getPrefabPath
-
setPrefabPath
-
isFitHeightmap
public boolean isFitHeightmap() -
setFitHeightmap
public void setFitHeightmap(boolean fitHeightmap) -
isInheritSeed
public boolean isInheritSeed() -
setInheritSeed
public void setInheritSeed(boolean inheritSeed) -
isInheritHeightCondition
public boolean isInheritHeightCondition() -
setInheritHeightCondition
public void setInheritHeightCondition(boolean inheritHeightCondition) -
getPrefabWeights
-
setPrefabWeights
-
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-