Package org.terasology.world.block.entity.damage

Examples of org.terasology.world.block.entity.damage.BlockDamagedComponent


    @ReceiveEvent
    public void onDamaged(OnDamagedEvent event, EntityRef entity, BlockComponent blockComponent, LocationComponent locComp) {
        onDamagedCommon(event, entity, blockComponent.getBlock().getBlockFamily(), locComp.getWorldPosition());
        if (!entity.hasComponent(BlockDamagedComponent.class)) {
            entity.addComponent(new BlockDamagedComponent());
        }
    }
View Full Code Here

TOP

Related Classes of org.terasology.world.block.entity.damage.BlockDamagedComponent

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.