/* * Decompiled with CFR 0.152. * * Could not load the following classes: * org.bukkit.entity.Entity */ package de.maxhenkel.voicechat.plugins.impl; import de.maxhenkel.voicechat.api.Entity; import de.maxhenkel.voicechat.api.Position; import de.maxhenkel.voicechat.plugins.impl.PositionImpl; import java.util.Objects; import java.util.UUID; public class EntityImpl implements Entity { protected org.bukkit.entity.Entity entity; public EntityImpl(org.bukkit.entity.Entity entity) { this.entity = entity; } @Override public UUID getUuid() { return this.entity.getUniqueId(); } @Override public Object getEntity() { return this.entity; } @Override public Position getPosition() { return new PositionImpl(this.entity.getLocation()); } public org.bukkit.entity.Entity getRealEntity() { return this.entity; } public boolean equals(Object object) { if (this == object) { return true; } if (object == null || this.getClass() != object.getClass()) { return false; } EntityImpl entity1 = (EntityImpl)object; return Objects.equals(this.entity, entity1.entity); } public int hashCode() { return this.entity != null ? this.entity.hashCode() : 0; } }