Merge pull request #1125 from CDAGaming/BOP-1.12.x-7.0.x

WIP: Update Forge and MCP Mappings Version
This commit is contained in:
Adubbz 2017-11-01 11:09:44 +11:00 committed by GitHub
commit 6ea6cde527
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 25 additions and 36 deletions

View file

@ -1,4 +1,4 @@
minecraft_version=1.12.2 minecraft_version=1.12.2
forge_version=14.23.0.2491 forge_version=14.23.0.2528
mod_version=7.0.1 mod_version=7.0.1
mappings_version=snapshot_nodoc_20170619 mappings_version=snapshot_nodoc_20171031

View file

@ -53,7 +53,7 @@ public abstract class GuiBOPPageList extends GuiBOPPageDelegate
@Override @Override
protected void updateItemPos(int p_178040_1_, int p_178040_2_, int p_178040_3_, float partialTicks) protected void updateItemPos(int p_178040_1_, int p_178040_2_, int p_178040_3_, float partialTicks)
{ {
this.getListEntry(p_178040_1_).func_192633_a(p_178040_1_, p_178040_2_, p_178040_3_, partialTicks); this.getListEntry(p_178040_1_).updatePosition(p_178040_1_, p_178040_2_, p_178040_3_, partialTicks);
} }
@Override @Override
@ -268,8 +268,7 @@ public abstract class GuiBOPPageList extends GuiBOPPageDelegate
} }
// setSelected // setSelected
@Override public void updatePosition(int p_178011_1_, int p_178011_2_, int p_178011_3_, float partialTicks)
public void func_192633_a(int p_178011_1_, int p_178011_2_, int p_178011_3_, float partialTicks)
{ {
this.drawGui(this.guiLeft, p_178011_3_, 0, 0, true, partialTicks); this.drawGui(this.guiLeft, p_178011_3_, 0, 0, true, partialTicks);
this.drawGui(this.guiRight, p_178011_3_, 0, 0, true, partialTicks); this.drawGui(this.guiRight, p_178011_3_, 0, 0, true, partialTicks);

View file

@ -158,21 +158,16 @@ public class BlockBOPPlant extends BlockBOPDecoration implements IShearable, IHo
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public IItemColor getItemColor() public IItemColor getItemColor()
{ {
return new IItemColor() return (stack, tintIndex) -> {
{ IBlockState state = ((ItemBlock)stack.getItem()).getBlock().getStateFromMeta(stack.getMetadata());
@Override
public int getColorFromItemstack(ItemStack stack, int tintIndex) switch ((BOPPlants) state.getValue(BlockBOPPlant.this.variantProperty))
{ {
IBlockState state = ((ItemBlock)stack.getItem()).getBlock().getStateFromMeta(stack.getMetadata()); case BUSH: case BERRYBUSH: case SHRUB:
return 0xFFFFFF;
switch ((BOPPlants) state.getValue(BlockBOPPlant.this.variantProperty)) default:
{ return BlockBOPPlant.this.getBlockColor().colorMultiplier(state, null, null, tintIndex);
case BUSH: case BERRYBUSH: case SHRUB:
return 0xFFFFFF;
default:
return BlockBOPPlant.this.getBlockColor().colorMultiplier(state, null, null, tintIndex);
}
} }
}; };
} }

View file

@ -42,14 +42,9 @@ public class BlockColoring
} }
}; };
public static final IItemColor BLOCK_ITEM_COLORING = new IItemColor() public static final IItemColor BLOCK_ITEM_COLORING = (stack, tintIndex) -> {
{ IBlockState state = ((ItemBlock)stack.getItem()).getBlock().getStateFromMeta(stack.getMetadata());
@Override IBlockColor blockColor = ((IBOPBlock)state.getBlock()).getBlockColor();
public int getColorFromItemstack(ItemStack stack, int tintIndex) return blockColor == null ? 0xFFFFFF : blockColor.colorMultiplier(state, null, null, tintIndex);
{
IBlockState state = ((ItemBlock)stack.getItem()).getBlock().getStateFromMeta(stack.getMetadata());
IBlockColor blockColor = ((IBOPBlock)state.getBlock()).getBlockColor();
return blockColor == null ? 0xFFFFFF : blockColor.colorMultiplier(state, null, null, tintIndex);
}
}; };
} }

