blob: 84418100c9aff4823ca9c9b657afef83c2a95583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.bukkit.craftbukkit.entity;
import net.minecraft.server.EntityComplexPart;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.ComplexEntityPart;
import org.bukkit.entity.ComplexLivingEntity;
import org.bukkit.entity.EntityType;
public class CraftComplexPart extends CraftEntity implements ComplexEntityPart {
public CraftComplexPart(CraftServer server, EntityComplexPart entity) {
super(server, entity);
}
public ComplexLivingEntity getParent() {
return (ComplexLivingEntity) getHandle().owner.getBukkitEntity();
}
@Override
public EntityComplexPart getHandle() {
return (EntityComplexPart) entity;
}
@Override
public String toString() {
return "CraftComplexPart";
}
public EntityType getType() {
return EntityType.COMPLEX_PART;
}
}
|