public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } public boolean containsKey( int key ) {
public boolean isEmpty() { return m.isEmpty(); } public boolean containsKey( int key ) { return m.containsKey( key ); }
if (!raptorData.transferRules.isEmpty() && raptorData.transferRules.containsKey(stopIndex)) { for (TransferRule tr : raptorData.transferRules.get(stopIndex)) { if (tr.matches(raptorData.timetablesForPattern.get(previousPattern), this)) {
@Override public boolean isEmpty() { return elements.isEmpty(); }
@Override public List<JDA> getElementsByName(String name, boolean ignoreCase) { Checks.notEmpty(name, "Name"); if (elements.isEmpty()) return Collections.emptyList(); List<JDA> list = new LinkedList<>(); for (JDA elem : elements.valueCollection()) { String elementName = elem.getShardInfo().getShardString(); if (elementName != null) { if (ignoreCase) { if (elementName.equalsIgnoreCase(name)) list.add(elem); } else { if (elementName.equals(name)) list.add(elem); } } } return list; }
/** * {@inheritDoc} */ public boolean isEmpty() { return map.isEmpty(); }
/** * {@inheritDoc} */ public boolean isEmpty() { return edges.isEmpty(); }
/** * {@inheritDoc} */ public boolean isEmpty() { return map.isEmpty(); }
@Override public boolean isEmpty() { return m.isEmpty(); } @Override
@Override public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } @Override
public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } public boolean containsKey( int key ) {
public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } public boolean containsKey( int key ) {
public boolean isEmpty() { return m.isEmpty(); } public boolean containsKey( int key ) { return m.containsKey( key ); }
public boolean isEmpty(){ synchronized( mutex ) { return m.isEmpty(); } } public boolean containsKey( int key ) {
@Override public boolean hasPositions() { return !positions.isEmpty(); }
public boolean hasReplacements(final PlacementStage stage){ if(!this.hasReplacements()) return false; final TIntObjectMap<List<WorldGeneratorWrapper<?>>> entries = DecorationManager.globalGenerators.get(stage); if(entries == null || entries.isEmpty()){ final TIntObjectMap<List<WorldGeneratorWrapper<?>>> localEntries = this.generators.get(stage); return localEntries != null && !localEntries.isEmpty(); }else if(entries != null && !entries.isEmpty()) return true; return false; }
public boolean hasReplacements(final PlacementStage stage){ if(!this.hasReplacements()) return false; final TIntObjectMap<BlockReplacementEntryList> entries = BlockReplacementManager.globalBlockReplacements.get(stage); if(entries == null || entries.isEmpty()){ final TIntObjectMap<BlockReplacementEntryList> localEntries = this.blockReplacements.get(stage); return localEntries != null && !localEntries.isEmpty(); }else if(entries != null && !entries.isEmpty()) return true; return false; }
@SubscribeEvent(priority = EventPriority.HIGH) public void onOreGen(final OreGenEvent.GenerateMinable e){ if(BiomeEventHandler.oreTypes.isEmpty()) return; final Biome gen = e.getWorld().getBiome(e.getPos()); if((BiomeEventHandler.oreTypes.containsKey(Biome.getIdForBiome(gen))) && (BiomeEventHandler.oreTypes.get(Biome.getIdForBiome(gen)).contains(e.getType().name()) || BiomeEventHandler.oreTypes.get(Biome.getIdForBiome(gen)).contains("all"))) e.setResult(Result.DENY); }
@SubscribeEvent(priority = EventPriority.HIGH) public void onBiomeDecorate(final DecorateBiomeEvent.Decorate e){ if(BiomeEventHandler.decorateTypes.isEmpty()) return; final Biome gen = e.getWorld().getBiome(e.getChunkPos().getBlock(0, 0, 0)); if((BiomeEventHandler.decorateTypes.containsKey(Biome.getIdForBiome(gen))) && (BiomeEventHandler.decorateTypes.get(Biome.getIdForBiome(gen)).contains(e.getType().name()) || BiomeEventHandler.decorateTypes.get(Biome.getIdForBiome(gen)).contains("all"))) e.setResult(Result.DENY); }
@SubscribeEvent(priority = EventPriority.HIGH) public void onBiomePopulate(final PopulateChunkEvent.Populate e){ if(BiomeEventHandler.populateTypes.isEmpty()) return; final Biome gen = e.getWorld().getBiome(new ChunkPos(e.getChunkX(), e.getChunkZ()).getBlock(8, 0, 8)); if((BiomeEventHandler.populateTypes.containsKey(Biome.getIdForBiome(gen))) && (BiomeEventHandler.populateTypes.get(Biome.getIdForBiome(gen)).contains(e.getType().name()) || BiomeEventHandler.populateTypes.get(Biome.getIdForBiome(gen)).contains("all"))) e.setResult(Result.DENY); }