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,class_3159,class_3162,class_3168,class_3289,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,IllusionIllagerEntity,IntegratedServer,IronGolemEntity,ItemEntity,ItemFrameEntity,LeashKnotEntity,LightningBoltEntity,LivingEntity,LlamaEntity,LlamaSpitEntity,MagmaCubeEntity,MinecartEntity,MinecraftDedicatedServer,MinecraftServer,MobEntity,MooshroomEntity,MuleEntity,OcelotEntity,OtherClientPlayerEntity,PaintingEntity,ParrotEntity,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 bnintermediary net/minecraft/class_1061named net/minecraft/command/CommandSource
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanUseCommand(int permissionLevel, String commandLiteral) default BlockPosdefault Entitydefault Vec3dgetPos()getWorld()default Textdefault booleandefault voidsendMessage(Text text) default voidsetStat(CommandStats.Type statsType, int value)
-
Method Details
-
getTranslatedName
String getTranslatedName()- Mappings:
Namespace Name Mixin selector official h_Lbn;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
- Mappings:
Namespace Name Mixin selector official i_Lbn;i_()Lhh;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 aLbn;a(Lhh;)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 aLbn;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
- Mappings:
Namespace Name Mixin selector official cLbn;c()Let;intermediary method_4086Lnet/minecraft/class_1061;method_4086()Lnet/minecraft/class_2552;named getBlockPosLnet/minecraft/command/CommandSource;getBlockPos()Lnet/minecraft/util/math/BlockPos;
-
getPos
- Mappings:
Namespace Name Mixin selector official dLbn;d()Lbhe;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 eLbn;e()Lamu;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 fLbn;f()Lvg;intermediary method_10788Lnet/minecraft/class_1061;method_10788()Lnet/minecraft/class_864;named getEntityLnet/minecraft/command/CommandSource;getEntity()Lnet/minecraft/entity/Entity;
-
sendCommandFeedback
default boolean sendCommandFeedback()- Mappings:
Namespace Name Mixin selector official gLbn;g()Zintermediary method_10789Lnet/minecraft/class_1061;method_10789()Znamed sendCommandFeedbackLnet/minecraft/command/CommandSource;sendCommandFeedback()Z
-
setStat
- Mappings:
Namespace Name Mixin selector official aLbn;a(Lbp$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 C_Lbn;C_()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;
-