Package be.seeseemelk.mockbukkit.command
Interface MessageTarget
- All Known Implementing Classes:
AbstractArrowMock,AbstractHorseMock,AbstractProjectileMock,AbstractSkeletonMock,AgeableMock,AllayMock,AmbientMock,AnimalsMock,AreaEffectCloudMock,ArmorStandMock,ArrowMock,AxolotlMock,BatMock,BeeMock,BlazeMock,BlockDisplayMock,BoatMock,CamelMock,CatMock,CaveSpiderMock,ChestBoatMock,ChestedHorseMock,ChickenMock,CodMock,CommandMinecartMock,ConsoleCommandSenderMock,CowMock,CreatureMock,CreeperMock,DisplayMock,DolphinMock,DonkeyMock,DragonFireballMock,DrownedMock,EggMock,ElderGuardianMock,EnderCrystalMock,EndermanMock,EndermiteMock,EnderPearlMock,EntityMock,EvokerMock,ExperienceOrbMock,ExplosiveMinecartMock,FallingBlockMock,FireballMock,FireworkMock,FishHookMock,FishMock,FlyingMock,FoxMock,FrogMock,GhastMock,GiantMock,GlowItemFrameMock,GlowSquidMock,GoatMock,GolemMock,GuardianMock,HangingMock,HoglinMock,HopperMinecartMock,HorseMock,HumanEntityMock,IllagerMock,IllusionerMock,IronGolemMock,ItemDisplayMock,ItemEntityMock,ItemFrameMock,LargeFireballMock,LeashHitchMock,LivingEntityMock,LlamaMock,LlamaSpitMock,LootableMinecart,MagmaCubeMock,MarkerMock,MinecartMock,MobMock,MonsterMock,MuleMock,MushroomCowMock,OcelotMock,PandaMock,ParrotMock,PigMock,PigZombieMock,PillagerMock,PlayerMock,PolarBearMock,PoweredMinecartMock,ProjectileMock,PufferFishMock,RabbitMock,RaiderMock,RavagerMock,RideableMinecartMock,SalmonMock,SchoolableFishMock,SheepMock,ShulkerMock,SilverfishMock,SimpleEntityMock,SimpleMobMock,SimpleMonsterMock,SizedFireballMock,SkeletonHorseMock,SkeletonMock,SlimeMock,SmallFireballMock,SnowballMock,SnowmanMock,SpawnerMinecartMock,SpectralArrowMock,SpellcasterMock,SpiderMock,SquidMock,StorageMinecartMock,StrayMock,TadpoleMock,TameableAnimalMock,ThrowableProjectileMock,ThrownExpBottleMock,TNTPrimedMock,TridentMock,TropicalFishMock,TurtleMock,VehicleMock,VindicatorMock,WardenMock,WitchMock,WitherSkeletonMock,WitherSkullMock,WolfMock,ZombieHorseMock,ZombieMock
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an object that can receive messages.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidAsserts that more messages were received by the message target.default voidassertSaid(@NotNull String expected) Asserts that a specific message was not received next by the message target.default voidassertSaid(@NotNull net.kyori.adventure.text.Component expected) Asserts that a specific message was not received next by the message target.@Nullable net.kyori.adventure.text.ComponentReturns the next message that was sent to the target.default @Nullable StringReturns the next message that was sent to the target.
-
Method Details
-
nextComponentMessage
@Nullable @Nullable net.kyori.adventure.text.Component nextComponentMessage()Returns the next message that was sent to the target.- Returns:
- The next message sent to the target.
-
nextMessage
Returns the next message that was sent to the target.- Returns:
- The next message sent to the target.
-
assertSaid
default void assertSaid(@NotNull @NotNull net.kyori.adventure.text.Component expected) Asserts that a specific message was not received next by the message target.- Parameters:
expected- The message that should have been received by the target.
-
assertSaid
Asserts that a specific message was not received next by the message target.- Parameters:
expected- The message that should have been received by the target.
-
assertNoMoreSaid
default void assertNoMoreSaid()Asserts that more messages were received by the message target.
-