@Override public boolean update(boolean force, boolean applyPhysics) { Block block = getBlock(); return (block.getTypeId() == typeId || force) && block.setTypeIdAndData(typeId, getRawData(), applyPhysics); }
private void checkBlock(Block b, String trigger) { BlockToCheck btt = new BlockToCheck(); btt.loc = b.getLocation(); btt.typeid = b.getTypeId(); btt.data = b.getData(); btt.trigger = trigger; blocks_to_check_accum.add(btt); /* Add to accumulator */ btth.startIfNeeded(); }
private boolean isValidKnockBackBlock(org.bukkit.block.Block block) { final int id = block.getTypeId(); for (final int i : excludedRelativeItems) { if (i == id) { return false; } } return true; }
private boolean isValidKnockBackBlock(org.bukkit.block.Block block) { final int id = block.getTypeId(); for (final int i : excludedRelativeItems) { if (i == id) { return false; } } return true; }
private boolean isValidKnockBackBlock(org.bukkit.block.Block block) { final int id = block.getTypeId(); for (final int i : excludedRelativeItems) { if (i == id) { return false; } } return true; }
private boolean isValidKnockBackBlock(org.bukkit.block.Block block) { final int id = block.getTypeId(); for (final int i : excludedRelativeItems) { if (i == id) { return false; } } return true; }
private boolean isValidKnockBackBlock(org.bukkit.block.Block block) { final int id = block.getTypeId(); for (final int i : excludedRelativeItems) { if (i == id) { return false; } } return true; }
private boolean isValidKnockBackBlock(org.bukkit.block.Block block) { final int id = block.getTypeId(); for (final int i : excludedRelativeItems) { if (i == id) { return false; } } return true; }
private boolean isValidKnockBackBlock(org.bukkit.block.Block block) { final int id = block.getTypeId(); for (final int i : excludedRelativeItems) { if (i == id) { return false; } } return true; }
private boolean isValidKnockBackBlock(org.bukkit.block.Block block) { final int id = block.getTypeId(); for (final int i : excludedRelativeItems) { if (i == id) { return false; } } return true; }
/** * If the block is missing * * @return */ public boolean missingBlock() { Block block = getBlock(); return block.getTypeId() == 0; }
/** * If the block matches the field type stored on the db * * @return */ public boolean matchesBlockType() { Block block = getBlock(); return block.getTypeId() == getTypeId(); }
/** * @param block */ public BlockEntry(Block block) { this.typeId = block.getTypeId(); this.data = block.getData(); this.location = block.getLocation(); }
/** * Returns the block at the sight. Returns null if out of range or if no viable target was found * * @return Block */ public Block getTargetBlock() { this.reset(); while ((getNextBlock() != null) && ((getCurrentBlock().getTypeId() == 0) || this.blockToIgnoreHasValue(getCurrentBlock().getTypeId()))) ; return getCurrentBlock(); }
/** * @param block */ public Unbreakable(Block block) { super(block.getX(), block.getY(), block.getZ(), block.getWorld().getName()); this.type = new BlockTypeEntry(block.getTypeId(), block.getData()); this.dirty = true; }
/** * @param block */ public GriefBlock(Block block) { super(block.getX(), block.getY(), block.getZ(), block.getWorld().getName()); this.type = new BlockTypeEntry(block.getTypeId(), block.getData()); }
/** * @param block */ public TranslocationBlock(Block block) { super(block.getX(), block.getY(), block.getZ(), block.getWorld().getName()); this.type = new BlockTypeEntry(block.getTypeId(), block.getData()); }
/** * @param block * @param owner */ public Unbreakable(Block block, String owner) { super(block.getX(), block.getY(), block.getZ(), block.getWorld().getName()); this.owner = owner; this.type = new BlockTypeEntry(block.getTypeId(), block.getData()); this.dirty = true; }
/** * @param block */ public TranslocationBlock(Field field, Block block) { super(block.getX(), block.getY(), block.getZ(), block.getWorld().getName()); this.type = new BlockTypeEntry(block.getTypeId(), block.getData()); setRelativeCoords(field); }