Class TNTPrimedMock

All Implemented Interfaces:
MessageTarget, PersistentDataViewHolder, net.kyori.adventure.audience.Audience, net.kyori.adventure.pointer.Pointered, net.kyori.adventure.sound.Sound.Emitter, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, CommandSender, Entity, Explosive, TNTPrimed, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder

public class TNTPrimedMock extends EntityMock implements TNTPrimed
Mock implementation of a TNTPrimed.
See Also:
  • Constructor Details

    • TNTPrimedMock

      protected TNTPrimedMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new TNTPrimedMock on the provided ServerMock with a specified UUID.
      Parameters:
      server - The server to create the entity on.
      uuid - The UUID of the entity.
  • Method Details

    • setFuseTicks

      public void setFuseTicks(int fuseTicks)
      Specified by:
      setFuseTicks in interface TNTPrimed
    • getFuseTicks

      public int getFuseTicks()
      Specified by:
      getFuseTicks in interface TNTPrimed
    • getSource

      @Nullable public @Nullable Entity getSource()
      Specified by:
      getSource in interface TNTPrimed
    • setSource

      public void setSource(@Nullable @Nullable Entity source)
      Specified by:
      setSource in interface TNTPrimed
    • setBlockData

      public void setBlockData(@NotNull @NotNull BlockData blockData)
      Specified by:
      setBlockData in interface TNTPrimed
    • getBlockData

      @NotNull public @NotNull BlockData getBlockData()
      Specified by:
      getBlockData in interface TNTPrimed
    • setYield

      public void setYield(float explosionYield)
      Specified by:
      setYield in interface Explosive
    • getYield

      public float getYield()
      Specified by:
      getYield in interface Explosive
    • setIsIncendiary

      public void setIsIncendiary(boolean incendiary)
      Specified by:
      setIsIncendiary in interface Explosive
    • isIncendiary

      public boolean isIncendiary()
      Specified by:
      isIncendiary in interface Explosive
    • getType

      @NotNull public @NotNull EntityType getType()
      Specified by:
      getType in interface Entity
      Overrides:
      getType in class EntityMock
    • tick

      public void tick(int ticks)
      Simulate server tick.
      Parameters:
      ticks - The number of ticks to simulate.
    • tick

      public void tick()
      Simulate one server tick.
      Overrides:
      tick in class EntityMock