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


Java Vector3d.getY方法代碼示例

本文整理匯總了Java中com.flowpowered.math.vector.Vector3d.getY方法的典型用法代碼示例。如果您正苦於以下問題:Java Vector3d.getY方法的具體用法?Java Vector3d.getY怎麽用?Java Vector3d.getY使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.flowpowered.math.vector.Vector3d的用法示例。


在下文中一共展示了Vector3d.getY方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getLoc

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public Loc getLoc() {
	Location<World> location = this.player.getLocation();
	Vector3d rotation = this.player.getRotation();
	
	Loc loc = new Loc(this.player.getWorld().getUniqueId(), location.getX(), location.getY(), location.getZ(), (float) rotation.getY(), (float) rotation.getX());
	
	return loc;
}
 
開發者ID:redstone,項目名稱:RCameraStudio,代碼行數:10,代碼來源:SpongeTraveller.java

示例2: Vector3dView

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
public Vector3dView(Vector3d value) {
    super(value);

    this.x = value.getX();
    this.y = value.getY();
    this.z = value.getZ();
}
 
開發者ID:Valandur,項目名稱:Web-API,代碼行數:8,代碼來源:Vector3dView.java

示例3: setPosition

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
    this.x = (int)(position.getX() * 8);
    this.y = (int)(position.getY() * 8);
    this.z = (int)(position.getZ() * 8);
}
 
開發者ID:Guichaguri,項目名稱:PacketControl,代碼行數:7,代碼來源:MixinPacketCustomSound.java

示例4: setPosition

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
    this.posX = (int)(position.getX() * 8);
    this.posY = (int)(position.getY() * 8);
    this.posZ = (int)(position.getZ() * 8);
}
 
開發者ID:Guichaguri,項目名稱:PacketControl,代碼行數:7,代碼來源:MixinPacketGameSound.java

示例5: setPosition

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
    this.x = position.getX();
    this.y = position.getY();
    this.z = position.getZ();
}
 
開發者ID:Guichaguri,項目名稱:PacketControl,代碼行數:7,代碼來源:MixinPacketSpawnMob.java

示例6: setPosition

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
    this.posX = position.getX();
    this.posY = position.getY();
    this.posZ = position.getZ();
}
 
開發者ID:Guichaguri,項目名稱:PacketControl,代碼行數:7,代碼來源:MixinPacketSpawnExperienceOrb.java

示例7: setRotation

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setRotation(Vector3d rotation) {
    pitch = (float)rotation.getX();
    yaw = (float)rotation.getY();
}
 
開發者ID:Guichaguri,項目名稱:PacketControl,代碼行數:6,代碼來源:MixinPacketVehiclePosition.java

示例8: setPosition

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPosition(Vector3d position) {
    x = position.getX();
    y = position.getY();
    z = position.getZ();
}
 
開發者ID:Guichaguri,項目名稱:PacketControl,代碼行數:7,代碼來源:MixinPacketVehiclePosition.java

示例9: convertToBukkitVector

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
private Vector convertToBukkitVector(Vector3d vector3d) {
    return new Vector(vector3d.getX(), vector3d.getY(), vector3d.getZ());
}
 
開發者ID:Proximyst,項目名稱:Bukkit2Sponge,代碼行數:4,代碼來源:LinkedEntity.java

示例10: LocationTag

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
public LocationTag(Vector3d location) {
    this(location.getX(), location.getY(), location.getZ());
}
 
開發者ID:DenizenScript,項目名稱:Denizen2Sponge,代碼行數:4,代碼來源:LocationTag.java

示例11: of

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
public static Location3D of(Vector3d vector) {
    return new Location3D(vector.getX(), vector.getY(), vector.getZ());
}
 
開發者ID:caseif,項目名稱:Inferno,代碼行數:4,代碼來源:LocationConverter.java

示例12: setRotation

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setRotation(Vector3d rot) {
    super.setRotation(new Vector3d(0, rot.getY() % 360, 0));// Only y-axis supported
    moveInternalEntities();
}
 
開發者ID:simon816,項目名稱:Industrialization,代碼行數:6,代碼來源:TurtleEntity.java

示例13: setPositionAndRotation

import com.flowpowered.math.vector.Vector3d; //導入方法依賴的package包/類
@Override
public void setPositionAndRotation(Vector3d pos, Vector3d rot) {
    this.pos = pos;
    this.rotation = new Vector3d(0, rot.getY() % 360, 0);
    moveInternalEntities();
}
 
開發者ID:simon816,項目名稱:Industrialization,代碼行數:7,代碼來源:TurtleEntity.java


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