-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cans cans cans, config for template blacklist
- Loading branch information
Showing
48 changed files
with
578 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
package com.hbm.blocks.generic; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Random; | ||
|
||
import com.hbm.items.ModItems; | ||
import com.hbm.lib.RefStrings; | ||
|
||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.client.renderer.texture.IIconRegister; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.util.ChatComponentText; | ||
import net.minecraft.util.IIcon; | ||
import net.minecraft.world.World; | ||
|
||
public class BlockCanCrate extends Block { | ||
|
||
@SideOnly(Side.CLIENT) | ||
private IIcon iconTop; | ||
@SideOnly(Side.CLIENT) | ||
private IIcon iconBottom; | ||
|
||
public BlockCanCrate(Material p_i45394_1_) { | ||
super(p_i45394_1_); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public void registerBlockIcons(IIconRegister iconRegister) { | ||
|
||
this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":crate_can_top"); | ||
this.iconBottom = iconRegister.registerIcon(RefStrings.MODID + ":crate_can_bottom"); | ||
this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":crate_can_side"); | ||
} | ||
|
||
@Override | ||
@SideOnly(Side.CLIENT) | ||
public IIcon getIcon(int side, int metadata) { | ||
return side == 0 ? this.iconBottom : (side == 1 ? this.iconTop : this.blockIcon); | ||
} | ||
|
||
|
||
@Override | ||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) { | ||
|
||
if(world.isRemote) | ||
{ | ||
player.addChatMessage(new ChatComponentText("The one crate you are allowed to smash!")); | ||
} | ||
|
||
return true; | ||
} | ||
|
||
@Override | ||
public Item getItemDropped(int i, Random rand, int j) { | ||
|
||
List<Item> items = new ArrayList(); | ||
items.add(ModItems.canned_beef); | ||
items.add(ModItems.canned_tuna); | ||
items.add(ModItems.canned_mystery); | ||
items.add(ModItems.canned_pashtet); | ||
items.add(ModItems.canned_cheese); | ||
items.add(ModItems.canned_jizz); | ||
items.add(ModItems.canned_milk); | ||
items.add(ModItems.canned_ass); | ||
items.add(ModItems.canned_pizza); | ||
items.add(ModItems.canned_tomato); | ||
items.add(ModItems.canned_tube); | ||
items.add(ModItems.canned_asbestos); | ||
items.add(ModItems.canned_bhole); | ||
items.add(ModItems.canned_hotdogs); | ||
items.add(ModItems.canned_leftovers); | ||
items.add(ModItems.canned_yogurt); | ||
items.add(ModItems.canned_stew); | ||
items.add(ModItems.canned_chinese); | ||
items.add(ModItems.canned_oil); | ||
items.add(ModItems.canned_fist); | ||
items.add(ModItems.canned_spam); | ||
items.add(ModItems.canned_fried); | ||
items.add(ModItems.canned_napalm); | ||
items.add(ModItems.canned_diesel); | ||
items.add(ModItems.canned_kerosene); | ||
items.add(ModItems.canned_recursion); | ||
items.add(ModItems.canned_bark); | ||
items.add(ModItems.can_smart); | ||
items.add(ModItems.can_creature); | ||
items.add(ModItems.can_redbomb); | ||
items.add(ModItems.can_mrsugar); | ||
items.add(ModItems.can_overcharge); | ||
items.add(ModItems.can_luna); | ||
items.add(ModItems.can_breen); | ||
items.add(ModItems.can_bepis); | ||
|
||
return items.get(rand.nextInt(items.size())); | ||
} | ||
|
||
@Override | ||
public int quantityDropped(Random rand) { | ||
|
||
return 5 + rand.nextInt(4); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.