Java Code Examples for net.minecraft.init.Items.PUMPKIN_SEEDS

The following are Jave code examples for showing how to use PUMPKIN_SEEDS of the net.minecraft.init.Items 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: 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 2
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);
}