public class CustomServerBossInfoManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ResourceLocation,CustomServerBossInfo> |
bars |
private MinecraftServer |
server |
Constructor and Description |
---|
CustomServerBossInfoManager(MinecraftServer serverIn) |
Modifier and Type | Method and Description |
---|---|
CustomServerBossInfo |
add(ResourceLocation id,
ITextComponent p_201379_2_) |
CustomServerBossInfo |
get(ResourceLocation id) |
java.util.Collection<CustomServerBossInfo> |
getBossbars() |
java.util.Collection<ResourceLocation> |
getIDs() |
void |
onPlayerLogin(ServerPlayerEntity player) |
void |
onPlayerLogout(ServerPlayerEntity player) |
void |
read(CompoundNBT p_201381_1_) |
void |
remove(CustomServerBossInfo bossbar) |
CompoundNBT |
write() |
private final MinecraftServer server
private final java.util.Map<ResourceLocation,CustomServerBossInfo> bars
public CustomServerBossInfoManager(MinecraftServer serverIn)
@Nullable public CustomServerBossInfo get(ResourceLocation id)
public CustomServerBossInfo add(ResourceLocation id, ITextComponent p_201379_2_)
public void remove(CustomServerBossInfo bossbar)
public java.util.Collection<ResourceLocation> getIDs()
public java.util.Collection<CustomServerBossInfo> getBossbars()
public CompoundNBT write()
public void read(CompoundNBT p_201381_1_)
public void onPlayerLogin(ServerPlayerEntity player)
public void onPlayerLogout(ServerPlayerEntity player)