Some koloboke replacements
This commit is contained in:
@@ -336,7 +336,7 @@ public class CraftWorld implements World {
|
||||
chunks.add(getChunkAt(ChunkCoordIntPair.a(coord), ChunkCoordIntPair.b(coord)));
|
||||
}
|
||||
|
||||
return Collections.unmodifiableCollection(chunks);
|
||||
return com.koloboke.collect.set.hash.HashObjSets.newImmutableSet(chunks); // Akarin - koloboke
|
||||
}
|
||||
|
||||
public WorldServer getHandle() {
|
||||
|
||||
@@ -25,6 +25,6 @@ public class CraftAdvancement implements org.bukkit.advancement.Advancement {
|
||||
|
||||
@Override
|
||||
public Collection<String> getCriteria() {
|
||||
return Collections.unmodifiableCollection(handle.getCriteria().keySet());
|
||||
return com.koloboke.collect.set.hash.HashObjSets.newImmutableSet(handle.getCriteria().keySet()); // Akarin - koloboke
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,11 +49,11 @@ public class CraftAdvancementProgress implements AdvancementProgress {
|
||||
|
||||
@Override
|
||||
public Collection<String> getRemainingCriteria() {
|
||||
return Collections.unmodifiableCollection(Lists.newArrayList(handle.getRemainingCriteria()));
|
||||
return com.koloboke.collect.set.hash.HashObjSets.newImmutableSet(Lists.newArrayList(handle.getRemainingCriteria())); // Akarin - koloboke
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<String> getAwardedCriteria() {
|
||||
return Collections.unmodifiableCollection(Lists.newArrayList(handle.getAwardedCriteria()));
|
||||
return com.koloboke.collect.set.hash.HashObjSets.newImmutableSet(Lists.newArrayList(handle.getAwardedCriteria())); // Akarin - koloboke
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1992,7 +1992,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
ret.add( getServer().getPlayer( u ) );
|
||||
}
|
||||
|
||||
return java.util.Collections.unmodifiableSet( ret );
|
||||
return com.koloboke.collect.set.hash.HashObjSets.newImmutableSet( ret ); // Akarin - koloboke
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -22,6 +22,6 @@ public class CraftBlockTag extends CraftTag<Block, Material> {
|
||||
|
||||
@Override
|
||||
public Set<Material> getValues() {
|
||||
return Collections.unmodifiableSet(getHandle().a().stream().map((block) -> CraftMagicNumbers.getMaterial(block)).collect(Collectors.toSet()));
|
||||
return com.koloboke.collect.set.hash.HashObjSets.newImmutableSet(getHandle().a().stream().map((block) -> CraftMagicNumbers.getMaterial(block)).collect(Collectors.toSet())); // Akarin - koloboke
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@ public class CraftItemTag extends CraftTag<Item, Material> {
|
||||
|
||||
@Override
|
||||
public Set<Material> getValues() {
|
||||
return Collections.unmodifiableSet(getHandle().a().stream().map((item) -> CraftMagicNumbers.getMaterial(item)).collect(Collectors.toSet()));
|
||||
return com.koloboke.collect.set.hash.HashObjSets.newImmutableSet(getHandle().a().stream().map((item) -> CraftMagicNumbers.getMaterial(item)).collect(Collectors.toSet())); // Akarin - koloboke
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user