Repository navigation
API ‐ World
Data sent using there methods is broadcasted to all players in specified World.
Clear all on-screen titles and popups.
world.ClearTitle()
todo
Get World object of another dimension of the world.
World netherDimension = world.GetDimension(Dimension.Nether)
todo
todo
Send custom data packet to all players in this World.
SetActorData setActorData = new SetActorData
{
EntityId = 22,
Metadata = new Dictionary<ActorData, Metadata>() { { ActorData.VISIBLE_MOB_EFFECTS, new Metadata(1) } }
};
world.Send(setActorData);
Send action bar messsage.
world.SendActionBarTitle("hi hi text message");
Send block update to all players in this World using block coordinate system.
world.SendBlock(new DiamondBlock(), 10, 5, 2);
Send block update to all players in this World using player position coordinate system.
world.SendBlock(new DiamondBlock(), player.Position);
Send chat message from specific source.
world.SendChatMessage("hi hi text message", "Bot1")

todo
Send jukebox like message popup.
world.SendJukeboxPopup("hi hi text message");

Send LevelEvent to all players in this World.
world.SendLevelEvent(new Vector3(x, y, z), LevelEvents.ParticlesEvaporate);
Send chat message.
world.SendMessage("hi hi text message");

Send tooltip like message popup.
world.SendPopup("hi hi text message");

Send title and subtitle messages.
world.SendTitle("hi hi text message", "more text");

Send tooltip message.
world.SendTip("hi hi text message");

todo
Place real block in specified world using block coordinates system. Bool let's disable sending block updates. Setting bool to false is recomended for creating large structures so it won't overload networking.
If bool is set to false you will need to resend chunks to players right after SetBlock.
world.SetBlock(new DiamondBlock(), 10, 5, 2);
Place real block in specified world from player position. Usage is same as SetBlock(Block, int, int, int, bool(optional))