Examples of Gate


Examples of org.bukkit.material.Gate

    if(inData.isValid())
      return;

    if(inData.getAboveBlock().getType() == Material.FENCE_GATE)
    {
      Gate g = (Gate)inData.getAboveBlock().getState().getData();
      if(g.isOpen())
        inData.setValid(true);
    }
    else if(inData.getAboveBlock().getType() == Material.WOOD_DOOR || (!this.m_ironDoor && inData.getAboveBlock().getType() == Material.IRON_DOOR_BLOCK))
    {
      Door d = (Door)inData.getAboveBlock().getState().getData();
View Full Code Here

Examples of org.bukkit.material.Gate

    public void placeBlock(GlowPlayer player, GlowBlockState state, BlockFace face, ItemStack holding, Vector clickedLoc) {
        super.placeBlock(player, state, face, holding, clickedLoc);

        MaterialData materialData = state.getData();
        if (materialData instanceof Gate) {
            Gate gate = (Gate) materialData;
            float yaw = player.getLocation().getYaw();
            gate.setFacingDirection(blockFaceFromYaw(yaw));
            state.update(true);
        } else {
            warnMaterialData(Gate.class, materialData);
        }
    }
View Full Code Here

Examples of org.bukkit.material.Gate

    }

    @Override
    protected void onOpened(GlowPlayer player, GlowBlock block, BlockFace face, Vector clickedLoc, GlowBlockState state, MaterialData materialData) {
        if (materialData instanceof Gate) {
            Gate gate = (Gate) materialData;
            gate.setFacingDirection(getOpenDirection(player.getLocation().getYaw(), gate.getFacing()));
        } else {
            warnMaterialData(Gate.class, materialData);
        }
    }
View Full Code Here

Examples of org.openiaml.model.model.components.Gate

    assertNotGenerated(session);

    Frame required = assertHasFrame(root, "Required Page");
    assertNotGenerated(required);

    Gate gate = session.getEntryGate();
    assertEquals("requires a page is viewed first", gate.getName());
    assertNotGenerated(gate);

    ECARule nav = assertHasNavigateAction(session, gate, required, "first");
    assertNotGenerated(nav);
View Full Code Here

Examples of org.openiaml.model.model.components.Gate

    Button button = assertHasButton(required, "Continue");
    assertGenerated(button);

    Session session = assertHasSession(root, "Session");
    Gate gate = session.getEntryGate();
    assertEquals("requires a page is viewed first", gate.getName());

    Event event = button.getOnClick();
    assertGenerated(event);

    ECARule nav = assertHasNavigateAction(root, event, gate, "resume");
View Full Code Here

Examples of org.openiaml.model.model.components.Gate

   */
  public void testConditionWire() throws Exception {
    root = loadAndInfer(GateRequiredPage.class);

    Session session = assertHasSession(root, "Session");
    Gate gate = session.getEntryGate();
    assertEquals("requires a page is viewed first", gate.getName());

    // generated condition
    ActivityPredicate condition = assertHasActivityPredicate(session, "check requires a page is viewed first");
    assertGenerated(condition);

View Full Code Here

Examples of org.openiaml.model.model.components.Gate

    assertNotGenerated(page2);

    Frame ad = assertHasFrame(session, "Advertisement");
    assertNotGenerated(ad);

    Gate gate = session.getExitGate();
    assertEquals("View Ads Exit Gate", gate.getName());
    assertNotGenerated(gate);

    ECARule nav = assertHasNavigateAction(session, gate, ad, "last");
    assertNotGenerated(nav);
View Full Code Here

Examples of org.openiaml.model.model.components.Gate

  public void testAdPageHasContinueButton() throws Exception {
    root = loadAndInfer(ExitGateAdSimple.class);

    Session session = assertHasSession(root, "Advertising Session");
    Frame ad = assertHasFrame(session, "Advertisement");
    Gate gate = session.getExitGate();
    assertEquals("View Ads Exit Gate", gate.getName());

    Button button = assertHasButton(ad, "Continue");
    assertGenerated(button);

    Event event = button.getOnClick();
View Full Code Here

Examples of org.openiaml.model.model.components.Gate

   */
  public void testConditionWire() throws Exception {
    root = loadAndInfer(ExitGateAdSimple.class);

    Session session = assertHasSession(root, "Advertising Session");
    Gate gate = session.getExitGate();
    assertEquals("View Ads Exit Gate", gate.getName());

    // generated condition
    ActivityPredicate condition = assertHasActivityPredicate(session, "check View Ads Exit Gate");
    assertGenerated(condition);

View Full Code Here

Examples of org.openiaml.model.model.components.Gate

    assertNotGenerated(openid);

    Frame secure = assertHasFrame(session, "Secure Page");
    assertNotGenerated(secure);

    Gate gate = session.getEntryGate();
    assertEquals("Entry Gate", gate.getName());
    assertNotGenerated(gate);

    assertNotGenerated(assertHasRequiresEdge(root, gate, openid));

    Label viewLabel = assertHasLabel(see, "your current ID");
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.