Class StorageMechanic
-
- All Implemented Interfaces:
public final class StorageMechanic
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
StorageMechanic.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StorageType
storageType
private final Boolean
isStorage
private final Boolean
isPersonal
private final Boolean
isEnderchest
private final Boolean
isDisposal
private final Boolean
isShulker
public final static StorageMechanic.Companion
Companion
-
Constructor Summary
Constructors Constructor Description StorageMechanic(ConfigurationSection section)
-
Method Summary
Modifier and Type Method Description final StorageType
getStorageType()
final Boolean
isStorage()
final Boolean
isPersonal()
final Boolean
isEnderchest()
final Boolean
isDisposal()
final Boolean
isShulker()
final Unit
openPersonalStorage(Player player, Location location, ItemDisplay baseEntity)
final Unit
openDisposal(Player player, Location location, ItemDisplay baseEntity)
final Unit
openStorage(Block block, Player player)
final Unit
openStorage(ItemDisplay baseEntity, Player player)
final Unit
dropStorageContent(Block block)
final Unit
dropStorageContent(FurnitureMechanic mechanic, ItemDisplay baseEntity)
-
-
Method Detail
-
getStorageType
final StorageType getStorageType()
-
isPersonal
final Boolean isPersonal()
-
isEnderchest
final Boolean isEnderchest()
-
isDisposal
final Boolean isDisposal()
-
openPersonalStorage
final Unit openPersonalStorage(Player player, Location location, ItemDisplay baseEntity)
-
openDisposal
final Unit openDisposal(Player player, Location location, ItemDisplay baseEntity)
-
openStorage
final Unit openStorage(Block block, Player player)
-
openStorage
final Unit openStorage(ItemDisplay baseEntity, Player player)
-
dropStorageContent
final Unit dropStorageContent(Block block)
-
dropStorageContent
final Unit dropStorageContent(FurnitureMechanic mechanic, ItemDisplay baseEntity)
-
-
-
-