public interface BlockNbtComponent extends NbtComponent<BlockNbtComponent,BlockNbtComponent.Builder>, ScopedComponent<BlockNbtComponent>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BlockNbtComponent.Builder
An NBT component builder.
|
static interface |
BlockNbtComponent.LocalPos
A local position.
|
static interface |
BlockNbtComponent.Pos
A position.
|
static interface |
BlockNbtComponent.WorldPos
A world position.
|
| Modifier and Type | Method and Description |
|---|---|
default @NonNull BlockNbtComponent |
absoluteWorldPos(int x,
int y,
int z)
Sets the block position to an absolute
BlockNbtComponent.WorldPos with the given coordinates. |
static @NonNull BlockNbtComponent.Builder |
builder()
Creates a block NBT component builder.
|
default @NonNull BlockNbtComponent |
localPos(double left,
double up,
double forwards)
Sets the block position to a
BlockNbtComponent.LocalPos with the given coordinates. |
static @NonNull BlockNbtComponent |
make(@NonNull java.util.function.Consumer<? super BlockNbtComponent.Builder> consumer)
Creates a block NBT component by applying configuration from
consumer. |
static @NonNull BlockNbtComponent |
of(@NonNull java.lang.String nbtPath,
@NonNull BlockNbtComponent.Pos pos)
Creates a block NBT component with a position.
|
@NonNull BlockNbtComponent.Pos |
pos()
Gets the block position.
|
@NonNull BlockNbtComponent |
pos(@NonNull BlockNbtComponent.Pos pos)
Sets the block position.
|
default @NonNull BlockNbtComponent |
relativeWorldPos(int x,
int y,
int z)
Sets the block position to an relative
BlockNbtComponent.WorldPos with the given coordinates. |
default @NonNull BlockNbtComponent |
worldPos(BlockNbtComponent.WorldPos.Coordinate x,
BlockNbtComponent.WorldPos.Coordinate y,
BlockNbtComponent.WorldPos.Coordinate z)
Sets the block position to a
BlockNbtComponent.WorldPos with the given coordinates. |
interpret, interpret, nbtPath, nbtPathtoBuilderappend, append, children, children, clickEvent, clickEvent, color, color, contains, decoration, decoration, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, hoverEvent, insertion, insertion, mergeColor, mergeDecorations, mergeEvents, style, styleappend, append, children, clickEvent, color, decoration, decoration, hoverEvent, insertion, mergeColor, mergeDecorations, mergeEventsstatic @NonNull BlockNbtComponent.Builder builder()
static @NonNull BlockNbtComponent of(@NonNull java.lang.String nbtPath, @NonNull BlockNbtComponent.Pos pos)
nbtPath - the nbt pathpos - the block positionstatic @NonNull BlockNbtComponent make(@NonNull java.util.function.Consumer<? super BlockNbtComponent.Builder> consumer)
consumer.consumer - the builder configurator@NonNull BlockNbtComponent.Pos pos()
@NonNull BlockNbtComponent pos(@NonNull BlockNbtComponent.Pos pos)
pos - the block positiondefault @NonNull BlockNbtComponent localPos(double left, double up, double forwards)
BlockNbtComponent.LocalPos with the given coordinates.left - the left coordinateup - the up coordinateforwards - the forwards coordinatedefault @NonNull BlockNbtComponent worldPos(BlockNbtComponent.WorldPos.Coordinate x, BlockNbtComponent.WorldPos.Coordinate y, BlockNbtComponent.WorldPos.Coordinate z)
BlockNbtComponent.WorldPos with the given coordinates.x - the x coordinatey - the y coordinatez - the z coordinatedefault @NonNull BlockNbtComponent absoluteWorldPos(int x, int y, int z)
BlockNbtComponent.WorldPos with the given coordinates.x - the x coordinatey - the y coordinatez - the z coordinatedefault @NonNull BlockNbtComponent relativeWorldPos(int x, int y, int z)
BlockNbtComponent.WorldPos with the given coordinates.x - the x coordinatey - the y coordinatez - the z coordinate