public class HumanEntityCache extends Object
Constructor and Description |
---|
HumanEntityCache() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Deprecated.
use
restoreAndForgetAll() instead |
void |
clearCache(@NotNull org.bukkit.entity.HumanEntity humanEntity)
Deprecated.
use
restoreAndForget(HumanEntity) instead |
void |
restore(@NotNull org.bukkit.entity.HumanEntity humanEntity)
Deprecated.
use
restoreAndForget(HumanEntity) instead |
void |
restoreAll()
Deprecated.
use
restoreAndForgetAll() instead |
void |
restoreAndForget(@NotNull org.bukkit.entity.HumanEntity humanEntity)
Restores the contents of the specified human entity, clearing the cache afterwards.
|
void |
restoreAndForgetAll()
Restores all players' contents into their inventory, clearing the cache afterwards.
|
void |
store(@NotNull org.bukkit.entity.HumanEntity humanEntity)
Deprecated.
use
storeAndClear(HumanEntity) instead |
void |
storeAndClear(@NotNull org.bukkit.entity.HumanEntity humanEntity)
Stores this player's inventory in the cache.
|
public void storeAndClear(@NotNull @NotNull org.bukkit.entity.HumanEntity humanEntity)
humanEntity
- the human entity to keep in the cache@Deprecated public void store(@NotNull @NotNull org.bukkit.entity.HumanEntity humanEntity)
storeAndClear(HumanEntity)
insteadhumanEntity
- the human entity to keep in the cachepublic void restoreAndForget(@NotNull @NotNull org.bukkit.entity.HumanEntity humanEntity)
humanEntity
- the human entity to restore its cache forpublic void restoreAndForgetAll()
@Deprecated public void restore(@NotNull @NotNull org.bukkit.entity.HumanEntity humanEntity)
restoreAndForget(HumanEntity)
insteadhumanEntity
- the human entity to restore its cache for@Deprecated public void restoreAll()
restoreAndForgetAll()
instead@Deprecated public void clearCache(@NotNull @NotNull org.bukkit.entity.HumanEntity humanEntity)
restoreAndForget(HumanEntity)
insteadhumanEntity
- the human entity to clear the cache for@Deprecated public void clearCache()
restoreAndForgetAll()
insteadCopyright © 2020. All rights reserved.