Package net.minecraft.command
Interface CommandSource
- All Known Implementing Classes:
AbstractArrowEntity,AbstractClientPlayerEntity,AbstractDecorationEntity,AbstractMinecartEntity,AmbientEntity,AnimalEntity,AreaEffectCloudEntity,ArmorStandEntity,ArrowEntity,BatEntity,BlazeEntity,BoatEntity,CaveSpiderEntity,ChestMinecartEntity,ChickenEntity,ClientPlayerEntity,CommandBlockExecutor,CommandBlockMinecartEntity,Console,CowEntity,CreeperEntity,DragonFireballEntity,EggEntity,EndCrystalEntity,EnderDragonEntity,EnderDragonPart,EndermanEntity,EndermiteEntity,EnderPearlEntity,Entity,ExperienceBottleEntity,ExperienceOrbEntity,ExplosiveProjectileEntity,EyeOfEnderEntity,FallingBlockEntity,FireballEntity,FireworkRocketEntity,FishingBobberEntity,FlyingEntity,FurnaceMinecartEntity,GhastEntity,GiantEntity,GolemEntity,GuardianEntity,HopperMinecartEntity,HorseBaseEntity,HostileEntity,IntegratedServer,IronGolemEntity,ItemEntity,ItemFrameEntity,LeashKnotEntity,LightningBoltEntity,LivingEntity,MagmaCubeEntity,MinecartEntity,MinecraftDedicatedServer,MinecraftServer,MobEntity,MooshroomEntity,OcelotEntity,OtherClientPlayerEntity,PaintingEntity,PassiveEntity,PathAwareEntity,PigEntity,PlayerEntity,PotionEntity,RabbitEntity,ServerPlayerEntity,SheepEntity,ShulkerBulletEntity,ShulkerEntity,SilverfishEntity,SkeletonEntity,SlimeEntity,SmallFireballEntity,SnowballEntity,SnowGolemEntity,SpawnerMinecartEntity,SpetraclArrowEntity,SpiderEntity,SquidEntity,StorageMinecartEntity,TameableEntity,ThrowableEntity,TntEntity,TntMinecartEntity,VillagerEntity,WaterCreatureEntity,WeatherEntity,WitchEntity,WitherEntity,WitherSkullEntity,WolfEntity,ZombieEntity,ZombiePigmanEntity
public interface CommandSource
- Mappings:
Namespace Name official nintermediary 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
-
getTranslatedName
String getTranslatedName()- Mappings:
Namespace Name Mixin selector official h_Ln;h_()Ljava/lang/String;intermediary method_2518Lnet/minecraft/class_1061;method_2518()Ljava/lang/String;named getTranslatedNameLnet/minecraft/command/CommandSource;getTranslatedName()Ljava/lang/String;
-
method_6344
Text method_6344()- Mappings:
Namespace Name Mixin selector official i_Ln;i_()Lew;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 aLn;a(Lew;)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 aLn;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 cLn;c()Lcl;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 dLn;d()Lbbh;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 eLn;e()Laht;intermediary method_5506Lnet/minecraft/class_1061;method_5506()Lnet/minecraft/class_1150;named getWorldLnet/minecraft/command/CommandSource;getWorld()Lnet/minecraft/world/World;
-
getEntity
- Mappings:
Namespace Name Mixin selector official fLn;f()Lrr;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 z_Ln;z_()Zintermediary method_10789Lnet/minecraft/class_1061;method_10789()Znamed sendCommandFeedbackLnet/minecraft/command/CommandSource;sendCommandFeedback()Z
-
setStat
- Mappings:
Namespace Name Mixin selector official aLn;a(Lo$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
-
getMinecraftServer
- Mappings:
Namespace Name Mixin selector official hLn;h()Lnet/minecraft/server/MinecraftServer;intermediary method_12833Lnet/minecraft/class_1061;method_12833()Lnet/minecraft/server/MinecraftServer;named getMinecraftServerLnet/minecraft/command/CommandSource;getMinecraftServer()Lnet/minecraft/server/MinecraftServer;
-