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,class_3135,class_3136,class_3146,ClientPlayerEntity,CommandBlockExecutor,CommandBlockMinecartEntity,Console,CowEntity,CreeperEntity,DonkeyEntity,DragonFireballEntity,EggEntity,ElderGuardianEntity,EndCrystalEntity,EnderDragonEntity,EnderDragonPart,EndermanEntity,EndermiteEntity,EnderPearlEntity,Entity,EvocationIllagerEntity,EvokerFangsEntity,ExperienceBottleEntity,ExperienceOrbEntity,ExplosiveProjectileEntity,EyeOfEnderEntity,FallingBlockEntity,FireballEntity,FireworkRocketEntity,FishingBobberEntity,FlyingEntity,FurnaceMinecartEntity,GhastEntity,GiantEntity,GolemEntity,GuardianEntity,HopperMinecartEntity,HorseBaseEntity,HostileEntity,HuskEntity,IntegratedServer,IronGolemEntity,ItemEntity,ItemFrameEntity,LeashKnotEntity,LightningBoltEntity,LivingEntity,LlamaEntity,LlamaSpitEntity,MagmaCubeEntity,MinecartEntity,MinecraftDedicatedServer,MinecraftServer,MobEntity,MooshroomEntity,MuleEntity,OcelotEntity,OtherClientPlayerEntity,PaintingEntity,PassiveEntity,PathAwareEntity,PigEntity,PlayerEntity,PolarBearEntity,PotionEntity,RabbitEntity,ServerPlayerEntity,SheepEntity,ShulkerBulletEntity,ShulkerEntity,SilverfishEntity,SkeletonEntity,SkeletonHorseEntity,SlimeEntity,SmallFireballEntity,SnowballEntity,SnowGolemEntity,SpawnerMinecartEntity,SpetraclArrowEntity,SpiderEntity,SquidEntity,StorageMinecartEntity,StrayEntity,TameableEntity,ThrowableEntity,TntEntity,TntMinecartEntity,VexEntity,VillagerEntity,VindicationIllagerEntity,WaterCreatureEntity,WeatherEntity,WhitherSkeletonEntity,WitchEntity,WitherEntity,WitherSkullEntity,WolfEntity,ZombieEntity,ZombieHorseEntity,ZombiePigmanEntity,ZombieVillagerEntity
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_()Lfb;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(Lfb;)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()Lco;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()Lbdw;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()Lajs;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()Lsn;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 gLn;g()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 B_Ln;B_()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;
-