mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 21:19:46 +00:00
Update mappings to stable_29 for 1.10.2, no functional changes
This commit is contained in:
252 files changed
+1100
-1100
No files matched your search
@@ -79,13 +79,13 @@ public class EntityBabylonWeapon extends EntityThrowableCopy {
|
||||
@Override
|
||||
public void onUpdate() {
|
||||
EntityLivingBase thrower = getThrower();
|
||||
if(!worldObj.isRemote && (thrower == null || !(thrower instanceof EntityPlayer) || thrower.isDead)) {
|
||||
if(!world.isRemote && (thrower == null || !(thrower instanceof EntityPlayer) || thrower.isDead)) {
|
||||
setDead();
|
||||
return;
|
||||
}
|
||||
EntityPlayer player = (EntityPlayer) thrower;
|
||||
boolean charging = isCharging();
|
||||
if(!worldObj.isRemote) {
|
||||
if(!world.isRemote) {
|
||||
ItemStack stack = player == null ? null : PlayerHelper.getFirstHeldItem(player, ModItems.kingKey);
|
||||
boolean newCharging = stack != null && ItemKingKey.isCharging(stack);
|
||||
if(charging != newCharging) {
|
||||
@@ -110,8 +110,8 @@ public class EntityBabylonWeapon extends EntityThrowableCopy {
|
||||
int chargeTime = getChargeTicks();
|
||||
setChargeTicks(chargeTime + 1);
|
||||
|
||||
if(worldObj.rand.nextInt(20) == 0)
|
||||
worldObj.playSound(null, posX, posY, posZ, BotaniaSoundEvents.babylonSpawn, SoundCategory.PLAYERS, 0.1F, 1F + worldObj.rand.nextFloat() * 3F);
|
||||
if(world.rand.nextInt(20) == 0)
|
||||
world.playSound(null, posX, posY, posZ, BotaniaSoundEvents.babylonSpawn, SoundCategory.PLAYERS, 0.1F, 1F + world.rand.nextFloat() * 3F);
|
||||
} else {
|
||||
if(liveTime < delay) {
|
||||
motionX = 0;
|
||||
@@ -119,7 +119,7 @@ public class EntityBabylonWeapon extends EntityThrowableCopy {
|
||||
motionZ = 0;
|
||||
} else if (liveTime == delay && player != null) {
|
||||
Vector3 playerLook;
|
||||
RayTraceResult lookat = ToolCommons.raytraceFromEntity(worldObj, player, true, 64);
|
||||
RayTraceResult lookat = ToolCommons.raytraceFromEntity(world, player, true, 64);
|
||||
if(lookat == null)
|
||||
playerLook = new Vector3(player.getLookVec()).multiply(64).add(Vector3.fromEntity(player));
|
||||
else playerLook = new Vector3(lookat.getBlockPos().getX() + 0.5, lookat.getBlockPos().getY() + 0.5, lookat.getBlockPos().getZ() + 0.5);
|
||||
@@ -130,13 +130,13 @@ public class EntityBabylonWeapon extends EntityThrowableCopy {
|
||||
x = motionVec.x;
|
||||
y = motionVec.y;
|
||||
z = motionVec.z;
|
||||
worldObj.playSound(null, posX, posY, posZ, BotaniaSoundEvents.babylonAttack, SoundCategory.PLAYERS, 2F, 0.1F + worldObj.rand.nextFloat() * 3F);
|
||||
world.playSound(null, posX, posY, posZ, BotaniaSoundEvents.babylonAttack, SoundCategory.PLAYERS, 2F, 0.1F + world.rand.nextFloat() * 3F);
|
||||
}
|
||||
setLiveTicks(liveTime + 1);
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
if(!world.isRemote) {
|
||||
AxisAlignedBB axis = new AxisAlignedBB(posX, posY, posZ, lastTickPosX, lastTickPosY, lastTickPosZ).expand(2, 2, 2);
|
||||
List<EntityLivingBase> entities = worldObj.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
List<EntityLivingBase> entities = world.getEntitiesWithinAABB(EntityLivingBase.class, axis);
|
||||
for(EntityLivingBase living : entities) {
|
||||
if(living == thrower)
|
||||
continue;
|
||||
@@ -169,7 +169,7 @@ public class EntityBabylonWeapon extends EntityThrowableCopy {
|
||||
protected void onImpact(RayTraceResult pos) {
|
||||
EntityLivingBase thrower = getThrower();
|
||||
if(pos.entityHit == null || pos.entityHit != thrower) {
|
||||
worldObj.createExplosion(this, posX, posY, posZ, 3F, false);
|
||||
world.createExplosion(this, posX, posY, posZ, 3F, false);
|
||||
setDead();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user