当前位置: 首页>>代码示例>>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;未经允许,请勿转载。