Examples of identify()


Examples of net.aufdemrand.denizen.objects.dEntity.identify()

                        for (dEntity entity: entities) {
                            if (arrows.containsKey(entity.getUUID())) {
                                dEntity hit = arrows.get(entity.getUUID());
                                arrows.remove(entity.getUUID());
                                if (hit != null) {
                                    hitEntities.add(hit.identify());
                                }
                            }
                        }
                        queue.addDefinition("hit_entities", hitEntities.identify());
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dItem.identify()

            else if (arg.matchesPrimitive(aH.PrimitiveType.Integer))
                quantity = aH.getIntegerFrom(arg.getValue());
        }

        if (context.getPlayer().getPlayerEntity().getInventory().containsAtLeast(contains.getItemStack(), quantity)) {
            dB.echoDebug(context.getScriptContainer(), "...player has " + contains.identify() + ".");
            return true;

        } else {
            dB.echoDebug(context.getScriptContainer(), "...player doesn't have " + contains.identify() + ".");
            return false;
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dItem.identify()

        if (context.getPlayer().getPlayerEntity().getInventory().containsAtLeast(contains.getItemStack(), quantity)) {
            dB.echoDebug(context.getScriptContainer(), "...player has " + contains.identify() + ".");
            return true;

        } else {
            dB.echoDebug(context.getScriptContainer(), "...player doesn't have " + contains.identify() + ".");
            return false;
        }
    }
}
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dList.identify()

                                if (hit != null) {
                                    hitEntities.add(hit.identify());
                                }
                            }
                        }
                        queue.addDefinition("hit_entities", hitEntities.identify());

                        // Start it!
                        queue.start();
                    }
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dList.identify()

                }
            }
            // If lines were specified, but an objective was not, remove the
            // lines from every objective
            else if (!lines.isEmpty()) {
                dB.echoDebug(scriptEntry, "Removing lines " + lines.identify() +
                        " from all objectives in scoreboard " + id.asString());

                for (String line : lines) {
                    line = line.replaceAll("[pP]@", "");
                    ScoreboardHelper.removePlayer(id.asString(), getOfflinePlayer(line));
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dLocation.identify()

        // If duration set, schedule a delayed task.
        if (duration > 0) {
            // If this block already had a delayed task, cancel it.
            if (taskMap.containsKey(interactLocation))
                try { DenizenAPI.getCurrentInstance().getServer().getScheduler().cancelTask(taskMap.get(interactLocation)); } catch (Exception e) { }
            dB.log("Setting delayed task 'SWITCH' for " + interactLocation.identify());
            // Store new delayed task ID, for checking against, then schedule new delayed task.
            taskMap.put(interactLocation, DenizenAPI.getCurrentInstance().getServer().getScheduler().scheduleSyncDelayedTask(DenizenAPI.getCurrentInstance(),
                    new Runnable() {
                        public void run() {
                    // Check to see if the state of the block is what is expected. If switched during
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dScript.identify()

            // Delays are in ticks, so let's multiply our duration (which is in seconds) by 20.
            // 20 ticks per second.
            long delay = (long) (duration.getSeconds() * 20);

            // Set delayed task and put id in a map
            dB.log("Setting delayed task 'RESET ZAP' for '" + script.identify() + "'");
            durations.put(((BukkitScriptEntryData)scriptEntry.entryData).getPlayer().getSaveName() + "," + script.getName(),
                    DenizenAPI.getCurrentInstance().getServer().getScheduler().scheduleSyncDelayedTask(DenizenAPI.getCurrentInstance(),
                            new Runnable() {
                                @Override
                                public void run() {
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dScript.identify()

            durations.put(((BukkitScriptEntryData)scriptEntry.entryData).getPlayer().getSaveName() + "," + script.getName(),
                    DenizenAPI.getCurrentInstance().getServer().getScheduler().scheduleSyncDelayedTask(DenizenAPI.getCurrentInstance(),
                            new Runnable() {
                                @Override
                                public void run() {
                                    dB.log("Running delayed task 'RESET ZAP' for '" + script.identify() + "'");
                                    try {
                                        durations.remove(((BukkitScriptEntryData)scriptEntry.entryData).getPlayer().getSaveName() + "," + script.getName().toUpperCase());
                                        execute(scriptEntry);
                                    } catch (CommandExecutionException e) {
                                        dB.echoError(scriptEntry.getResidingQueue(), "Could not run delayed task!");
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dWorld.identify()

    public void onChunkLoad(ChunkUnloadEvent event) {
        Map<String, dObject> context = new HashMap<String, dObject>();
        dWorld world = new dWorld(event.getWorld());
        context.put("chunk", new dChunk(event.getChunk()));
        String determination = EventManager.doEvents(Arrays.asList("chunk unloads",
                "chunk unloads " + world.identify()), null, null, context, true);
        if (determination.equalsIgnoreCase("cancelled"))
            event.setCancelled(true);
    }
}
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.View.identify()

            getViewManager().getSpy().addTrace(this, "mouse location within node view", location);
            getViewManager().getSpy().addTrace("----");
            return getView();
        } else {
            location.subtract(subview.getLocation());
            return subview.identify(location);
        }
    }

    @Override
    public void invalidateContent() {
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.