From b94f4c0ed8092992f06c99ec71224183da21125f Mon Sep 17 00:00:00 2001 From: Forstride Date: Fri, 5 Feb 2016 22:44:25 -0500 Subject: [PATCH] Removed old rock formation blocks (Is this proof enough for you?) --- .../common/block/BlockBOPStoneFormations.java | 111 ------------------ .../biomesoplenty/common/init/ModBlocks.java | 2 - .../blockstates/stone_formations.json | 6 - .../assets/biomesoplenty/lang/en_US.lang | 2 - .../models/block/stalactite.json | 6 - .../models/block/stalagmite.json | 6 - .../biomesoplenty/models/item/stalactite.json | 18 --- .../biomesoplenty/models/item/stalagmite.json | 18 --- .../textures/blocks/stalactite.png | Bin 273 -> 0 bytes .../textures/blocks/stalagmite.png | Bin 281 -> 0 bytes 10 files changed, 169 deletions(-) delete mode 100644 src/main/java/biomesoplenty/common/block/BlockBOPStoneFormations.java delete mode 100644 src/main/resources/assets/biomesoplenty/blockstates/stone_formations.json delete mode 100644 src/main/resources/assets/biomesoplenty/models/block/stalactite.json delete mode 100644 src/main/resources/assets/biomesoplenty/models/block/stalagmite.json delete mode 100644 src/main/resources/assets/biomesoplenty/models/item/stalactite.json delete mode 100644 src/main/resources/assets/biomesoplenty/models/item/stalagmite.json delete mode 100644 src/main/resources/assets/biomesoplenty/textures/blocks/stalactite.png delete mode 100644 src/main/resources/assets/biomesoplenty/textures/blocks/stalagmite.png diff --git a/src/main/java/biomesoplenty/common/block/BlockBOPStoneFormations.java b/src/main/java/biomesoplenty/common/block/BlockBOPStoneFormations.java deleted file mode 100644 index 63a85ed0b..000000000 --- a/src/main/java/biomesoplenty/common/block/BlockBOPStoneFormations.java +++ /dev/null @@ -1,111 +0,0 @@ -/******************************************************************************* - * Copyright 2014-2016, the Biomes O' Plenty Team - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. - ******************************************************************************/ - -package biomesoplenty.common.block; - -import net.minecraft.block.Block; -import net.minecraft.block.properties.IProperty; -import net.minecraft.block.properties.PropertyEnum; -import net.minecraft.block.state.BlockState; -import net.minecraft.block.state.IBlockState; -import net.minecraft.init.Blocks; -import net.minecraft.util.BlockPos; -import net.minecraft.util.IStringSerializable; -import net.minecraft.world.IBlockAccess; -import net.minecraft.world.World; - -public class BlockBOPStoneFormations extends BlockBOPDecoration -{ - - // add properties - public static enum StoneFormationType implements IStringSerializable - { - STALACTITE, STALAGMITE; - @Override - public String getName() - { - return this.name().toLowerCase(); - } - @Override - public String toString() - { - return this.getName(); - } - }; - public static final PropertyEnum VARIANT = PropertyEnum.create("variant", StoneFormationType.class); - @Override - protected BlockState createBlockState() {return new BlockState(this, new IProperty[] { VARIANT });} - - - // implement IBOPBlock - @Override - public IProperty[] getPresetProperties() { return new IProperty[] {VARIANT}; } - @Override - public IProperty[] getNonRenderingProperties() { return null; } - @Override - public String getStateName(IBlockState state) - { - return ((StoneFormationType) state.getValue(VARIANT)).getName(); - } - - - // constructor - public BlockBOPStoneFormations() { - - // set some defaults - this.setHardness(0.5F); - this.setStepSound(Block.soundTypePiston); - this.setDefaultState( this.blockState.getBaseState().withProperty(VARIANT, StoneFormationType.STALAGMITE) ); - } - - // map from state to meta and vice verca - @Override - public IBlockState getStateFromMeta(int meta) - { - return this.getDefaultState().withProperty(VARIANT, StoneFormationType.values()[meta]); - } - @Override - public int getMetaFromState(IBlockState state) - { - return ((StoneFormationType) state.getValue(VARIANT)).ordinal(); - } - - // bounding box is not full size and depends on whether it's a stalagmite or stalactite - @Override - public void setBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos) { - switch ((StoneFormationType) worldIn.getBlockState(pos).getValue(VARIANT)) - { - case STALACTITE: - // against top of block for stalactites - this.setBlockBoundsByRadiusAndHeight(0.3F, 0.6F, true); - break; - case STALAGMITE: default: - // against bottom of block for stalagmites - this.setBlockBoundsByRadiusAndHeight(0.3F, 0.6F); - break; - } - } - - // only allow stalactites hanging from stone, and only allow stalagmites on top of stone - @Override - public boolean canBlockStay(World world, BlockPos pos, IBlockState state) - { - IBlockState touching; - switch ((StoneFormationType)state.getValue(VARIANT)) - { - case STALACTITE: - touching = world.getBlockState(pos.up()); - break; - case STALAGMITE: default: - touching = world.getBlockState(pos.down()); - break; - } - return touching.getBlock() == Blocks.stone; - } - -} diff --git a/src/main/java/biomesoplenty/common/init/ModBlocks.java b/src/main/java/biomesoplenty/common/init/ModBlocks.java index b34085116..dc34c7bcb 100644 --- a/src/main/java/biomesoplenty/common/init/ModBlocks.java +++ b/src/main/java/biomesoplenty/common/init/ModBlocks.java @@ -66,7 +66,6 @@ import biomesoplenty.common.block.BlockBOPSand; import biomesoplenty.common.block.BlockBOPSapling; import biomesoplenty.common.block.BlockBOPSeaweed; import biomesoplenty.common.block.BlockBOPStone; -import biomesoplenty.common.block.BlockBOPStoneFormations; import biomesoplenty.common.block.BlockBOPTerrarium; import biomesoplenty.common.block.BlockBOPTurnip; import biomesoplenty.common.block.BlockBOPVine; @@ -116,7 +115,6 @@ public class ModBlocks grass = registerBlock( new BlockBOPGrass(), "grass" ); waterlily = registerBlock( new BlockBOPLilypad(), "waterlily" ); dirt = registerBlock( new BlockBOPDirt(), "dirt" ); - stone_formations = registerBlock( new BlockBOPStoneFormations(), "stone_formations" ); crystal = registerBlock( new BlockBOPCrystal(), "crystal" ); biome_block = registerBlock( new BlockBOPBiomeBlock(), "biome_block" ); diff --git a/src/main/resources/assets/biomesoplenty/blockstates/stone_formations.json b/src/main/resources/assets/biomesoplenty/blockstates/stone_formations.json deleted file mode 100644 index e05c40182..000000000 --- a/src/main/resources/assets/biomesoplenty/blockstates/stone_formations.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "variants": { - "variant=stalagmite": { "model": "biomesoplenty:stalagmite" }, - "variant=stalactite": { "model": "biomesoplenty:stalactite" } - } -} diff --git a/src/main/resources/assets/biomesoplenty/lang/en_US.lang b/src/main/resources/assets/biomesoplenty/lang/en_US.lang index 08941995a..f0e33131c 100644 --- a/src/main/resources/assets/biomesoplenty/lang/en_US.lang +++ b/src/main/resources/assets/biomesoplenty/lang/en_US.lang @@ -425,8 +425,6 @@ tile.stone.siltstone.name=Siltstone tile.stone.polished_siltstone.name=Polished Siltstone tile.stone.shale.name=Shale tile.stone.polished_shale.name=Polished Shale -tile.stone_formations.stalagmite.name=Stalagmite -tile.stone_formations.stalactite.name=Stalactite tile.terrarium.terrarium_fern.name=Fern Terrarium tile.terrarium.terrarium_mushroom.name=Mushroom Terrarium tile.terrarium.terrarium_cactus.name=Cactus Terrarium diff --git a/src/main/resources/assets/biomesoplenty/models/block/stalactite.json b/src/main/resources/assets/biomesoplenty/models/block/stalactite.json deleted file mode 100644 index b4fde795b..000000000 --- a/src/main/resources/assets/biomesoplenty/models/block/stalactite.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "parent": "block/cross", - "textures": { - "cross": "biomesoplenty:blocks/stalactite" - } -} \ No newline at end of file diff --git a/src/main/resources/assets/biomesoplenty/models/block/stalagmite.json b/src/main/resources/assets/biomesoplenty/models/block/stalagmite.json deleted file mode 100644 index d22609fac..000000000 --- a/src/main/resources/assets/biomesoplenty/models/block/stalagmite.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "parent": "block/cross", - "textures": { - "cross": "biomesoplenty:blocks/stalagmite" - } -} \ No newline at end of file diff --git a/src/main/resources/assets/biomesoplenty/models/item/stalactite.json b/src/main/resources/assets/biomesoplenty/models/item/stalactite.json deleted file mode 100644 index b2dc21e0e..000000000 --- a/src/main/resources/assets/biomesoplenty/models/item/stalactite.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parent": "builtin/generated", - "textures": { - "layer0": "biomesoplenty:blocks/stalactite" - }, - "display": { - "thirdperson": { - "rotation": [ -90, 0, 0 ], - "translation": [ 0, 1, -3 ], - "scale": [ 0.55, 0.55, 0.55 ] - }, - "firstperson": { - "rotation": [ 0, -135, 25 ], - "translation": [ 0, 4, 2 ], - "scale": [ 1.7, 1.7, 1.7 ] - } - } -} diff --git a/src/main/resources/assets/biomesoplenty/models/item/stalagmite.json b/src/main/resources/assets/biomesoplenty/models/item/stalagmite.json deleted file mode 100644 index e26e5c37a..000000000 --- a/src/main/resources/assets/biomesoplenty/models/item/stalagmite.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "parent": "builtin/generated", - "textures": { - "layer0": "biomesoplenty:blocks/stalagmite" - }, - "display": { - "thirdperson": { - "rotation": [ -90, 0, 0 ], - "translation": [ 0, 1, -3 ], - "scale": [ 0.55, 0.55, 0.55 ] - }, - "firstperson": { - "rotation": [ 0, -135, 25 ], - "translation": [ 0, 4, 2 ], - "scale": [ 1.7, 1.7, 1.7 ] - } - } -} diff --git a/src/main/resources/assets/biomesoplenty/textures/blocks/stalactite.png b/src/main/resources/assets/biomesoplenty/textures/blocks/stalactite.png deleted file mode 100644 index ee8c0e4dbdc30cbe1da6b861de47072be66b9c3f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 273 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DjSK$uZf!>a)(C{^MbQ4*Y=R#Ki=l*$m0n3-3i=jR%tP-d)Ws%L2E{@KYKsH)e~ z#WBRf|L6oqz6J#W=AQ!Qelb7)&%V~<>Dzks#L2@c-rGfzU+#6!)}0ZMz4xr)u}#J6 zU5-RDiELC^A#i!CkE7p({={$a&U!atmi3Zn<%?wGPqtrt!?*h< P&|wUou6{1-oD!Mq|Kvf-{E{-7<{!1qYay1z6INQGCyYOE&(S2RFKt@_>n7y2-Z-*;?`G414 zYbNMvFFDQia#ItB@oZ;iYnLzgo?ke?C#bO^PBE#+u$`@}qoVlWtL}?YzvCFLabGj| zlFY~>_96d)WVqqs*gs+0nP$vrNj$fO!Ep~KTS5n`4*SL3Tp2D&8cow(a?|RVgqm(` UIW8=~19TIEr>mdKI;Vst0RD?zA^-pY