public class PlayerViewRadiusSetCommand extends AbstractTargetPlayerCommand
Command for playerviewradiusse operations. Registered with the command system and callable by players.
java.lang.Object > AbstractTargetPlayerCommand > PlayerViewRadiusSetCommand
Field Summary
playerComponent
final
Player
playerComponent
Field playerComponent.
entityViewerComponent
final
EntityTrackerSystems.EntityViewer
entityViewerComponent
Field entityViewerComponent.
radiusInput
final
String
radiusInput
Field radiusInput.
measureInBlocks
final
boolean
measureInBlocks
Field measureInBlocks.
bypass
final
boolean
bypass
Field bypass.
value
final
int
value
Field value.
maxViewRadius
final
int
maxViewRadius
Field maxViewRadius.
viewRadiusBlocks
final
int
viewRadiusBlocks
Field viewRadiusBlocks.
Method Detail
PlayerViewRadiusSetCommand
public
public
PlayerViewRadiusSetCommand
()
Method PlayerViewRadiusSetCommand.
execute
protected
void
execute
(@Nonnull final CommandContext context, @Nullable final Ref sourceRef, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world, @Nonnull final Store store)
Method execute.
- Parameters:
@Nonnull final CommandContextcontext@Nullable final RefsourceRef@Nonnull final Refref@Nonnull final PlayerRefplayerRef@Nonnull final Worldworld@Nonnull final Storestore
ViewRadius
public
new
ViewRadius
(viewRadiusBlocks)
Method ViewRadius.
- Parameters:
viewRadiusBlocksviewRadiusBlocks