Package net.minecraft.command
Interface CommandSource
- All Known Implementing Classes:
AbstractArrowEntity,AbstractClientPlayerEntity,AbstractDecorationEntity,AbstractMinecartEntity,AmbientEntity,AnimalEntity,ArmorStandEntity,BarrierParticle,BatEntity,BlazeEntity,BlockDustParticle,BlockLeakParticle,BlockParticle,BoatEntity,CaveSpiderEntity,ChestMinecartEntity,ChickenEntity,ClientPlayerEntity,CloudParticle,CommandBlockExecutor,CommandBlockMinecartEntity,Console,CowEntity,CreeperEntity,DamageParticle,EggEntity,ElderGuardianAppearanceParticle,EmitterParticle,EmotionParticle,EnchantGlyphParticle,EndCrystalEntity,EnderDragonEntity,EnderDragonPart,EndermanEntity,EndermiteEntity,EnderPearlEntity,Entity,ExperienceBottleEntity,ExperienceOrbEntity,ExplosionEmitterParticle,ExplosionSmokeParticle,ExplosiveProjectileEntity,EyeOfEnderEntity,FallingBlockEntity,FireballEntity,FireSmokeParticle,FireworkRocketEntity,FireworksSparkParticle.Explosion,FireworksSparkParticle.FireworkParticle,FireworksSparkParticle.Flash,FishingBobberEntity,FishingParticle,FlameParticle,FlyingEntity,FootstepParticle,FurnaceMinecartEntity,GhastEntity,GiantEntity,GolemEntity,GuardianEntity,HopperMinecartEntity,HorseBaseEntity,HostileEntity,IntegratedServer,IronGolemEntity,ItemEntity,ItemFrameEntity,ItemPickupParticle,LargeExplosionParticle,LargeFireSmokeParticle,LavaEmberParticle,LeashKnotEntity,LightningBoltEntity,LivingEntity,MagmaCubeEntity,MinecartEntity,MinecraftDedicatedServer,MinecraftServer,MobEntity,MooshroomEntity,NoteParticle,OcelotEntity,OtherClientPlayerEntity,PaintingEntity,Particle,PassiveEntity,PathAwareEntity,PigEntity,PlayerEntity,PortalParticle,PotionEntity,RabbitEntity,RainSplashParticle,RedstoneParticle,ServerPlayerEntity,SheepEntity,SilverfishEntity,SkeletonEntity,SlimeEntity,SmallFireballEntity,SnowballEntity,SnowballParticle,SnowGolemEntity,SnowShovelParticle,SpawnerMinecartEntity,SpellParticle,SpiderEntity,SquidEntity,StorageMinecartEntity,SuspendedParticle,TameableEntity,ThrowableEntity,TntEntity,TntMinecartEntity,VillageParticle,VillagerEntity,WaterBubbleParticle,WaterCreatureEntity,WaterSplashParticle,WeatherEntity,WitchEntity,WitherEntity,WitherSkullEntity,WolfEntity,ZombieEntity,ZombiePigmanEntity
public interface CommandSource
- Mappings:
Namespace Name official mintermediary net/minecraft/class_1061named net/minecraft/command/CommandSource
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanUseCommand(int permissionLevel, String commandLiteral) getPos()getWorld()booleanvoidsendMessage(Text text) voidsetStat(CommandStats.Type statsType, int value)
-
Method Details
-
getTranslationKey
String getTranslationKey()- Mappings:
Namespace Name Mixin selector official e_Lm;e_()Ljava/lang/String;intermediary method_2518Lnet/minecraft/class_1061;method_2518()Ljava/lang/String;named getTranslationKeyLnet/minecraft/command/CommandSource;getTranslationKey()Ljava/lang/String;
-
method_6344
Text method_6344()- Mappings:
Namespace Name Mixin selector official f_Lm;f_()Leu;intermediary method_6344Lnet/minecraft/class_1061;method_6344()Lnet/minecraft/class_1982;named method_6344Lnet/minecraft/command/CommandSource;method_6344()Lnet/minecraft/text/Text;
-
sendMessage
- Mappings:
Namespace Name Mixin selector official aLm;a(Leu;)Vintermediary method_5505Lnet/minecraft/class_1061;method_5505(Lnet/minecraft/class_1982;)Vnamed sendMessageLnet/minecraft/command/CommandSource;sendMessage(Lnet/minecraft/text/Text;)V
-
canUseCommand
- Mappings:
Namespace Name Mixin selector official aLm;a(ILjava/lang/String;)Zintermediary method_3333Lnet/minecraft/class_1061;method_3333(ILjava/lang/String;)Znamed canUseCommandLnet/minecraft/command/CommandSource;canUseCommand(ILjava/lang/String;)Z
-
getBlockPos
BlockPos getBlockPos()- Mappings:
Namespace Name Mixin selector official cLm;c()Lcj;intermediary method_4086Lnet/minecraft/class_1061;method_4086()Lnet/minecraft/class_2552;named getBlockPosLnet/minecraft/command/CommandSource;getBlockPos()Lnet/minecraft/util/math/BlockPos;
-
getPos
Vec3d getPos()- Mappings:
Namespace Name Mixin selector official dLm;d()Laui;intermediary method_10787Lnet/minecraft/class_1061;method_10787()Lnet/minecraft/class_236;named getPosLnet/minecraft/command/CommandSource;getPos()Lnet/minecraft/util/math/Vec3d;
-
getWorld
World getWorld()- Mappings:
Namespace Name Mixin selector official eLm;e()Ladm;intermediary method_5506Lnet/minecraft/class_1061;method_5506()Lnet/minecraft/class_1150;named getWorldLnet/minecraft/command/CommandSource;getWorld()Lnet/minecraft/world/World;
-
getEntity
Entity getEntity()- Mappings:
Namespace Name Mixin selector official fLm;f()Lpk;intermediary method_10788Lnet/minecraft/class_1061;method_10788()Lnet/minecraft/class_864;named getEntityLnet/minecraft/command/CommandSource;getEntity()Lnet/minecraft/entity/Entity;
-
sendCommandFeedback
boolean sendCommandFeedback()- Mappings:
Namespace Name Mixin selector official u_Lm;u_()Zintermediary method_10789Lnet/minecraft/class_1061;method_10789()Znamed sendCommandFeedbackLnet/minecraft/command/CommandSource;sendCommandFeedback()Z
-
setStat
- Mappings:
Namespace Name Mixin selector official aLm;a(Ln$a;I)Vintermediary method_10786Lnet/minecraft/class_1061;method_10786(Lnet/minecraft/class_2598$class_2599;I)Vnamed setStatLnet/minecraft/command/CommandSource;setStat(Lnet/minecraft/command/CommandStats$Type;I)V
-