Package org.terasology.world

Examples of org.terasology.world.OnChangedBlock


        if (forceEntityUpdate || !(Objects.equal(oldType.getBlockFamily(), type.getBlockFamily()) && Objects.equal(oldType.getPrefab(), type.getPrefab()))) {
            updateBlockEntityComponents(blockEntity, oldType, type, retainComponents);
        }
        EntityRef regionEntity = blockRegionLookup.get(pos);
        if (regionEntity != null) {
            regionEntity.send(new OnChangedBlock(pos, type, oldType));
        }
        blockEntity.send(new OnChangedBlock(new Vector3i(pos), type, oldType));
    }
View Full Code Here

TOP

Related Classes of org.terasology.world.OnChangedBlock

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.