Update to 20161111 mcp names

This commit is contained in:
cpw 2016-11-12 10:05:32 -05:00
parent 7a4aa5a1c4
commit 9ab96fbda6
9 changed files with 16 additions and 16 deletions

View file

@ -29,7 +29,7 @@ apply plugin: "net.minecraftforge.gradle.launch4j"
minecraft.version = "1.10.2" minecraft.version = "1.10.2"
minecraft { minecraft {
mappings = 'snapshot_nodoc_20160518' mappings = 'snapshot_nodoc_20161111'
workspaceDir = "projects" workspaceDir = "projects"
versionJson = "jsons/${minecraft.version}-dev.json" versionJson = "jsons/${minecraft.version}-dev.json"
buildUserdev = true buildUserdev = true

View file

@ -276,7 +276,7 @@ public class ForgeHooksClient
for (int z = -distance; z <= distance; ++z) for (int z = -distance; z <= distance; ++z)
{ {
BlockPos pos = center.add(x, 0, 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)); int colour = biome.getSkyColorByTemp(biome.getFloatTemperature(pos));
r += (colour & 0xFF0000) >> 16; r += (colour & 0xFF0000) >> 16;
g += (colour & 0x00FF00) >> 8; g += (colour & 0x00FF00) >> 8;

View file

@ -100,7 +100,7 @@ class ChunkIOProvider implements Runnable
this.chunk.setLastSaveTime(provider.worldObj.getTotalWorldTime()); this.chunk.setLastSaveTime(provider.worldObj.getTotalWorldTime());
this.provider.chunkGenerator.recreateStructures(this.chunk, this.chunkInfo.x, this.chunkInfo.z); 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.onChunkLoad();
this.chunk.populateChunk(provider, provider.chunkGenerator); this.chunk.populateChunk(provider, provider.chunkGenerator);

View file

@ -158,7 +158,7 @@ public class BlockSnapshot implements Serializable
public TileEntity getTileEntity() public TileEntity getTileEntity()
{ {
if (getNbt() != null) if (getNbt() != null)
return TileEntity.func_190200_a(getWorld(), getNbt()); return TileEntity.create(getWorld(), getNbt());
else return null; else return null;
} }

View file

@ -574,8 +574,8 @@ public class ForgeEventFactory
Result canContinueSleep = evt.getResult(); Result canContinueSleep = evt.getResult();
if (canContinueSleep == Result.DEFAULT) if (canContinueSleep == Result.DEFAULT)
{ {
IBlockState state = player.worldObj.getBlockState(player.playerLocation); IBlockState state = player.worldObj.getBlockState(player.bedLocation);
return state.getBlock().isBed(state, player.worldObj, player.playerLocation, player); return state.getBlock().isBed(state, player.worldObj, player.bedLocation, player);
} }
else else
return canContinueSleep == Result.ALLOW; return canContinueSleep == Result.ALLOW;

View file

@ -63,7 +63,7 @@ public class DispenseFluidContainer extends BehaviorDefaultDispenseItem
private ItemStack fillContainer(IBlockSource source, ItemStack stack) private ItemStack fillContainer(IBlockSource source, ItemStack stack)
{ {
World world = source.getWorld(); 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); BlockPos blockpos = source.getBlockPos().offset(dispenserFacing);
ItemStack result = FluidUtil.tryPickUpFluid(stack, null, world, blockpos, dispenserFacing.getOpposite()); 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); 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); BlockPos blockpos = source.getBlockPos().offset(dispenserFacing);
if (fluidStack != null && fluidStack.amount == Fluid.BUCKET_VOLUME && FluidUtil.tryPlaceFluid(null, source.getWorld(), fluidStack, blockpos)) if (fluidStack != null && fluidStack.amount == Fluid.BUCKET_VOLUME && FluidUtil.tryPlaceFluid(null, source.getWorld(), fluidStack, blockpos))

View file

@ -356,8 +356,8 @@ public class VillagerRegistry
{ {
if (prof == null) if (prof == null)
{ {
if (entity.func_189777_di() != ZombieType.NORMAL && entity.func_189777_di() != ZombieType.HUSK) if (entity.getZombieType() != ZombieType.NORMAL && entity.getZombieType() != ZombieType.HUSK)
entity.func_189778_a(ZombieType.NORMAL); entity.setZombieType(ZombieType.NORMAL);
return; return;
} }
@ -369,13 +369,13 @@ public class VillagerRegistry
if (network >= 0 && network < 5) // Vanilla 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) else if (entity.getZombieType() != null)
entity.func_189778_a(ZombieType.NORMAL); entity.setZombieType(ZombieType.NORMAL);
} }
public static void onSetProfession(EntityZombie entity, ZombieType type, int network) public static void onSetProfession(EntityZombie entity, ZombieType type, int network)
{ {

View file

@ -336,7 +336,7 @@ public class OreDictionary
new ItemStack(Blocks.DARK_OAK_STAIRS), new ItemStack(Blocks.DARK_OAK_STAIRS),
new ItemStack(Blocks.WOODEN_SLAB), new ItemStack(Blocks.WOODEN_SLAB),
new ItemStack(Blocks.GLASS_PANE), 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), new ItemStack(Items.BOAT),
null //So the above can have a comma and we don't have to keep editing extra lines. null //So the above can have a comma and we don't have to keep editing extra lines.
}; };

View file

@ -137,7 +137,7 @@ public class PlayerInteractEventTest
&& evt.getLocalPos().yCoord > evt.getTarget().height / 2.0) && evt.getLocalPos().yCoord > evt.getTarget().height / 2.0)
{ {
// If we right click the upper half of a skeleton it becomes wither skeleton. Otherwise nothing happens. // If we right click the upper half of a skeleton it becomes wither skeleton. Otherwise nothing happens.
((EntitySkeleton) evt.getTarget()).func_189768_a(SkeletonType.WITHER); ((EntitySkeleton) evt.getTarget()).setSkeletonType(SkeletonType.WITHER);
evt.setCanceled(true); evt.setCanceled(true);
} }
} }