@@ -1,16 +1,18 @@
|
||||
--- a/net/minecraft/server/IChatBaseComponent.java
|
||||
+++ b/net/minecraft/server/IChatBaseComponent.java
|
||||
@@ -22,8 +22,21 @@
|
||||
import java.util.Map.Entry;
|
||||
@@ -23,7 +23,23 @@
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
-public interface IChatBaseComponent extends Message, IChatFormatted {
|
||||
+// CraftBukkit start
|
||||
+import com.google.common.collect.Streams;
|
||||
+import java.util.stream.Stream;
|
||||
|
||||
-public interface IChatBaseComponent extends Message, IChatFormatted {
|
||||
+public interface IChatBaseComponent extends Message, IChatFormatted, Iterable<IChatBaseComponent> {
|
||||
+// CraftBukkit end
|
||||
+
|
||||
+public interface IChatBaseComponent extends Message, IChatFormatted, Iterable<IChatBaseComponent> { // CraftBukkit
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
+ default Stream<IChatBaseComponent> stream() {
|
||||
+ return Streams.concat(new Stream[]{Stream.of(this), this.getSiblings().stream().flatMap(IChatBaseComponent::stream)});
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user