public class PrefabSpawnerSetCommand extends TargetPrefabSpawnerCommand
Command for prefabspawnerse operations. Registered with the command system and callable by players.
java.lang.Object > TargetPrefabSpawnerCommand > PrefabSpawnerSetCommand
Field Summary
prefabPath
final
String
prefabPath
Field prefabPath.
fitHeightmap
final
boolean
fitHeightmap
Field fitHeightmap.
inheritSeed
final
boolean
inheritSeed
Field inheritSeed.
inheritHeightCheck
final
boolean
inheritHeightCheck
Field inheritHeightCheck.
weight
final
double
weight
Field weight.
value
final
Boolean
value
Field value.
Method Detail
PrefabSpawnerSetCommand
public
public
PrefabSpawnerSetCommand
()
Method PrefabSpawnerSetCommand.
execute
protected
void
execute
(@Nonnull final CommandContext context, @Nonnull final WorldChunk chunk, @Nonnull final PrefabSpawnerState prefabSpawner)
Method execute.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final WorldChunkchunk@Nonnull final PrefabSpawnerStateprefabSpawner
getOrDefault
static
boolean
getOrDefault
(@Nonnull final OptionalArg arg, @Nonnull final CommandContext context, final boolean defaultValue)
Method getOrDefault.
- Parameters:
@Nonnull final OptionalArgarg@Nonnull final CommandContextcontextfinal booleandefaultValue