use of org.bukkit.craftbukkit.v1_18_R2.entity.CraftHanging in project MagicPlugin by elBukkit.
the class CompatibilityUtils method getHangingLocation.
@Override
public Location getHangingLocation(Entity entity) {
Location location = entity.getLocation();
if (!(entity instanceof Hanging))
return location;
HangingEntity nms = ((CraftHanging) entity).getHandle();
BlockPos position = nms.blockPosition();
location.setX(position.getX());
location.setY(position.getY());
location.setZ(position.getZ());
return location;
}
use of org.bukkit.craftbukkit.v1_18_R2.entity.CraftHanging in project MagicPlugin by elBukkit.
the class CompatibilityUtils method getHangingLocation.
@Override
public Location getHangingLocation(Entity entity) {
Location location = entity.getLocation();
if (!(entity instanceof Hanging))
return location;
HangingEntity nms = ((CraftHanging) entity).getHandle();
BlockPos position = nms.blockPosition();
location.setX(position.getX());
location.setY(position.getY());
location.setZ(position.getZ());
return location;
}
use of org.bukkit.craftbukkit.v1_18_R2.entity.CraftHanging in project MagicPlugin by elBukkit.
the class CompatibilityUtils method getHangingLocation.
@Override
public Location getHangingLocation(Entity entity) {
Location location = entity.getLocation();
if (!(entity instanceof Hanging))
return location;
HangingEntity nms = ((CraftHanging) entity).getHandle();
BlockPos position = nms.blockPosition();
location.setX(position.getX());
location.setY(position.getY());
location.setZ(position.getZ());
return location;
}
use of org.bukkit.craftbukkit.v1_18_R2.entity.CraftHanging in project MagicPlugin by elBukkit.
the class CompatibilityUtils method getHangingLocation.
@Override
public Location getHangingLocation(Entity entity) {
Location location = entity.getLocation();
if (!(entity instanceof Hanging))
return location;
HangingEntity nms = ((CraftHanging) entity).getHandle();
BlockPos position = nms.blockPosition();
location.setX(position.getX());
location.setY(position.getY());
location.setZ(position.getZ());
return location;
}
use of org.bukkit.craftbukkit.v1_18_R2.entity.CraftHanging in project MagicPlugin by elBukkit.
the class CompatibilityUtils method getHangingLocation.
@Override
public Location getHangingLocation(Entity entity) {
Location location = entity.getLocation();
if (!(entity instanceof Hanging))
return location;
HangingEntity nms = ((CraftHanging) entity).getHandle();
BlockPos position = nms.blockPosition();
location.setX(position.getX());
location.setY(position.getY());
location.setZ(position.getZ());
return location;
}
Aggregations