Package net.minecraft.server.bossevents
Class CustomBossEvents
java.lang.Object
net.minecraft.server.bossevents.CustomBossEvents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation, CustomBossEvent> private static final com.mojang.serialization.Codec<Map<ResourceLocation, CustomBossEvent.Packed>> private static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ResourceLocation pId, Component pName) get(ResourceLocation pId) getIds()voidload(CompoundTag pTag, HolderLookup.Provider pLevelRegistry) voidonPlayerConnect(ServerPlayer pPlayer) voidonPlayerDisconnect(ServerPlayer pPlayer) voidremove(CustomBossEvent pBossbar) save(HolderLookup.Provider pLevelRegistry)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
EVENTS_CODEC
private static final com.mojang.serialization.Codec<Map<ResourceLocation,CustomBossEvent.Packed>> EVENTS_CODEC -
events
-
-
Constructor Details
-
CustomBossEvents
public CustomBossEvents()
-
-
Method Details
-
get
-
create
-
remove
-
getIds
-
getEvents
-
save
-
load
-
onPlayerConnect
-
onPlayerDisconnect
-