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


Java EntityLivingBase.getUniqueID方法代碼示例

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


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

示例1: setRevengeTarget

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public void setRevengeTarget(@Nullable EntityLivingBase livingBase) {
	super.setRevengeTarget(livingBase);

	if (livingBase != null) {
		this.angerTargetUUID = livingBase.getUniqueID();
	}
}
 
開發者ID:the-realest-stu,項目名稱:Infernum,代碼行數:8,代碼來源:EntityPigZombieMage.java

示例2: setRevengeTarget

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
@Override
public void setRevengeTarget(@Nullable EntityLivingBase livingBase) {
	super.setRevengeTarget(livingBase);

	if (livingBase != null) {
		this.angerTargetUUID = livingBase.getUniqueID();
	}
}
 
開發者ID:the-realest-stu,項目名稱:Infernum,代碼行數:9,代碼來源:EntityPigMage.java

示例3: setRevengeTarget

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public void setRevengeTarget(EntityLivingBase livingBase)
{
    super.setRevengeTarget(livingBase);

    if (livingBase != null)
    {
        this.angerTargetUUID = livingBase.getUniqueID();
    }
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:10,代碼來源:EntityPigZombie.java

示例4: setRevengeTarget

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public void setRevengeTarget(@Nullable EntityLivingBase livingBase)
{
    super.setRevengeTarget(livingBase);

    if (livingBase != null)
    {
        this.angerTargetUUID = livingBase.getUniqueID();
    }
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:10,代碼來源:EntityPigZombie.java

示例5: setOwner

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public void setOwner(@Nullable EntityLivingBase ownerIn) {
	owner = ownerIn;
	ownerUniqueId = ownerIn == null ? null : ownerIn.getUniqueID();
}
 
開發者ID:Um-Mitternacht,項目名稱:Bewitchment,代碼行數:5,代碼來源:EntityBrewLinger.java

示例6: EnergyMessage

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public EnergyMessage(IEnergy energy, EntityLivingBase target) {
	this.energy = energy;
	this.target = target.getUniqueID();
}
 
開發者ID:Um-Mitternacht,項目名稱:Bewitchment,代碼行數:5,代碼來源:EnergyMessage.java

示例7: BrewMessage

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public BrewMessage(IBrewStorage effects, EntityLivingBase entity) {
	this.effects = effects.getBrewMap();
	this.target = entity.getUniqueID();
}
 
開發者ID:Um-Mitternacht,項目名稱:Bewitchment,代碼行數:5,代碼來源:BrewMessage.java

示例8: func_190549_a

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public void func_190549_a(@Nullable EntityLivingBase p_190549_1_)
{
    this.field_190557_e = p_190549_1_;
    this.field_190558_f = p_190549_1_ == null ? null : p_190549_1_.getUniqueID();
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:6,代碼來源:EntityEvokerFangs.java

示例9: SPacketSpawnMob

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public SPacketSpawnMob(EntityLivingBase entityIn)
{
    this.entityId = entityIn.getEntityId();
    this.uniqueId = entityIn.getUniqueID();
    this.type = EntityList.field_191308_b.getIDForObject(entityIn.getClass());
    this.x = entityIn.posX;
    this.y = entityIn.posY;
    this.z = entityIn.posZ;
    this.yaw = (byte)((int)(entityIn.rotationYaw * 256.0F / 360.0F));
    this.pitch = (byte)((int)(entityIn.rotationPitch * 256.0F / 360.0F));
    this.headPitch = (byte)((int)(entityIn.rotationYawHead * 256.0F / 360.0F));
    double d0 = 3.9D;
    double d1 = entityIn.motionX;
    double d2 = entityIn.motionY;
    double d3 = entityIn.motionZ;

    if (d1 < -3.9D)
    {
        d1 = -3.9D;
    }

    if (d2 < -3.9D)
    {
        d2 = -3.9D;
    }

    if (d3 < -3.9D)
    {
        d3 = -3.9D;
    }

    if (d1 > 3.9D)
    {
        d1 = 3.9D;
    }

    if (d2 > 3.9D)
    {
        d2 = 3.9D;
    }

    if (d3 > 3.9D)
    {
        d3 = 3.9D;
    }

    this.velocityX = (int)(d1 * 8000.0D);
    this.velocityY = (int)(d2 * 8000.0D);
    this.velocityZ = (int)(d3 * 8000.0D);
    this.dataManager = entityIn.getDataManager();
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:52,代碼來源:SPacketSpawnMob.java

示例10: SPacketSpawnMob

import net.minecraft.entity.EntityLivingBase; //導入方法依賴的package包/類
public SPacketSpawnMob(EntityLivingBase entityIn)
{
    this.entityId = entityIn.getEntityId();
    this.uniqueId = entityIn.getUniqueID();
    this.type = (byte)EntityList.getEntityID(entityIn);
    this.x = entityIn.posX;
    this.y = entityIn.posY;
    this.z = entityIn.posZ;
    this.yaw = (byte)((int)(entityIn.rotationYaw * 256.0F / 360.0F));
    this.pitch = (byte)((int)(entityIn.rotationPitch * 256.0F / 360.0F));
    this.headPitch = (byte)((int)(entityIn.rotationYawHead * 256.0F / 360.0F));
    double d0 = 3.9D;
    double d1 = entityIn.motionX;
    double d2 = entityIn.motionY;
    double d3 = entityIn.motionZ;

    if (d1 < -3.9D)
    {
        d1 = -3.9D;
    }

    if (d2 < -3.9D)
    {
        d2 = -3.9D;
    }

    if (d3 < -3.9D)
    {
        d3 = -3.9D;
    }

    if (d1 > 3.9D)
    {
        d1 = 3.9D;
    }

    if (d2 > 3.9D)
    {
        d2 = 3.9D;
    }

    if (d3 > 3.9D)
    {
        d3 = 3.9D;
    }

    this.velocityX = (int)(d1 * 8000.0D);
    this.velocityY = (int)(d2 * 8000.0D);
    this.velocityZ = (int)(d3 * 8000.0D);
    this.dataManager = entityIn.getDataManager();
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:52,代碼來源:SPacketSpawnMob.java


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