Package net.minecraft.tileentity

Examples of net.minecraft.tileentity.TileEntity.markDirty()


    @Override
    public void markDirty() {
        super.markDirty();
        TileEntity tile = getTile();
        if (tile != null)
            tile.markDirty();
    }

    @Override
    public int getSizeInventory() {
        TileEntity tile = getTile();
View Full Code Here


    private void handleMobSpawnerID(World world, BlockCoord coord, String mobtype) {
        TileEntity tile = world.getTileEntity(coord.x, coord.y, coord.z);
        if (tile instanceof TileEntityMobSpawner) {
            ((TileEntityMobSpawner) tile).func_145881_a().setEntityName(mobtype);
            tile.markDirty();
            world.markBlockForUpdate(coord.x, coord.y, coord.z);
        }
    }

    private void handlePropertyChange(EntityPlayerMP sender, PacketCustom packet) {
View Full Code Here

      ItemStack[] extracted = checkExtract(inventory, true, side.getOpposite());
      if (extracted == null) {
        return;
      }

      tile.markDirty();

      for (ItemStack stack : extracted) {
        if (stack == null || stack.stackSize == 0) {
          battery.useEnergy(10, 10, false);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.