com.fastasyncworldedit.core.command.tool.scroll.ScrollTargetOffset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of FastAsyncWorldEdit-Core Show documentation
Show all versions of FastAsyncWorldEdit-Core Show documentation
Blazingly fast Minecraft world manipulation for artists, builders and everyone else.
package com.fastasyncworldedit.core.command.tool.scroll;
import com.sk89q.worldedit.command.tool.BrushTool;
import com.sk89q.worldedit.entity.Player;
public class ScrollTargetOffset extends Scroll {
public ScrollTargetOffset(BrushTool tool) {
super(tool);
}
@Override
public boolean increment(Player player, int amount) {
BrushTool tool = getTool();
tool.setTargetOffset(tool.getTargetOffset() + amount);
return true;
}
}