Class AllaySimulation

java.lang.Object
org.mockbukkit.mockbukkit.simulate.entity.AllaySimulation

public class AllaySimulation extends Object
  • Constructor Details

    • AllaySimulation

      public AllaySimulation(AllayMock allayMock)
  • Method Details

    • simulatePlayerInteract

      public void simulatePlayerInteract(@NotNull @NotNull Material material)
      Simulates the Interaction of a Player with the Allay to set it's current item.
      Parameters:
      material - The Material of the Item the Allay should collect
    • simulateItemRetrieval

      @Nullable public @Nullable ItemStack simulateItemRetrieval()
      Simulate the retrieval of the Allay's current items.
      Returns:
      A List of ItemStacks that the Allay is holding
    • simulateItemPickup

      public void simulateItemPickup(@NotNull @NotNull ItemStack item)
      Simulate the Allay picking up an ItemStack from the ground. If the Itemstack is not of the current Type, this will throw a IllegalArgumentException. If the Inventory is full, this will throw a IllegalStateException.
      Parameters:
      item - The ItemStack to pick up