本文整理匯總了Java中com.laytonsmith.abstraction.StaticLayer類的典型用法代碼示例。如果您正苦於以下問題:Java StaticLayer類的具體用法?Java StaticLayer怎麽用?Java StaticLayer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
StaticLayer類屬於com.laytonsmith.abstraction包,在下文中一共展示了StaticLayer類的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getCorners
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCLocation[] getCorners() {
int count = _marker.getCornerCount();
MCLocation[] corners = new MCLocation[count];
MCWorld world = StaticLayer.GetServer().getWorld(_marker.getWorld());
for (int i = 0 ; i < count ; i++) {
corners[i] = StaticLayer.GetLocation(world, _marker.getCornerX(i), 0, _marker.getCornerZ(i));
}
return corners;
}
示例2: getPlayers
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCOfflinePlayer[] getPlayers() {
Set<String> ps = _set.getPlayers();
MCOfflinePlayer[] players = new MCOfflinePlayer[ps.size()];
int i = 0;
for (String playerName : ps) {
players[i] = StaticLayer.GetServer().getOfflinePlayer(playerName);
i++;
}
return players;
}
示例3: BukkitMCDynmapMarkerLineStyle
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
BukkitMCDynmapMarkerLineStyle(int color, double opacity, int weight) {
Color c = new Color(color);
_color = StaticLayer.GetConvertor().GetColor(c.getRed(), c.getGreen(), c.getBlue());
_intColor = color;
_opacity = opacity;
_weight = weight;
}
示例4: getCorners
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCLocation[] getCorners() {
int count = _marker.getCornerCount();
MCLocation[] corners = new MCLocation[count];
MCWorld world = StaticLayer.GetServer().getWorld(_marker.getWorld());
for (int i = 0 ; i < count ; i++) {
corners[i] = StaticLayer.GetLocation(world, _marker.getCornerX(i), _marker.getCornerY(i), _marker.getCornerZ(i));
}
return corners;
}
示例5: startup
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
private void startup(){
if(!started){
queue.invokeLater(null, new Runnable() {
public void run() {
}
});
StaticLayer.GetConvertor().addShutdownHook(new Runnable() {
public void run() {
queue.shutdown();
started = false;
}
});
started = true;
}
}
示例6: setPosition
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public void setPosition(Vector vector, float v, float v1) {
player.teleport(StaticLayer.GetLocation(player.getWorld(), vector.getX(), vector.getY(), vector.getZ(), v, v1));
}
示例7: setWorld
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
public void setWorld(MCWorld w) {
location = StaticLayer.GetLocation(w, location.getX(), location.getY(), location.getZ(),
location.getYaw(), location.getPitch());
}
示例8: getCorner
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCLocation getCorner(int n) {
return StaticLayer.GetLocation(StaticLayer.GetServer().getWorld(_marker.getWorld()), _marker.getCornerX(n), 0, _marker.getCornerZ(n));
}
示例9: getLocation
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCLocation getLocation() {
return StaticLayer.GetLocation(StaticLayer.GetServer().getWorld(_marker.getWorld()), _marker.getX(), _marker.getY(), _marker.getZ());
}
示例10: setColor
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public void setColor(int color) {
Color c = new Color(color);
_color = StaticLayer.GetConvertor().GetColor(c.getRed(), c.getGreen(), c.getBlue());
_intColor = color;
}
示例11: BukkitMCDynmapMarkerFillStyle
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
BukkitMCDynmapMarkerFillStyle(int color, double opacity) {
Color c = new Color(color);
_color = StaticLayer.GetConvertor().GetColor(c.getRed(), c.getGreen(), c.getBlue());
_intColor = color;
_opacity = opacity;
}
示例12: getWorld
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCWorld getWorld() {
return StaticLayer.GetServer().getWorld(_marker.getWorld());
}
示例13: getCenter
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCLocation getCenter() {
return StaticLayer.GetLocation(StaticLayer.GetServer().getWorld(_marker.getWorld()), _marker.getCenterX(), _marker.getCenterY(), _marker.getCenterZ());
}
示例14: getCorner
import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCLocation getCorner(int n) {
return StaticLayer.GetLocation(StaticLayer.GetServer().getWorld(_marker.getWorld()), _marker.getCornerX(n), _marker.getCornerY(n), _marker.getCornerZ(n));
}