Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
58 lines
1.3 KiB
Java
58 lines
1.3 KiB
Java
/*
|
|
* 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;
|
|
}
|
|
}
|
|
|