Package net.minecraft.command
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 mintermediary net/minecraft/class_1659named net/minecraft/command/CommandSource
-
Method Summary
Modifier and Type Method Description booleancanUseCommand(int permissionLevel, String commandLiteral)BlockPosgetBlockPos()EntitygetEntity()TextgetName()Vec3dgetPos()StringgetTranslationKey()WorldgetWorld()booleansendCommandFeedback()voidsendMessage(Text text)voidsetStat(CommandStats.Type statsType, int value)
-
Method Details
-
getTranslationKey
String getTranslationKey()- Mappings:
Namespace Name Mixin selector official method_6261Lm;method_6261()Ljava/lang/String;intermediary method_6261Lnet/minecraft/class_1659;method_6261()Ljava/lang/String;named getTranslationKeyLnet/minecraft/command/CommandSource;getTranslationKey()Ljava/lang/String;
-
getName
Text getName() -
sendMessage
- Mappings:
Namespace Name Mixin selector official aLm;a(Leu;)Vintermediary method_6256Lnet/minecraft/class_1659;method_6256(Lnet/minecraft/class_1444;)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_6255Lnet/minecraft/class_1659;method_6255(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_6258Lnet/minecraft/class_1659;method_6258()Lnet/minecraft/class_1372;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_6259Lnet/minecraft/class_1659;method_6259()Lnet/minecraft/class_649;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_6260Lnet/minecraft/class_1659;method_6260()Lnet/minecraft/class_99;named getWorldLnet/minecraft/command/CommandSource;getWorld()Lnet/minecraft/world/World;
-
getEntity
Entity getEntity()- Mappings:
Namespace Name Mixin selector official fLm;f()Lpk;intermediary method_6262Lnet/minecraft/class_1659;method_6262()Lnet/minecraft/class_1745;named getEntityLnet/minecraft/command/CommandSource;getEntity()Lnet/minecraft/entity/Entity;
-
sendCommandFeedback
boolean sendCommandFeedback()- Mappings:
Namespace Name Mixin selector official u_Lm;u_()Zintermediary method_6263Lnet/minecraft/class_1659;method_6263()Znamed sendCommandFeedbackLnet/minecraft/command/CommandSource;sendCommandFeedback()Z
-
setStat
- Mappings:
Namespace Name Mixin selector official aLm;a(Ln$a;I)Vintermediary method_6257Lnet/minecraft/class_1659;method_6257(Lnet/minecraft/class_1685$class_1686;I)Vnamed setStatLnet/minecraft/command/CommandSource;setStat(Lnet/minecraft/command/CommandStats$Type;I)V
-