net.minecraft.block.BlockJukebox.TileEntityJukebox Java Examples
The following examples show how to use
net.minecraft.block.BlockJukebox.TileEntityJukebox.
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: CraftJukebox.java From Kettle with GNU General Public License v3.0 | 5 votes |
@Override public boolean eject() { requirePlaced(); TileEntity tileEntity = this.getTileEntityFromWorld(); if (!(tileEntity instanceof TileEntityJukebox)) return false; TileEntityJukebox jukebox = (TileEntityJukebox) tileEntity; boolean result = !jukebox.getRecord().isEmpty(); CraftWorld world = (CraftWorld) this.getWorld(); ((BlockJukebox) Blocks.JUKEBOX).dropRecord(world.getHandle(), new BlockPos(getX(), getY(), getZ()), null); return result; }
Example #2
Source File: CraftJukebox.java From Kettle with GNU General Public License v3.0 | 4 votes |
public CraftJukebox(final Block block) { super(block, TileEntityJukebox.class); }
Example #3
Source File: CraftJukebox.java From Kettle with GNU General Public License v3.0 | 4 votes |
public CraftJukebox(final Material material, TileEntityJukebox te) { super(material, te); }
Example #4
Source File: CraftJukebox.java From Thermos with GNU General Public License v3.0 | 4 votes |
public CraftJukebox(final Block block) { super(block); world = (CraftWorld) block.getWorld(); jukebox = (TileEntityJukebox) world.getTileEntityAt(getX(), getY(), getZ()); }
Example #5
Source File: AdapterRecordPlayer.java From OpenPeripheral-Integration with MIT License | 4 votes |
@Override public Class<?> getTargetClass() { return TileEntityJukebox.class; }
Example #6
Source File: AdapterRecordPlayer.java From OpenPeripheral-Integration with MIT License | 4 votes |
@ScriptCallable(returnTypes = ReturnType.TABLE, description = "Get the record currently being played") public ItemStack getRecord(TileEntityJukebox recordPlayer) { return recordPlayer.func_145856_a(); }