當前位置: 首頁>>代碼示例>>Java>>正文


Java StaticLayer類代碼示例

本文整理匯總了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;
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:11,代碼來源:BukkitMCDynmapAreaMarker.java

示例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;
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:12,代碼來源:BukkitMCDynmapPlayerSet.java

示例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;
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:8,代碼來源:BukkitMCDynmapMarkerLineStyle.java

示例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;
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:11,代碼來源:BukkitMCDynmapPolyLineMarker.java

示例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;
	}
}
 
開發者ID:Hekta,項目名稱:CHMIDI,代碼行數:16,代碼來源:MIDIFunctions.java

示例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));
}
 
開發者ID:jb-aero,項目名稱:SKCompat,代碼行數:5,代碼來源:SKPlayer.java

示例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());
}
 
開發者ID:jb-aero,項目名稱:SKCompat,代碼行數:5,代碼來源:SKConsole.java

示例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));
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:5,代碼來源:BukkitMCDynmapAreaMarker.java

示例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());
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:5,代碼來源:BukkitMCDynmapIconMarker.java

示例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;
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:7,代碼來源:BukkitMCDynmapMarkerLineStyle.java

示例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;
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:7,代碼來源:BukkitMCDynmapMarkerFillStyle.java

示例12: getWorld

import com.laytonsmith.abstraction.StaticLayer; //導入依賴的package包/類
@Override
public MCWorld getWorld() {
	return StaticLayer.GetServer().getWorld(_marker.getWorld());
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:5,代碼來源:BukkitMCDynmapMarker.java

示例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());
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:5,代碼來源:BukkitMCDynmapCircleMarker.java

示例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));
}
 
開發者ID:Hekta,項目名稱:CHDynmap,代碼行數:5,代碼來源:BukkitMCDynmapPolyLineMarker.java


注:本文中的com.laytonsmith.abstraction.StaticLayer類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。