mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Unbreakify things
This commit is contained in:
		@@ -1,17 +1,42 @@
 | 
				
			|||||||
package com.github.intellectualsites.plotsquared.plot.object;
 | 
					package com.github.intellectualsites.plotsquared.plot.object;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.github.intellectualsites.plotsquared.plot.util.StringMan;
 | 
					import com.github.intellectualsites.plotsquared.plot.util.StringMan;
 | 
				
			||||||
import lombok.Getter;
 | 
					import lombok.AllArgsConstructor;
 | 
				
			||||||
import lombok.RequiredArgsConstructor;
 | 
					 | 
				
			||||||
import org.jetbrains.annotations.Nullable;
 | 
					import org.jetbrains.annotations.Nullable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Getter @RequiredArgsConstructor public class PlotLoc {
 | 
					/**
 | 
				
			||||||
 | 
					 * (x,y,z) or (x,z) representation for PlotSquared (hence the "Plot" prefix)
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					@AllArgsConstructor public final class PlotLoc {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private final int x;
 | 
					    /**
 | 
				
			||||||
    private final int y;
 | 
					     * Use the getter
 | 
				
			||||||
    private final int z;
 | 
					     *
 | 
				
			||||||
 | 
					     * @see #getX()
 | 
				
			||||||
 | 
					     * @deprecated
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    @Deprecated public int x;
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Use the getter
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @see #getY()
 | 
				
			||||||
 | 
					     * @deprecated
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    @Deprecated public int y;
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Use the getter
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @see #getZ()
 | 
				
			||||||
 | 
					     * @deprecated
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    @Deprecated public int z;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public PlotLoc(int x, int z) {
 | 
					    /**
 | 
				
			||||||
 | 
					     * Initialize a new {@link PlotLoc} and set the Y value to {@code -1}
 | 
				
			||||||
 | 
					     * @param x X value
 | 
				
			||||||
 | 
					     * @param z Y value
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public PlotLoc(final int x, final int z) {
 | 
				
			||||||
        this(x, -1, z);
 | 
					        this(x, -1, z);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -38,6 +63,18 @@ import org.jetbrains.annotations.Nullable;
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int getX() {
 | 
				
			||||||
 | 
					        return this.x;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int getY() {
 | 
				
			||||||
 | 
					        return this.y;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public int getZ() {
 | 
				
			||||||
 | 
					        return this.z;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @Override public int hashCode() {
 | 
					    @Override public int hashCode() {
 | 
				
			||||||
        final int prime = 31;
 | 
					        final int prime = 31;
 | 
				
			||||||
        int result = 1;
 | 
					        int result = 1;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user