From f160e90738f7f7b9e5d6b5260ef22411f3ec9a5d Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 24 Feb 2012 21:55:52 -0800 Subject: [PATCH] Deleted Deprecated interfaces. --- .../src/forge/IBlockSecondaryProperties.java | 54 ------------------- .../minecraft/src/forge/IUseItemFirst.java | 31 ----------- 2 files changed, 85 deletions(-) delete mode 100644 forge/forge_common/net/minecraft/src/forge/IBlockSecondaryProperties.java delete mode 100644 forge/forge_common/net/minecraft/src/forge/IUseItemFirst.java diff --git a/forge/forge_common/net/minecraft/src/forge/IBlockSecondaryProperties.java b/forge/forge_common/net/minecraft/src/forge/IBlockSecondaryProperties.java deleted file mode 100644 index 310da675c7..0000000000 --- a/forge/forge_common/net/minecraft/src/forge/IBlockSecondaryProperties.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * This software is provided under the terms of the Minecraft Forge Public - * License v1.0. - */ - -package net.minecraft.src.forge; - -import net.minecraft.src.World; - -/** - * This interface provides access to a number of secondary block properties through providing - * overrides to methods within world.class. - * - * This interface is DEPRECATED. The functions are now provided directly by - * Block. - */ - -public interface IBlockSecondaryProperties -{ - /** - * Return true if this block should be treated as a normal cube by game logic - * (this is independant of rendering), false otherwise. This allows for things like secondary - * blocks (torches, rails, redstone dust, etc.) being attached to the surface of - * the block regardless of whether it is opaque, or posesses other rendering properties that - * would not normally make this possible. - */ - public boolean isBlockNormalCube( World world, int i, int j, int k ); - - /** - * Return true if this block can be replaced by another by the player, false otherwise. This provides - * a means of allowing blocks to not be considered when the player attempts to place another within - * their bounds, in the same way that water, lava, fire, and some other blocks behave within the game. - * Provides an override to the coresponding section in canBlockBePlacedAt() in world.class - */ - public boolean isBlockReplaceable( World world, int i, int j, int k ); - - /** - * Return true if this block should set fire and deal fire damage to entities coming into contact with - * it, false otherwise. Provides an override to the related test within isBoundingBoxBurning() within - * world.class - */ - public boolean isBlockBurning( World world, int i, int j, int k ); - - /** - * Return true if this block should be treated as an air block by the rest of the code, false - * otherwise. This method is primarily useful for creating pure logic-blocks that will be invisible - * to the player and otherwise interact as air would. - * Provides an override to isAirBlock() within world.class - */ - public boolean isAirBlock( World world, int i, int j, int k ); - -} - - diff --git a/forge/forge_common/net/minecraft/src/forge/IUseItemFirst.java b/forge/forge_common/net/minecraft/src/forge/IUseItemFirst.java deleted file mode 100644 index 7584f215c5..0000000000 --- a/forge/forge_common/net/minecraft/src/forge/IUseItemFirst.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * This software is provided under the terms of the Minecraft Forge Public - * License v1.0. - */ - -package net.minecraft.src.forge; - -import net.minecraft.src.EntityPlayer; -import net.minecraft.src.Item; -import net.minecraft.src.ItemStack; -import net.minecraft.src.World; - -/** - * This interface is to be implemented by item classes. It will allow an item - * to perform a use before the block is activated. - * - * @deprecated This interface is no longer used, the function has been moved to - * Item. The functionality remains, it simply does not require this interface - * any further. - * @see Item - */ -public interface IUseItemFirst { - - /** - * This is called when the item is used, before the block is activated. - * Stop the computation when return true. - */ - public boolean onItemUseFirst(ItemStack ist, - EntityPlayer player, World world, - int i, int j, int k, int l); -}