Missing override annotations

This commit is contained in:
Bernhard Bonigl committed 2016-05-14 21:33:49 +02:00
1 parent dd87a326df
commit c497bb516e
6 files changed
+10

No files matched your search

@@ -67,6 +67,7 @@ public abstract class BlockInventory extends BlockContainer {
}
}
@Override
public void breakBlock(World worldIn, BlockPos pos, IBlockState state) {
TileEntity tileentity = worldIn.getTileEntity(pos);
@@ -55,6 +55,7 @@ public abstract class EnumBlockSlab<E extends Enum<E> & EnumBlock.IEnumMeta & IS
/**
* Convert the given metadata into a BlockState for this Block
*/
@Override
public IBlockState getStateFromMeta(int meta) {
return this.getDefaultState().withProperty(prop, fromMeta(meta & 7))
.withProperty(HALF, (meta & 8) == 0 ? BlockSlab.EnumBlockHalf.BOTTOM : BlockSlab.EnumBlockHalf.TOP);
@@ -63,6 +64,7 @@ public abstract class EnumBlockSlab<E extends Enum<E> & EnumBlock.IEnumMeta & IS
/**
* Convert the BlockState into the correct metadata value
*/
@Override
public int getMetaFromState(IBlockState state)
{
int i = 0;
@@ -94,6 +96,7 @@ public abstract class EnumBlockSlab<E extends Enum<E> & EnumBlock.IEnumMeta & IS
return prop;
}
@Override
public Comparable<?> getTypeForItem(ItemStack stack) {
return fromMeta(stack.getItemDamage() & 7);
}
@@ -65,6 +65,7 @@ public class GuiElementScalable extends GuiElement {
return width;
}
@Override
public GuiElementScalable shift(int xd, int yd) {
GuiElementScalable element = new GuiElementScalable(this.x + xd, this.y + yd, this.w, this.h);
element.setTextureSize(this.texW, texH);
@@ -113,6 +113,7 @@ public class GuiWidgetSlider extends GuiWidget {
return this.hidden;
}
@Override
public void draw() {
if(hidden) {
return;
@@ -115,6 +115,7 @@ public abstract class BaseContainer<T extends TileEntity> extends Container {
(double) pos.getZ() + 0.5d) <= maxDist;
}
@Override
@SuppressWarnings("unchecked")
public List<ItemStack> getInventory() {
return super.getInventory();
@@ -211,6 +212,7 @@ public abstract class BaseContainer<T extends TileEntity> extends Container {
}
// Fix for a vanilla bug: doesn't take Slot.getMaxStackSize into account
@Override
protected boolean mergeItemStack(ItemStack stack, int startIndex, int endIndex, boolean useEndIndex) {
boolean ret = mergeItemStackRefill(stack, startIndex, endIndex, useEndIndex);
if(stack != null && stack.stackSize > 0) {
@@ -36,6 +36,7 @@ public class ItemBlockSlab extends ItemBlockMeta {
/**
* Called when a Block is right-clicked with this Item
*/
@Override
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
// don't place the slab if unable to edit
if (stack.stackSize != 0 && player.canPlayerEdit(pos.offset(facing), facing, stack)) {
@@ -111,6 +112,7 @@ public class ItemBlockSlab extends ItemBlockMeta {
}
// adds the "half=bottom" to the item model, so it does not error
@Override
@SuppressWarnings("unchecked")
@SideOnly(Side.CLIENT)
public void registerItemModels() {