View file

@ -93,7 +93,7 @@ public class BiomeEssenceRecipe extends net.minecraftforge.registries.IForgeRegi
} }
@Override @Override
public boolean isHidden() public boolean isDynamic()
{ {
return true; return true;
} }

View file

@ -58,7 +58,7 @@ public class EntityAIEatBOPGrass extends EntityAIEatGrass
{ {
this.bopEatingGrassTimer = 40; this.bopEatingGrassTimer = 40;
this.world.setEntityState(this.sheep, (byte)10); this.world.setEntityState(this.sheep, (byte)10);
this.sheep.getNavigator().clearPathEntity(); this.sheep.getNavigator().clearPath();
} }
@Override @Override

View file

@ -42,7 +42,7 @@ public class ItemMudball extends Item
if (!world.isRemote) if (!world.isRemote)
{ {
EntityMudball mudball = new EntityMudball(world, player); EntityMudball mudball = new EntityMudball(world, player);
mudball.setHeadingFromThrower(player, player.rotationPitch, player.rotationYaw, 0.0F, 1.5F, 1.0F); mudball.shoot(player, player.rotationPitch, player.rotationYaw, 0.0F, 1.5F, 1.0F);
world.spawnEntity(mudball); world.spawnEntity(mudball);
} }

View file

@ -56,7 +56,7 @@ public class BOPMapGenScatteredFeature extends MapGenScatteredFeature
for (Entry<String, String> entry : p_i2061_1_.entrySet()) for (Entry<String, String> entry : p_i2061_1_.entrySet())
{ {
if (((String)entry.getKey()).equals("distance")) if (entry.getKey().equals("distance"))
{ {
this.maxDistanceBetweenScatteredFeatures = MathHelper.getInt((String)entry.getValue(), this.maxDistanceBetweenScatteredFeatures, 9); this.maxDistanceBetweenScatteredFeatures = MathHelper.getInt((String)entry.getValue(), this.maxDistanceBetweenScatteredFeatures, 9);
} }
@ -126,7 +126,7 @@ public class BOPMapGenScatteredFeature extends MapGenScatteredFeature
if (structurestart != null && structurestart instanceof BOPMapGenScatteredFeature.Start && !structurestart.getComponents().isEmpty()) if (structurestart != null && structurestart instanceof BOPMapGenScatteredFeature.Start && !structurestart.getComponents().isEmpty())
{ {
StructureComponent structurecomponent = (StructureComponent)structurestart.getComponents().get(0); StructureComponent structurecomponent = structurestart.getComponents().get(0);
return structurecomponent instanceof ComponentScatteredFeaturePieces.SwampHut; return structurecomponent instanceof ComponentScatteredFeaturePieces.SwampHut;
} }
else else
@ -136,7 +136,7 @@ public class BOPMapGenScatteredFeature extends MapGenScatteredFeature
} }
@Override @Override
public List<Biome.SpawnListEntry> getScatteredFeatureSpawnList() public List<Biome.SpawnListEntry> getMonsters()
{ {
return this.scatteredFeatureSpawnList; return this.scatteredFeatureSpawnList;
} }

View file

@ -620,12 +620,12 @@ public class ChunkGeneratorOverworldBOP implements IChunkGenerator
{ {
if (creatureType == EnumCreatureType.MONSTER && this.scatteredFeatureGenerator.isSwampHut(pos)) if (creatureType == EnumCreatureType.MONSTER && this.scatteredFeatureGenerator.isSwampHut(pos))
{ {
return this.scatteredFeatureGenerator.getScatteredFeatureSpawnList(); return this.scatteredFeatureGenerator.getMonsters();
} }
if (creatureType == EnumCreatureType.MONSTER && this.settings.useMonuments && this.oceanMonumentGenerator.isPositionInStructure(this.world, pos)) if (creatureType == EnumCreatureType.MONSTER && this.settings.useMonuments && this.oceanMonumentGenerator.isPositionInStructure(this.world, pos))
{ {
return this.oceanMonumentGenerator.getScatteredFeatureSpawnList(); return this.oceanMonumentGenerator.getMonsters();
} }
} }