Examples of BlockComponent


Examples of edu.indiana.extreme.xbaya.component.system.BlockComponent

    /**
     * @see edu.indiana.extreme.xbaya.graph.impl.NodeImpl#getComponent()
     */
    @Override
    public BlockComponent getComponent() {
        BlockComponent component = (BlockComponent) super.getComponent();
        if (component == null) {
            // The component is null when read from the graph XML.
            component = new BlockComponent();
            setComponent(component);
        }
        return component;
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.system.BlockComponent

    /**
     * @see org.apache.airavata.workflow.model.graph.impl.NodeImpl#getComponent()
     */
    @Override
    public BlockComponent getComponent() {
        BlockComponent component = (BlockComponent) super.getComponent();
        if (component == null) {
            // The component is null when read from the graph XML.
            component = new BlockComponent();
            setComponent(component);
        }
        return component;
    }
View Full Code Here

Examples of org.apache.airavata.workflow.model.component.system.BlockComponent

        this.componentMap.put(ReceiveComponent.NAME, new ReceiveComponent());
        this.componentMap.put(ForEachComponent.NAME, new ForEachComponent());
        this.componentMap.put(EndForEachComponent.NAME, new EndForEachComponent());
        this.componentMap.put(DoWhileComponent.NAME, new DoWhileComponent());
        this.componentMap.put(EndDoWhileComponent.NAME, new EndDoWhileComponent());
        this.componentMap.put(BlockComponent.NAME, new BlockComponent());
        this.componentMap.put(EndBlockComponent.NAME, new EndBlockComponent());
        this.componentMap.put(DynamicComponent.NAME, new DynamicComponent());
        this.componentMap.put(StreamSourceComponent.NAME, new StreamSourceComponent());
        this.componentMap.put(ExitComponent.NAME, new ExitComponent());
    }
View Full Code Here

Examples of org.apache.airavata.xbaya.component.system.BlockComponent

        this.componentMap.put(IfComponent.NAME, new IfComponent());
        this.componentMap.put(EndifComponent.NAME, new EndifComponent());
        this.componentMap.put(ReceiveComponent.NAME, new ReceiveComponent());
        this.componentMap.put(ForEachComponent.NAME, new ForEachComponent());
        this.componentMap.put(EndForEachComponent.NAME, new EndForEachComponent());
        this.componentMap.put(BlockComponent.NAME, new BlockComponent());
        this.componentMap.put(EndBlockComponent.NAME, new EndBlockComponent());
        this.componentMap.put(DynamicComponent.NAME, new DynamicComponent());
        this.componentMap.put(StreamSourceComponent.NAME, new StreamSourceComponent());
        this.componentMap.put(ExitComponent.NAME, new ExitComponent());
View Full Code Here

Examples of org.apache.airavata.xbaya.component.system.BlockComponent

    /**
     * @see org.apache.airavata.xbaya.graph.impl.NodeImpl#getComponent()
     */
    @Override
    public BlockComponent getComponent() {
        BlockComponent component = (BlockComponent) super.getComponent();
        if (component == null) {
            // The component is null when read from the graph XML.
            component = new BlockComponent();
            setComponent(component);
        }
        return component;
    }
View Full Code Here

Examples of org.spout.api.component.block.BlockComponent

    if (Spout.getEventManager().callEvent(event).isCancelled()) {
      return;
    }
    super.onInteract(entity, block, type, clickedFace);
    for (Class<? extends BlockComponent> c : getComponents()) {
      BlockComponent get = block.get(c);
      if (get != null) {
        get.onInteract(event);
      }
    }
  }
View Full Code Here

Examples of org.terasology.world.block.BlockComponent

            if (netComp.getNetworkId() != updateEntity.getNetId()) {
                logger.error("Network ID wrong before update");
            }
            boolean blockEntityBefore = currentEntity.hasComponent(BlockComponent.class);
            entitySerializer.deserializeOnto(currentEntity, updateEntity.getEntity());
            BlockComponent blockComponent = currentEntity.getComponent(BlockComponent.class);
            if (blockComponent != null && !blockEntityBefore) {
                if (!blockEntityRegistry.getExistingBlockEntityAt(blockComponent.getPosition()).equals(currentEntity)) {
                    logger.error("Failed to associated new block entity");
                }
            }
            if (netComp.getNetworkId() != updateEntity.getNetId()) {
                logger.error("Network ID lost in update: {}, {} -> {}", currentEntity, updateEntity.getNetId(), netComp.getNetworkId());
View Full Code Here

Examples of org.terasology.world.block.BlockComponent

    }

    private void broadcastEvent(EntityRef entity, Event event, EventMetadata metadata) {
        if (networkSystem.getMode().isServer()) {
            NetworkComponent netComp = entity.getComponent(NetworkComponent.class);
            BlockComponent blockComp = entity.getComponent(BlockComponent.class);
            if (netComp != null || blockComp != null) {
                Client instigatorClient = null;
                if (metadata.isSkipInstigator() && event instanceof NetworkEvent) {
                    instigatorClient = networkSystem.getOwner(((NetworkEvent) event).getInstigator());
                }
View Full Code Here

Examples of org.terasology.world.block.BlockComponent

        // Display the block the player is aiming at
        if (config.getRendering().isRenderPlacingBox()) {
            EntityRef target = cameraTargetSystem.getTarget();
            Vector3i blockPos = cameraTargetSystem.getTargetBlockPosition();
            AABB aabb = null;
            BlockComponent blockComp = target.getComponent(BlockComponent.class);
            BlockRegionComponent blockRegion = target.getComponent(BlockRegionComponent.class);
            if (blockComp != null || blockRegion != null) {
                Block block = worldProvider.getBlock(blockPos);
                aabb = block.getBounds(blockPos);
            } else {
View Full Code Here

Examples of org.terasology.world.block.BlockComponent

        createEntity(name, color, entityManager);
    }

    @Override
    public void send(Event event, EntityRef target) {
        BlockComponent blockComp = target.getComponent(BlockComponent.class);
        if (blockComp != null) {
            if (relevantChunks.contains(TeraMath.calcChunkPos(blockComp.getPosition()))) {
                queuedOutgoingEvents.add(NetData.EventMessage.newBuilder()
                        .setTargetBlockPos(NetMessageUtil.convert(blockComp.getPosition()))
                        .setEvent(eventSerializer.serialize(event)).build());
            }
        } else {
            NetworkComponent networkComponent = target.getComponent(NetworkComponent.class);
            if (networkComponent != null) {
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.