PrefabSpawnerState

public class PrefabSpawnerState extends BlockState

Class PrefabSpawnerState. Provides prefabspawnerstate functionality for the Hytale server.

java.lang.Object > BlockState > PrefabSpawnerState

Field Summary

prefabPath

private String prefabPath

Field prefabPath.

fitHeightmap

private boolean fitHeightmap

Field fitHeightmap.

inheritSeed

private boolean inheritSeed

Field inheritSeed.

inheritHeightCondition

private boolean inheritHeightCondition

Field inheritHeightCondition.

prefabWeights

private PrefabWeights prefabWeights

Field prefabWeights.

playerComponent

final Player playerComponent

Field playerComponent.

defaultWeight

private double defaultWeight

Field defaultWeight.

Method Detail

PrefabSpawnerState

public public PrefabSpawnerState ()

Method PrefabSpawnerState.

getPrefabPath

public String getPrefabPath ()

Method getPrefabPath.

setPrefabPath

public void setPrefabPath (final String prefabPath)

Method setPrefabPath.

Parameters:
final String prefabPath

isFitHeightmap

public boolean isFitHeightmap ()

Method isFitHeightmap.

setFitHeightmap

public void setFitHeightmap (final boolean fitHeightmap)

Method setFitHeightmap.

Parameters:
final boolean fitHeightmap

isInheritSeed

public boolean isInheritSeed ()

Method isInheritSeed.

setInheritSeed

public void setInheritSeed (final boolean inheritSeed)

Method setInheritSeed.

Parameters:
final boolean inheritSeed

isInheritHeightCondition

public boolean isInheritHeightCondition ()

Method isInheritHeightCondition.

setInheritHeightCondition

public void setInheritHeightCondition (final boolean inheritHeightCondition)

Method setInheritHeightCondition.

Parameters:
final boolean inheritHeightCondition

getPrefabWeights

public PrefabWeights getPrefabWeights ()

Method getPrefabWeights.

setPrefabWeights

public void setPrefabWeights (final PrefabWeights prefabWeights)

Method setPrefabWeights.

Parameters:
final PrefabWeights prefabWeights

getPrefabWeightsNullable

private PrefabWeights getPrefabWeightsNullable ()

Method getPrefabWeightsNullable.

PrefabSpawnerSettingsPage

public public PrefabSpawnerSettingsPage (@Nonnull final PlayerRef playerRef, final PrefabSpawnerState state, @Nonnull final CustomPageLifetime lifetime)

Method PrefabSpawnerSettingsPage.

Parameters:
@Nonnull final PlayerRef playerRef
final PrefabSpawnerState state
@Nonnull final CustomPageLifetime lifetime

build

public void build (@Nonnull final Ref ref, @Nonnull final UICommandBuilder commandBuilder, @Nonnull final UIEventBuilder eventBuilder, @Nonnull final Store store)

Method build.

Parameters:
@Nonnull final Ref ref
@Nonnull final UICommandBuilder commandBuilder
@Nonnull final UIEventBuilder eventBuilder
@Nonnull final Store store

EventData

public new EventData ()

Method EventData.

handleDataEvent

public void handleDataEvent (@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final PrefabSpawnerSettingsPageEventData data)

Method handleDataEvent.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store
@Nonnull final PrefabSpawnerSettingsPageEventData data