-
-
Methods in net.minecraft.advancement.criterion with parameters of type ServerPlayerEntity
Modifier and Type |
Method |
Description |
void |
VillagerTradeCriterion.handle(ServerPlayerEntity player,
MerchantEntity merchant,
ItemStack stack) |
|
boolean |
EffectsChangedCriterion.Conditions.matches(ServerPlayerEntity player) |
|
boolean |
EntityHurtPlayerCriterion.Conditions.matches(ServerPlayerEntity player,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
|
boolean |
LevitationCriterion.Conditions.matches(ServerPlayerEntity player,
Vec3d startPos,
int duration) |
|
boolean |
PlayerHurtEntityCriterion.Conditions.matches(ServerPlayerEntity player,
LootContext entityContext,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
|
protected void |
AbstractCriterion.test(ServerPlayerEntity player,
Predicate<T> tester) |
|
void |
BeeNestDestroyedCriterion.test(ServerPlayerEntity player,
BlockState state,
ItemStack stack,
int beeCount) |
|
void |
ItemUsedOnBlockCriterion.test(ServerPlayerEntity player,
BlockPos pos,
ItemStack stack) |
|
boolean |
OnKilledCriterion.Conditions.test(ServerPlayerEntity player,
LootContext killedEntityContext,
DamageSource killingBlow) |
|
void |
PlayerGeneratesContainerLootCriterion.test(ServerPlayerEntity player,
Identifier id) |
|
void |
PlayerInteractedWithEntityCriterion.test(ServerPlayerEntity player,
ItemStack stack,
Entity entity) |
|
void |
SlideDownBlockCriterion.test(ServerPlayerEntity player,
BlockState state) |
|
boolean |
ThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player,
ItemStack stack,
LootContext entityContext) |
|
void |
BredAnimalsCriterion.trigger(ServerPlayerEntity player,
AnimalEntity parent,
AnimalEntity partner,
@Nullable PassiveEntity child) |
|
void |
BrewedPotionCriterion.trigger(ServerPlayerEntity player,
Potion potion) |
|
void |
ChangedDimensionCriterion.trigger(ServerPlayerEntity player,
RegistryKey<World> from,
RegistryKey<World> to) |
|
void |
ChanneledLightningCriterion.trigger(ServerPlayerEntity player,
Collection<? extends Entity> victims) |
|
void |
ConstructBeaconCriterion.trigger(ServerPlayerEntity player,
int level) |
|
void |
ConsumeItemCriterion.trigger(ServerPlayerEntity player,
ItemStack stack) |
|
void |
CuredZombieVillagerCriterion.trigger(ServerPlayerEntity player,
ZombieEntity zombie,
VillagerEntity villager) |
|
void |
EffectsChangedCriterion.trigger(ServerPlayerEntity player) |
|
void |
EnchantedItemCriterion.trigger(ServerPlayerEntity player,
ItemStack stack,
int levels) |
|
void |
EnterBlockCriterion.trigger(ServerPlayerEntity player,
BlockState state) |
|
void |
EntityHurtPlayerCriterion.trigger(ServerPlayerEntity player,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
|
void |
FilledBucketCriterion.trigger(ServerPlayerEntity player,
ItemStack stack) |
|
void |
FishingRodHookedCriterion.trigger(ServerPlayerEntity player,
ItemStack rod,
FishingBobberEntity bobber,
Collection<ItemStack> fishingLoots) |
|
void |
InventoryChangedCriterion.trigger(ServerPlayerEntity player,
PlayerInventory inventory,
ItemStack stack) |
|
private void |
InventoryChangedCriterion.trigger(ServerPlayerEntity player,
PlayerInventory inventory,
ItemStack stack,
int full,
int empty,
int occupied) |
|
void |
ItemDurabilityChangedCriterion.trigger(ServerPlayerEntity player,
ItemStack stack,
int durability) |
|
void |
KilledByCrossbowCriterion.trigger(ServerPlayerEntity player,
Collection<Entity> piercingKilledEntities) |
|
void |
LevitationCriterion.trigger(ServerPlayerEntity player,
Vec3d startPos,
int duration) |
|
void |
LocationArrivalCriterion.trigger(ServerPlayerEntity player) |
|
void |
NetherTravelCriterion.trigger(ServerPlayerEntity player,
Vec3d enteredPos) |
|
void |
OnKilledCriterion.trigger(ServerPlayerEntity player,
Entity entity,
DamageSource killingDamage) |
|
void |
PlacedBlockCriterion.trigger(ServerPlayerEntity player,
BlockPos blockPos,
ItemStack stack) |
|
void |
PlayerHurtEntityCriterion.trigger(ServerPlayerEntity player,
Entity entity,
DamageSource damage,
float dealt,
float taken,
boolean blocked) |
|
void |
RecipeUnlockedCriterion.trigger(ServerPlayerEntity player,
Recipe<?> recipe) |
|
void |
ShotCrossbowCriterion.trigger(ServerPlayerEntity player,
ItemStack stack) |
|
void |
SummonedEntityCriterion.trigger(ServerPlayerEntity player,
Entity entity) |
|
void |
TameAnimalCriterion.trigger(ServerPlayerEntity player,
AnimalEntity entity) |
|
void |
TargetHitCriterion.trigger(ServerPlayerEntity player,
Entity projectile,
Vec3d hitPos,
int signalStrength) |
|
void |
ThrownItemPickedUpByEntityCriterion.trigger(ServerPlayerEntity player,
ItemStack stack,
Entity entity) |
|
void |
TickCriterion.trigger(ServerPlayerEntity player) |
|
void |
UsedEnderEyeCriterion.trigger(ServerPlayerEntity player,
BlockPos strongholdPos) |
|
void |
UsedTotemCriterion.trigger(ServerPlayerEntity player,
ItemStack stack) |
|
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Methods in net.minecraft.server.command with parameters of type ServerPlayerEntity
Modifier and Type |
Method |
Description |
private static int |
SpectateCommand.execute(ServerCommandSource source,
@Nullable Entity entity,
ServerPlayerEntity player) |
|
private static int |
ExperienceCommand.executeQuery(ServerCommandSource source,
ServerPlayerEntity player,
ExperienceCommand.Component component) |
|
private static @Nullable Raid |
RaidCommand.getRaid(ServerPlayerEntity player) |
|
private static ScoreboardPlayerScore |
TriggerCommand.getScore(ServerPlayerEntity player,
ScoreboardObjective objective) |
|
int |
AdvancementCommand.Operation.processAll(ServerPlayerEntity player,
Iterable<Advancement> advancements) |
|
protected abstract boolean |
AdvancementCommand.Operation.processEach(ServerPlayerEntity player,
Advancement advancement) |
|
protected abstract boolean |
AdvancementCommand.Operation.processEachCriterion(ServerPlayerEntity player,
Advancement advancement,
String criterion) |
|
void |
CommandManager.sendCommandTree(ServerPlayerEntity player) |
|
private static void |
GameModeCommand.setGameMode(ServerCommandSource source,
ServerPlayerEntity player,
GameMode gameMode) |
|
Method parameters in net.minecraft.server.command with type arguments of type ServerPlayerEntity
Modifier and Type |
Method |
Description |
private static int |
ClearCommand.execute(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
Predicate<ItemStack> item,
int maxCount) |
|
private static int |
GameModeCommand.execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
Collection<ServerPlayerEntity> targets,
GameMode gameMode) |
|
private static int |
GiveCommand.execute(ServerCommandSource source,
ItemStackArgument item,
Collection<ServerPlayerEntity> targets,
int count) |
|
private static int |
KickCommand.execute(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
Text reason) |
|
private static int |
ListCommand.execute(ServerCommandSource source,
Function<ServerPlayerEntity,Text> nameProvider) |
|
private static int |
MessageCommand.execute(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
Text message) |
|
private static int |
ParticleCommand.execute(ServerCommandSource source,
ParticleEffect parameters,
Vec3d pos,
Vec3d delta,
float speed,
int count,
boolean force,
Collection<ServerPlayerEntity> viewers) |
|
private static int |
PlaySoundCommand.execute(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
Identifier sound,
SoundCategory category,
Vec3d pos,
float volume,
float pitch,
float minVolume) |
|
private static int |
SpawnPointCommand.execute(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
BlockPos pos,
float angle) |
|
private static int |
StopSoundCommand.execute(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
@Nullable SoundCategory category,
@Nullable Identifier sound) |
|
private static int |
ExperienceCommand.executeAdd(ServerCommandSource source,
Collection<? extends ServerPlayerEntity> targets,
int amount,
ExperienceCommand.Component component) |
|
private static int |
AdvancementCommand.executeAdvancement(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
AdvancementCommand.Operation operation,
Collection<Advancement> selection) |
|
private static int |
TitleCommand.executeClear(ServerCommandSource source,
Collection<ServerPlayerEntity> targets) |
|
private static int |
AdvancementCommand.executeCriterion(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
AdvancementCommand.Operation operation,
Advancement advancement,
String criterion) |
|
private static int |
LootCommand.executeGive(Collection<ServerPlayerEntity> players,
List<ItemStack> stacks,
LootCommand.FeedbackMessage messageSender) |
|
private static int |
RecipeCommand.executeGive(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
Collection<Recipe<?>> recipes) |
|
private static int |
TitleCommand.executeReset(ServerCommandSource source,
Collection<ServerPlayerEntity> targets) |
|
private static int |
ExperienceCommand.executeSet(ServerCommandSource source,
Collection<? extends ServerPlayerEntity> targets,
int amount,
ExperienceCommand.Component component) |
|
private static int |
RecipeCommand.executeTake(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
Collection<Recipe<?>> recipes) |
|
private static int |
TitleCommand.executeTimes(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
int fadeIn,
int stay,
int fadeOut) |
|
private static int |
TitleCommand.executeTitle(ServerCommandSource source,
Collection<ServerPlayerEntity> targets,
Text title,
String titleType,
Function<Text,Packet<?>> constructor) |
|
private static int |
BossBarCommand.setPlayers(ServerCommandSource source,
CommandBossBar bossBar,
Collection<ServerPlayerEntity> players) |
|
Constructor parameters in net.minecraft.server.command with type arguments of type ServerPlayerEntity
Constructor |
Description |
Component(String name,
BiConsumer<ServerPlayerEntity,Integer> adder,
BiPredicate<ServerPlayerEntity,Integer> setter,
ToIntFunction<ServerPlayerEntity> getter) |
|
Component(String name,
BiConsumer<ServerPlayerEntity,Integer> adder,
BiPredicate<ServerPlayerEntity,Integer> setter,
ToIntFunction<ServerPlayerEntity> getter) |
|
Component(String name,
BiConsumer<ServerPlayerEntity,Integer> adder,
BiPredicate<ServerPlayerEntity,Integer> setter,
ToIntFunction<ServerPlayerEntity> getter) |
|
-
-
-
Methods in net.minecraft.server.network with parameters of type ServerPlayerEntity
Modifier and Type |
Method |
Description |
private void |
ServerLoginNetworkHandler.addToServer(ServerPlayerEntity player) |
|
boolean |
ServerPlayerEntity.canBeSpectated(ServerPlayerEntity spectator) |
private static boolean |
ServerPlayNetworkHandler.canPlace(ServerPlayerEntity player,
ItemStack stack) |
Checks if a player can place a block or fluid from a bucket.
|
void |
ServerPlayerEntity.copyFrom(ServerPlayerEntity oldPlayer,
boolean alive) |
|
ActionResult |
DemoServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player,
World world,
ItemStack stack,
Hand hand,
BlockHitResult hitResult) |
ActionResult |
ServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player,
World world,
ItemStack stack,
Hand hand,
BlockHitResult hitResult) |
|
ActionResult |
DemoServerPlayerInteractionManager.interactItem(ServerPlayerEntity player,
World world,
ItemStack stack,
Hand hand) |
ActionResult |
ServerPlayerInteractionManager.interactItem(ServerPlayerEntity player,
World world,
ItemStack stack,
Hand hand) |
|
int |
ServerRecipeBook.lockRecipes(Collection<Recipe<?>> recipes,
ServerPlayerEntity player) |
|
ActionResult |
ServerPlayNetworkHandler.Interaction.run(ServerPlayerEntity player,
Entity entity,
Hand hand) |
|
void |
ServerRecipeBook.sendInitRecipesPacket(ServerPlayerEntity player) |
|
private void |
ServerRecipeBook.sendUnlockRecipesPacket(UnlockRecipesS2CPacket.Action action,
ServerPlayerEntity player,
List<Identifier> recipeIds) |
|
boolean |
ServerPlayerEntity.shouldFilterMessagesSentTo(ServerPlayerEntity player) |
|
void |
EntityTrackerEntry.startTracking(ServerPlayerEntity player) |
|
void |
EntityTrackerEntry.stopTracking(ServerPlayerEntity player) |
|
int |
ServerRecipeBook.unlockRecipes(Collection<Recipe<?>> recipes,
ServerPlayerEntity player) |
|
-
Methods in net.minecraft.server.world with parameters of type ServerPlayerEntity
Modifier and Type |
Method |
Description |
void |
PlayerChunkWatchingManager.add(long long2,
ServerPlayerEntity player,
boolean watchDisabled) |
|
private void |
ServerWorld.addPlayer(ServerPlayerEntity player) |
|
void |
PlayerChunkWatchingManager.disableWatch(ServerPlayerEntity player) |
|
private boolean |
ThreadedAnvilChunkStorage.doesNotGenerateChunks(ServerPlayerEntity player) |
|
void |
PlayerChunkWatchingManager.enableWatch(ServerPlayerEntity player) |
|
private static int |
ThreadedAnvilChunkStorage.getChebyshevDistance(ChunkPos pos,
ServerPlayerEntity player,
boolean useWatchedPosition) |
|
void |
ChunkTicketManager.handleChunkEnter(ChunkSectionPos pos,
ServerPlayerEntity player) |
|
void |
ChunkTicketManager.handleChunkLeave(ChunkSectionPos pos,
ServerPlayerEntity player) |
|
(package private) void |
ThreadedAnvilChunkStorage.handlePlayerAddedOrRemoved(ServerPlayerEntity player,
boolean added) |
|
boolean |
PlayerChunkWatchingManager.isWatchDisabled(ServerPlayerEntity player) |
|
boolean |
PlayerChunkWatchingManager.isWatchInactive(ServerPlayerEntity player) |
|
void |
PlayerChunkWatchingManager.movePlayer(long prevPos,
long currentPos,
ServerPlayerEntity player) |
|
void |
ServerWorld.onPlayerChangeDimension(ServerPlayerEntity player) |
|
void |
ServerWorld.onPlayerConnected(ServerPlayerEntity player) |
|
void |
ServerWorld.onPlayerRespawned(ServerPlayerEntity player) |
|
void |
ServerWorld.onPlayerTeleport(ServerPlayerEntity player) |
|
void |
PlayerChunkWatchingManager.remove(long long2,
ServerPlayerEntity player) |
|
void |
ServerWorld.removePlayer(ServerPlayerEntity player,
Entity.RemovalReason reason) |
|
private void |
ThreadedAnvilChunkStorage.sendChunkDataPackets(ServerPlayerEntity player,
Packet<?>[] packets,
WorldChunk chunk) |
|
private boolean |
ServerWorld.sendToPlayerIfNearby(ServerPlayerEntity player,
boolean force,
double x,
double y,
double z,
Packet<?> packet) |
|
protected void |
ThreadedAnvilChunkStorage.sendWatchPackets(ServerPlayerEntity player,
ChunkPos pos,
Packet<?>[] packets,
boolean withinMaxWatchDistance,
boolean withinViewDistance) |
|
<T extends ParticleEffect> boolean |
ServerWorld.spawnParticles(ServerPlayerEntity viewer,
T particle,
boolean force,
double x,
double y,
double z,
int count,
double deltaX,
double deltaY,
double deltaZ,
double speed) |
|
void |
ThreadedAnvilChunkStorage.EntityTracker.stopTracking(ServerPlayerEntity player) |
|
void |
ServerChunkManager.updatePosition(ServerPlayerEntity player) |
Updates the chunk section position of the player .
|
void |
ThreadedAnvilChunkStorage.updatePosition(ServerPlayerEntity player) |
Updates the chunk section position of the player .
|
void |
ThreadedAnvilChunkStorage.EntityTracker.updateTrackedStatus(ServerPlayerEntity player) |
Updates the tracked status of this tracker's entity for the player .
|
private ChunkSectionPos |
ThreadedAnvilChunkStorage.updateWatchedSection(ServerPlayerEntity player) |
Updates the watched chunk section position for the player , and sends a
render distance update packet to the client.
|
-
-