File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed
src/main/java/net/thenextlvl/gopaint/listener Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 1818 */
1919package net .thenextlvl .gopaint .listener ;
2020
21- import lombok .RequiredArgsConstructor ;
2221import net .thenextlvl .gopaint .GoPaintPlugin ;
2322import org .bukkit .event .EventHandler ;
2423import org .bukkit .event .EventPriority ;
2726import org .jspecify .annotations .NullMarked ;
2827
2928@ NullMarked
30- @ RequiredArgsConstructor
3129public class ConnectListener implements Listener {
3230 private final GoPaintPlugin plugin ;
3331
32+ public ConnectListener (GoPaintPlugin plugin ) {
33+ this .plugin = plugin ;
34+ }
35+
3436 @ EventHandler (priority = EventPriority .LOWEST )
3537 public void onPlayerQuit (PlayerQuitEvent event ) {
3638 plugin .brushController ().removeBrushSettings (event .getPlayer ());
Original file line number Diff line number Diff line change 2424import com .sk89q .worldedit .bukkit .BukkitPlayer ;
2525import com .sk89q .worldedit .function .mask .MaskIntersection ;
2626import com .sk89q .worldedit .session .request .Request ;
27- import lombok .RequiredArgsConstructor ;
2827import net .thenextlvl .gopaint .GoPaintPlugin ;
2928import net .thenextlvl .gopaint .api .brush .setting .BrushSettings ;
3029import net .thenextlvl .gopaint .api .brush .setting .PlayerBrushSettings ;
3635import org .jspecify .annotations .NullMarked ;
3736
3837@ NullMarked
39- @ RequiredArgsConstructor
4038public final class InteractListener implements Listener {
4139 private final GoPaintPlugin plugin ;
4240
41+ public InteractListener (GoPaintPlugin plugin ) {
42+ this .plugin = plugin ;
43+ }
44+
4345 @ EventHandler (priority = EventPriority .LOWEST )
4446 public void onClick (PlayerInteractEvent event ) {
4547 var player = event .getPlayer ();
Original file line number Diff line number Diff line change 1818 */
1919package net .thenextlvl .gopaint .listener ;
2020
21- import lombok .RequiredArgsConstructor ;
2221import net .thenextlvl .gopaint .GoPaintPlugin ;
2322import net .thenextlvl .gopaint .api .model .SurfaceMode ;
24- import net .thenextlvl .gopaint .brush .standard .*;
23+ import net .thenextlvl .gopaint .brush .standard .AngleBrush ;
24+ import net .thenextlvl .gopaint .brush .standard .DiskBrush ;
25+ import net .thenextlvl .gopaint .brush .standard .FractureBrush ;
26+ import net .thenextlvl .gopaint .brush .standard .GradientBrush ;
27+ import net .thenextlvl .gopaint .brush .standard .OverlayBrush ;
28+ import net .thenextlvl .gopaint .brush .standard .PaintBrush ;
29+ import net .thenextlvl .gopaint .brush .standard .SplatterBrush ;
30+ import net .thenextlvl .gopaint .brush .standard .SprayBrush ;
31+ import net .thenextlvl .gopaint .brush .standard .UnderlayBrush ;
2532import net .thenextlvl .gopaint .menu .MainMenu ;
2633import org .bukkit .Axis ;
2734import org .bukkit .entity .Player ;
3441import org .jspecify .annotations .NullMarked ;
3542
3643@ NullMarked
37- @ RequiredArgsConstructor
3844public final class InventoryListener implements Listener {
3945 private final GoPaintPlugin plugin ;
4046
47+ public InventoryListener (GoPaintPlugin plugin ) {
48+ this .plugin = plugin ;
49+ }
50+
4151 @ EventHandler (priority = EventPriority .LOWEST , ignoreCancelled = true )
4252 public void menuClick (InventoryClickEvent event ) {
4353 if (!(event .getWhoClicked () instanceof Player player )) {
You can’t perform that action at this time.
0 commit comments