cn.nukkit.item.ItemString Java Examples
The following examples show how to use
cn.nukkit.item.ItemString.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BlockCobweb.java From Jupiter with GNU General Public License v3.0 | 6 votes |
@Override public Item[] getDrops(Item item) { if (item.isShears() || item.isSword()) { if (item.isSilkTouch()){ return new Item[]{ this.toItem() }; } else { return new Item[]{ new ItemString() }; } } else { return new Item[0]; } }
Example #2
Source File: BlockCobweb.java From Nukkit with GNU General Public License v3.0 | 5 votes |
@Override public Item[] getDrops(Item item) { if (item.isShears() || item.isSword()) { return new Item[]{ new ItemString() }; } else { return new Item[0]; } }
Example #3
Source File: BlockCobweb.java From Nukkit with GNU General Public License v3.0 | 5 votes |
@Override public Item[] getDrops(Item item) { if (item.isShears() || item.isSword()) { return new Item[]{ new ItemString() }; } else { return new Item[0]; } }
Example #4
Source File: EntitySpider.java From Jupiter with GNU General Public License v3.0 | 4 votes |
@Override public Item[] getDrops() { return new Item[]{new ItemString(0, random.nextRange(0, 2)), new ItemSpiderEye(0, random.nextRange(0, 1))}; }
Example #5
Source File: EntityCaveSpider.java From Jupiter with GNU General Public License v3.0 | 4 votes |
@Override public Item[] getDrops() { return new Item[]{new ItemString(0, random.nextRange(0, 2)), new ItemSpiderEye(0, random.nextRange(0, 1))}; }
Example #6
Source File: BlockTripWire.java From Jupiter with GNU General Public License v3.0 | 4 votes |
@Override public Item toItem() { return new ItemString(); }
Example #7
Source File: BlockTripWire.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public Item toItem() { return new ItemString(); }
Example #8
Source File: BlockTripWire.java From Nukkit with GNU General Public License v3.0 | 4 votes |
@Override public Item toItem() { return new ItemString(); }