public class RootBedrockComponent extends ABedrockComponent
| Constructor and Description |
|---|
RootBedrockComponent() |
RootBedrockComponent(ABedrockComponent... components) |
RootBedrockComponent(java.util.List<ABedrockComponent> components) |
| Modifier and Type | Method and Description |
|---|---|
RootBedrockComponent |
addComponent(ABedrockComponent component)
Add a component to this root component.
|
java.lang.String |
asString() |
ABedrockComponent |
copy() |
boolean |
equals(java.lang.Object o) |
RootBedrockComponent |
forEach(java.util.function.Consumer<ABedrockComponent> consumer)
Iterate over all components and their siblings.
|
java.util.List<ABedrockComponent> |
getComponents() |
int |
hashCode() |
java.lang.String |
toString() |
public RootBedrockComponent()
public RootBedrockComponent(ABedrockComponent... components)
public RootBedrockComponent(java.util.List<ABedrockComponent> components)
public java.util.List<ABedrockComponent> getComponents()
public RootBedrockComponent addComponent(ABedrockComponent component)
component - The component to addpublic RootBedrockComponent forEach(java.util.function.Consumer<ABedrockComponent> consumer)
consumer - The consumer that will be called for every componentpublic java.lang.String asString()
asString in class ABedrockComponentpublic ABedrockComponent copy()
copy in class ABedrockComponentpublic boolean equals(java.lang.Object o)
equals in class ABedrockComponentpublic int hashCode()
hashCode in class ABedrockComponentpublic java.lang.String toString()
toString in class ABedrockComponent