本文整理汇总了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();
}
}
示例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();
}
}
示例3: setRevengeTarget
import net.minecraft.entity.EntityLivingBase; //导入方法依赖的package包/类
public void setRevengeTarget(EntityLivingBase livingBase)
{
super.setRevengeTarget(livingBase);
if (livingBase != null)
{
this.angerTargetUUID = livingBase.getUniqueID();
}
}
示例4: setRevengeTarget
import net.minecraft.entity.EntityLivingBase; //导入方法依赖的package包/类
public void setRevengeTarget(@Nullable EntityLivingBase livingBase)
{
super.setRevengeTarget(livingBase);
if (livingBase != null)
{
this.angerTargetUUID = livingBase.getUniqueID();
}
}
示例5: setOwner
import net.minecraft.entity.EntityLivingBase; //导入方法依赖的package包/类
public void setOwner(@Nullable EntityLivingBase ownerIn) {
owner = ownerIn;
ownerUniqueId = ownerIn == null ? null : ownerIn.getUniqueID();
}
示例6: EnergyMessage
import net.minecraft.entity.EntityLivingBase; //导入方法依赖的package包/类
public EnergyMessage(IEnergy energy, EntityLivingBase target) {
this.energy = energy;
this.target = target.getUniqueID();
}
示例7: BrewMessage
import net.minecraft.entity.EntityLivingBase; //导入方法依赖的package包/类
public BrewMessage(IBrewStorage effects, EntityLivingBase entity) {
this.effects = effects.getBrewMap();
this.target = entity.getUniqueID();
}
示例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();
}
示例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();
}
示例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();
}