Class AllaySimulation
java.lang.Object
org.mockbukkit.mockbukkit.simulate.entity.AllaySimulation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsimulateItemPickup(@NotNull ItemStack item) Simulate the Allay picking up anItemStackfrom the ground.@Nullable ItemStackSimulate the retrieval of the Allay's current items.voidsimulatePlayerInteract(@NotNull Material material) Simulates the Interaction of a Player with the Allay to set it's current item.
-
Constructor Details
-
AllaySimulation
-
-
Method Details
-
simulatePlayerInteract
Simulates the Interaction of a Player with the Allay to set it's current item.- Parameters:
material- TheMaterialof the Item the Allay should collect
-
simulateItemRetrieval
Simulate the retrieval of the Allay's current items. -
simulateItemPickup
Simulate the Allay picking up anItemStackfrom the ground. If the Itemstack is not of the current Type, this will throw aIllegalArgumentException. If the Inventory is full, this will throw aIllegalStateException.- Parameters:
item- TheItemStackto pick up
-