mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Update to 20161111 mcp names
This commit is contained in:
1 parent
7a4aa5a1c4
commit
9ab96fbda6
9 files changed
+16
-16
No files matched your search
@@ -276,7 +276,7 @@ public class ForgeHooksClient
|
||||
for (int z = -distance; z <= distance; ++z)
|
||||
{
|
||||
BlockPos pos = center.add(x, 0, z);
|
||||
Biome biome = world.getBiomeGenForCoords(pos);
|
||||
Biome biome = world.getBiome(pos);
|
||||
int colour = biome.getSkyColorByTemp(biome.getFloatTemperature(pos));
|
||||
r += (colour & 0xFF0000) >> 16;
|
||||
g += (colour & 0x00FF00) >> 8;
|
||||
|
||||
@@ -100,7 +100,7 @@ class ChunkIOProvider implements Runnable
|
||||
this.chunk.setLastSaveTime(provider.worldObj.getTotalWorldTime());
|
||||
this.provider.chunkGenerator.recreateStructures(this.chunk, this.chunkInfo.x, this.chunkInfo.z);
|
||||
|
||||
provider.id2ChunkMap.put(ChunkPos.chunkXZ2Int(this.chunkInfo.x, this.chunkInfo.z), this.chunk);
|
||||
provider.id2ChunkMap.put(ChunkPos.asLong(this.chunkInfo.x, this.chunkInfo.z), this.chunk);
|
||||
this.chunk.onChunkLoad();
|
||||
this.chunk.populateChunk(provider, provider.chunkGenerator);
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ public class BlockSnapshot implements Serializable
|
||||
public TileEntity getTileEntity()
|
||||
{
|
||||
if (getNbt() != null)
|
||||
return TileEntity.func_190200_a(getWorld(), getNbt());
|
||||
return TileEntity.create(getWorld(), getNbt());
|
||||
else return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -574,8 +574,8 @@ public class ForgeEventFactory
|
||||
Result canContinueSleep = evt.getResult();
|
||||
if (canContinueSleep == Result.DEFAULT)
|
||||
{
|
||||
IBlockState state = player.worldObj.getBlockState(player.playerLocation);
|
||||
return state.getBlock().isBed(state, player.worldObj, player.playerLocation, player);
|
||||
IBlockState state = player.worldObj.getBlockState(player.bedLocation);
|
||||
return state.getBlock().isBed(state, player.worldObj, player.bedLocation, player);
|
||||
}
|
||||
else
|
||||
return canContinueSleep == Result.ALLOW;
|
||||
|
||||
@@ -63,7 +63,7 @@ public class DispenseFluidContainer extends BehaviorDefaultDispenseItem
|
||||
private ItemStack fillContainer(IBlockSource source, ItemStack stack)
|
||||
{
|
||||
World world = source.getWorld();
|
||||
EnumFacing dispenserFacing = source.func_189992_e().getValue(BlockDispenser.FACING);
|
||||
EnumFacing dispenserFacing = source.getBlockState().getValue(BlockDispenser.FACING);
|
||||
BlockPos blockpos = source.getBlockPos().offset(dispenserFacing);
|
||||
|
||||
ItemStack result = FluidUtil.tryPickUpFluid(stack, null, world, blockpos, dispenserFacing.getOpposite());
|
||||
@@ -98,7 +98,7 @@ public class DispenseFluidContainer extends BehaviorDefaultDispenseItem
|
||||
}
|
||||
|
||||
FluidStack fluidStack = fluidHandler.drain(Fluid.BUCKET_VOLUME, false);
|
||||
EnumFacing dispenserFacing = source.func_189992_e().getValue(BlockDispenser.FACING);
|
||||
EnumFacing dispenserFacing = source.getBlockState().getValue(BlockDispenser.FACING);
|
||||
BlockPos blockpos = source.getBlockPos().offset(dispenserFacing);
|
||||
|
||||
if (fluidStack != null && fluidStack.amount == Fluid.BUCKET_VOLUME && FluidUtil.tryPlaceFluid(null, source.getWorld(), fluidStack, blockpos))
|
||||
|
||||
@@ -356,8 +356,8 @@ public class VillagerRegistry
|
||||
{
|
||||
if (prof == null)
|
||||
{
|
||||
if (entity.func_189777_di() != ZombieType.NORMAL && entity.func_189777_di() != ZombieType.HUSK)
|
||||
entity.func_189778_a(ZombieType.NORMAL);
|
||||
if (entity.getZombieType() != ZombieType.NORMAL && entity.getZombieType() != ZombieType.HUSK)
|
||||
entity.setZombieType(ZombieType.NORMAL);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -369,13 +369,13 @@ public class VillagerRegistry
|
||||
|
||||
if (network >= 0 && network < 5) // Vanilla
|
||||
{
|
||||
if (entity.func_189777_di() == null || entity.func_189777_di().func_190150_a() != network + 1)
|
||||
if (entity.getZombieType() == null || entity.getZombieType().getId() != network + 1)
|
||||
{
|
||||
entity.func_189778_a(ZombieType.func_190144_b(network));
|
||||
entity.setZombieType(ZombieType.getVillagerByOrdinal(network));
|
||||
}
|
||||
}
|
||||
else if (entity.func_189777_di() != null)
|
||||
entity.func_189778_a(ZombieType.NORMAL);
|
||||
else if (entity.getZombieType() != null)
|
||||
entity.setZombieType(ZombieType.NORMAL);
|
||||
}
|
||||
public static void onSetProfession(EntityZombie entity, ZombieType type, int network)
|
||||
{
|
||||
|
||||
@@ -336,7 +336,7 @@ public class OreDictionary
|
||||
new ItemStack(Blocks.DARK_OAK_STAIRS),
|
||||
new ItemStack(Blocks.WOODEN_SLAB),
|
||||
new ItemStack(Blocks.GLASS_PANE),
|
||||
new ItemStack(Blocks.field_189880_di), // Bone Block, to prevent conversion of dyes into bone meal.
|
||||
new ItemStack(Blocks.BONE_BLOCK), // Bone Block, to prevent conversion of dyes into bone meal.
|
||||
new ItemStack(Items.BOAT),
|
||||
null //So the above can have a comma and we don't have to keep editing extra lines.
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user