Examples of PickupBuilder


Examples of org.terasology.logic.inventory.PickupBuilder

    private PickupBuilder pickupBuilder;

    @Override
    public void initialise() {
        pickupBuilder = new PickupBuilder(entityManager);
    }
View Full Code Here

Examples of org.terasology.logic.inventory.PickupBuilder

    private PickupBuilder pickupBuilder;

    @Override
    public void initialise() {
        pickupBuilder = new PickupBuilder(entityManager);
    }
View Full Code Here

Examples of org.terasology.logic.inventory.PickupBuilder

    private Random random;

    @Override
    public void initialise() {
        blockItemFactory = new BlockItemFactory(entityManager);
        pickupBuilder = new PickupBuilder(entityManager);
        random = new FastRandom();
    }
View Full Code Here

Examples of org.terasology.logic.inventory.PickupBuilder

    private Random random;

    @Override
    public void initialise() {
        blockItemFactory = new BlockItemFactory(entityManager);
        pickupBuilder = new PickupBuilder(entityManager);
        random = new FastRandom();
    }
View Full Code Here

Examples of org.terasology.logic.inventory.PickupBuilder

                for (Side side : Side.values()) {
                    validateSupportForBlockOnSide(event.getBlockPosition(), side);
                }

                if (initialEvent) {
                    PickupBuilder pickupBuilder = new PickupBuilder(entityManager);
                    for (int i = 0; i < GATHERING_INVENTORY_SLOT_COUNT; i++) {
                        EntityRef item = inventoryManager.getItemInSlot(gatheringEntity, i);
                        if (item.exists()) {
                            pickupBuilder.createPickupFor(item, event.getBlockPosition().toVector3f(), 60, true);
                        }
                    }
                }
            } finally {
                if (initialEvent) {
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.