Class WorldEventInstance

java.lang.Object
team.lodestar.lodestone.systems.worldevent.WorldEventInstance

public abstract class WorldEventInstance extends Object
World events are tickable instanced objects which are saved in a level capability, which means they are unique per dimension. They can exist on the client and are ticked separately.
  • Field Details

    • uuid

      public UUID uuid
    • type

      public WorldEventType type
    • discarded

      public boolean discarded
  • Constructor Details

  • Method Details

    • sync

      public void sync(net.minecraft.world.level.Level level)
      Syncs the world event to all players.
    • isClientSynced

      public boolean isClientSynced()
      Should this event exist on the client? It will be automatically synced in sync(Level)
    • start

      public void start(net.minecraft.world.level.Level level)
    • tick

      public void tick(net.minecraft.world.level.Level level)
    • end

      public void end(net.minecraft.world.level.Level level)
    • serializeNBT

      public net.minecraft.nbt.CompoundTag serializeNBT(net.minecraft.nbt.CompoundTag tag)
    • deserializeNBT

      public WorldEventInstance deserializeNBT(net.minecraft.nbt.CompoundTag tag)
    • sync

      public static <T extends WorldEventInstance> void sync(T instance)
    • sync

      public static <T extends WorldEventInstance> void sync(T instance, net.minecraft.server.level.ServerPlayer player)