public class HumanEntityCache extends Object
| Constructor and Description |
|---|
HumanEntityCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
This clears the cache.
|
void |
clearCache(org.bukkit.entity.HumanEntity humanEntity)
Clear the cache for the specified human entity
|
void |
restore(org.bukkit.entity.HumanEntity humanEntity)
Restores the contents of the specified human entity.
|
void |
restoreAll()
Restores all players' contents into their inventory.
|
void |
store(org.bukkit.entity.HumanEntity humanEntity)
Stores this player's inventory in the cache.
|
public void store(@NotNull
org.bukkit.entity.HumanEntity humanEntity)
humanEntity - the human entity to keep in the cachepublic void restore(@NotNull
org.bukkit.entity.HumanEntity humanEntity)
humanEntity - the human entity to restore its cache forpublic void restoreAll()
public void clearCache(@NotNull
org.bukkit.entity.HumanEntity humanEntity)
humanEntity - the human entity to clear the cache forpublic void clearCache()
Copyright © 2019. All rights reserved.