public class PrefabSpawnerWeightCommand extends TargetPrefabSpawnerCommand
Command for prefabspawnerweigh operations. Registered with the command system and callable by players.
java.lang.Object > TargetPrefabSpawnerCommand > PrefabSpawnerWeightCommand
Field Summary
prefab
final
String
prefab
Field prefab.
weight
final
Float
weight
Field weight.
Method Detail
PrefabSpawnerWeightCommand
public
public
PrefabSpawnerWeightCommand
()
Method PrefabSpawnerWeightCommand.
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