Java Code Examples for net.minecraft.init.Blocks.MELON_BLOCK

The following are Jave code examples for showing how to use MELON_BLOCK of the net.minecraft.init.Blocks class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Bewitchment   File: BlockScornedBrickFence.java   View Source Code Vote up 4 votes
protected static boolean isExcepBlockForAttachWithPiston(Block p_194142_0_) {
	return Block.isExceptBlockForAttachWithPiston(p_194142_0_) || p_194142_0_ == Blocks.BARRIER || p_194142_0_ == Blocks.MELON_BLOCK || p_194142_0_ == Blocks.PUMPKIN || p_194142_0_ == Blocks.LIT_PUMPKIN;
}
 
Example 2
Project: Bewitchment   File: BlockFakeIceFence.java   View Source Code Vote up 4 votes
protected static boolean isExcepBlockForAttachWithPiston(Block p_194142_0_) {
	return Block.isExceptBlockForAttachWithPiston(p_194142_0_) || p_194142_0_ == Blocks.BARRIER || p_194142_0_ == Blocks.MELON_BLOCK || p_194142_0_ == Blocks.PUMPKIN || p_194142_0_ == Blocks.LIT_PUMPKIN;
}
 
Example 3
Project: Backmemed   File: BlockStem.java   View Source Code Vote up 4 votes
@Nullable
protected Item getSeedItem()
{
    return this.crop == Blocks.PUMPKIN ? Items.PUMPKIN_SEEDS : (this.crop == Blocks.MELON_BLOCK ? Items.MELON_SEEDS : null);
}
 
Example 4
Project: CustomWorldGen   File: BlockStem.java   View Source Code Vote up 4 votes
@Nullable
protected Item getSeedItem()
{
    return this.crop == Blocks.PUMPKIN ? Items.PUMPKIN_SEEDS : (this.crop == Blocks.MELON_BLOCK ? Items.MELON_SEEDS : null);
}