Class WorldEventType
java.lang.Object
team.lodestar.lodestone.systems.worldevent.WorldEventType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWorldEventType.Builder<T extends WorldEventInstance>static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal net.minecraft.resources.ResourceLocationfinal WorldEventType.EventInstanceSupplier<?> -
Constructor Summary
ConstructorsConstructorDescriptionWorldEventType(net.minecraft.resources.ResourceLocation id, WorldEventType.EventInstanceSupplier<?> supplier) Creates a new world event type.WorldEventType(net.minecraft.resources.ResourceLocation id, WorldEventType.EventInstanceSupplier<?> supplier, boolean clientSynced) Creates a new world event type. -
Method Summary
-
Field Details
-
id
public final net.minecraft.resources.ResourceLocation id -
supplier
-
clientSynced
public final boolean clientSynced
-
-
Constructor Details
-
WorldEventType
public WorldEventType(net.minecraft.resources.ResourceLocation id, WorldEventType.EventInstanceSupplier<?> supplier, boolean clientSynced) Creates a new world event type.- Parameters:
id- The id of the event typesupplier- The supplier for the event instanceclientSynced- Should this event exist on the client? It will be automatically synced upon creation of the event inWorldEventInstance.sync(net.minecraft.world.level.Level)
-
WorldEventType
public WorldEventType(net.minecraft.resources.ResourceLocation id, WorldEventType.EventInstanceSupplier<?> supplier) Creates a new world event type.By default, the event will not be client-synced.
See
WorldEventType(ResourceLocation, EventInstanceSupplier, boolean)for more information.- Parameters:
id- The id of the event typesupplier- The supplier for the event instance
-
-
Method Details
-
isClientSynced
public boolean isClientSynced() -
createInstance
-