adding signsupport for worlds
This commit is contained in:
parent
3de50d7557
commit
52983b69c5
@ -0,0 +1,32 @@
|
|||||||
|
package eu.mhsl.craftattack.worldmuseum.util;
|
||||||
|
|
||||||
|
import net.kyori.adventure.key.Key;
|
||||||
|
import net.minestom.server.instance.block.BlockHandler;
|
||||||
|
import net.minestom.server.tag.Tag;
|
||||||
|
import net.minestom.server.utils.NamespaceID;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
|
public class SignHandler implements BlockHandler {
|
||||||
|
@Override
|
||||||
|
public @NotNull Collection<Tag<?>> getBlockEntityTags() {
|
||||||
|
|
||||||
|
return new ArrayList<>() {
|
||||||
|
{
|
||||||
|
add(Tag.Byte("GlowingText"));
|
||||||
|
add(Tag.String("Color"));
|
||||||
|
add(Tag.String("Text1"));
|
||||||
|
add(Tag.String("Text2"));
|
||||||
|
add(Tag.String("Text3"));
|
||||||
|
add(Tag.String("Text4"));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public @NotNull NamespaceID getNamespaceId() {
|
||||||
|
return NamespaceID.from(Key.key("minecraft:sign"));
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user