Interface CommandSource

All Known Implementing Classes:
AbstractClientPlayerEntity, AbstractMinecartEntity, AbstractSkeletonEntity, AgeableEntity, AmbientEntity, AnimalEntity, ArmorStandEntity, ArrowEntity, BarrierParticle, BatEntity, BlazeEntity, BlockDustParticle, BlockLeakParticle, BlockParticle, BoatEntity, CaveSpiderEntity, ChestMinecartEntity, ChickenEntity, ClientPlayerEntity, CloudParticle, CommandBlockExecutor, CommandBlockMinecartEntity, Console, CowEntity, CreeperEntity, DamageParticle, DecorationEntity, EggEntity, ElderGuardianAppearanceParticle, EmitterParticle, EmotionParticle, EnchantGlyphParticle, EndCrystalEntity, EnderDragonEntity, EndermanEntity, EndermiteEntity, EnderPearlEntity, Entity, ExperienceBottleEntity, ExperienceOrbEntity, ExplodingTntEntity, ExplosionEmitterParticle, ExplosionSmokeParticle, EyeOfEnderEntity, FallingBlockEntity, FireballEntity, FireSmokeParticle, FireworkEntity, FireworksSparkParticle.Explosion, FireworksSparkParticle.FireworkParticle, FireworksSparkParticle.Flash, FishingBobberEntity, FishingParticle, FlameParticle, FlyingEntity, FootstepParticle, FurnaceMinecartEntity, GhastEntity, GiantEntity, GolemEntity, GuardianEntity, HopperMinecartEntity, HorseBaseEntity, HostileEntity, IntegratedServer, InventoryMinecartEntity, IronGolemEntity, ItemEntity, ItemFrameEntity, ItemPickupParticle, LargeExplosionParticle, LargeFireSmokeParticle, LavaEmberParticle, LeadKnotEntity, LightningBoltEntity, LivingEntity, MagmaCubeEntity, MinecartEntity, MinecraftDedicatedServer, MinecraftServer, MobEntity, MooshroomEntity, MultiPart, NoteParticle, OcelotEntity, OtherClientPlayerEntity, PaintingEntity, Particle, PassivePathFindingEntity, PigEntity, PlayerEntity, PortalParticle, PotionEntity, ProjectileEntity, RabbitEntity, RainSplashParticle, RedstoneParticle, ServerPlayerEntity, SheepEntity, SilverfishEntity, SlimeEntity, SmallFireballEntity, SnowballEntity, SnowballParticle, SnowGolemEntity, SnowShovelParticle, SpawnerMinecartEntity, SpellParticle, SpiderEntity, SquidEntity, SuspendedParticle, TameableEntity, ThrowableEntity, TntMinecartEntity, VillageParticle, VillagerEntity, WaterBubbleParticle, WaterCreatureEntity, WaterSplashParticle, WeatherEntity, WitchEntity, WitherEntity, WitherSkullEntity, WolfEntity, ZombieEntity, ZombiePigmanEntity

public interface CommandSource
Mappings:
Namespace Name
official m
intermediary net/minecraft/class_1659
named net/minecraft/command/CommandSource
  • Method Details

    • getTranslationKey

      String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official method_6261 Lm;method_6261()Ljava/lang/String;
      intermediary method_6261 Lnet/minecraft/class_1659;method_6261()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/command/CommandSource;getTranslationKey()Ljava/lang/String;
    • getName

      Text getName()
    • sendMessage

      void sendMessage​(Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lm;a(Leu;)V
      intermediary method_6256 Lnet/minecraft/class_1659;method_6256(Lnet/minecraft/class_1444;)V
      named sendMessage Lnet/minecraft/command/CommandSource;sendMessage(Lnet/minecraft/text/Text;)V
    • canUseCommand

      boolean canUseCommand​(int permissionLevel, String commandLiteral)
      Mappings:
      Namespace Name Mixin selector
      official a Lm;a(ILjava/lang/String;)Z
      intermediary method_6255 Lnet/minecraft/class_1659;method_6255(ILjava/lang/String;)Z
      named canUseCommand Lnet/minecraft/command/CommandSource;canUseCommand(ILjava/lang/String;)Z
    • getBlockPos

      BlockPos getBlockPos()
      Mappings:
      Namespace Name Mixin selector
      official c Lm;c()Lcj;
      intermediary method_6258 Lnet/minecraft/class_1659;method_6258()Lnet/minecraft/class_1372;
      named getBlockPos Lnet/minecraft/command/CommandSource;getBlockPos()Lnet/minecraft/util/math/BlockPos;
    • getPos

      Vec3d getPos()
      Mappings:
      Namespace Name Mixin selector
      official d Lm;d()Laui;
      intermediary method_6259 Lnet/minecraft/class_1659;method_6259()Lnet/minecraft/class_649;
      named getPos Lnet/minecraft/command/CommandSource;getPos()Lnet/minecraft/util/math/Vec3d;
    • getWorld

      World getWorld()
      Mappings:
      Namespace Name Mixin selector
      official e Lm;e()Ladm;
      intermediary method_6260 Lnet/minecraft/class_1659;method_6260()Lnet/minecraft/class_99;
      named getWorld Lnet/minecraft/command/CommandSource;getWorld()Lnet/minecraft/world/World;
    • getEntity

      Entity getEntity()
      Mappings:
      Namespace Name Mixin selector
      official f Lm;f()Lpk;
      intermediary method_6262 Lnet/minecraft/class_1659;method_6262()Lnet/minecraft/class_1745;
      named getEntity Lnet/minecraft/command/CommandSource;getEntity()Lnet/minecraft/entity/Entity;
    • sendCommandFeedback

      boolean sendCommandFeedback()
      Mappings:
      Namespace Name Mixin selector
      official u_ Lm;u_()Z
      intermediary method_6263 Lnet/minecraft/class_1659;method_6263()Z
      named sendCommandFeedback Lnet/minecraft/command/CommandSource;sendCommandFeedback()Z
    • setStat

      void setStat​(CommandStats.Type statsType, int value)
      Mappings:
      Namespace Name Mixin selector
      official a Lm;a(Ln$a;I)V
      intermediary method_6257 Lnet/minecraft/class_1659;method_6257(Lnet/minecraft/class_1685$class_1686;I)V
      named setStat Lnet/minecraft/command/CommandSource;setStat(Lnet/minecraft/command/CommandStats$Type;I)V