/* * Decompiled with CFR 0.152. * * Could not load the following classes: * org.bukkit.Location */ package de.maxhenkel.voicechat.plugins.impl; import de.maxhenkel.voicechat.api.Position; import java.util.Objects; import org.bukkit.Location; public class PositionImpl implements Position { private final Location position; public PositionImpl(Location position) { this.position = position; } public PositionImpl(double x, double y, double z) { this.position = new Location(null, x, y, z); } @Override public double getX() { return this.position.getX(); } @Override public double getY() { return this.position.getY(); } @Override public double getZ() { return this.position.getZ(); } public Location getPosition() { return this.position; } public boolean equals(Object object) { if (this == object) { return true; } if (object == null || this.getClass() != object.getClass()) { return false; } PositionImpl position1 = (PositionImpl)object; return Objects.equals(this.position, position1.position); } public int hashCode() { return this.position != null ? this.position.hashCode() : 0; } }