Package net.glowstone.block.entity

Examples of net.glowstone.block.entity.TEMobSpawner


import net.glowstone.block.entity.TileEntity;

public class BlockMobSpawner extends BlockDropless {
    @Override
    public TileEntity createTileEntity(GlowChunk chunk, int cx, int cy, int cz) {
        return new TEMobSpawner(chunk.getBlock(cx, cy, cz));
    }
View Full Code Here


    private int delay;

    public GlowCreatureSpawner(GlowBlock block) {
        super(block);

        TEMobSpawner spawner = getTileEntity();
        spawned = spawner.getSpawning();
        delay = spawner.getDelay();
    }
View Full Code Here

    @Override
    public boolean update(boolean force, boolean applyPhysics) {
        boolean result = super.update(force, applyPhysics);
        if (result) {
            TEMobSpawner spawner = getTileEntity();
            spawner.setSpawning(spawned);
            spawner.setDelay(delay);
            spawner.updateInRange();
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of net.glowstone.block.entity.TEMobSpawner

Copyright © 2018 www.massapicom. 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.