├── .gitignore ├── BukkitApi └── org │ ├── bukkit │ ├── Art.java │ ├── Axis.java │ ├── BanEntry.java │ ├── BanList.java │ ├── BlockChangeDelegate.java │ ├── Bukkit.java │ ├── ChatColor.java │ ├── Chunk.java │ ├── ChunkSnapshot.java │ ├── CoalType.java │ ├── Color.java │ ├── CropState.java │ ├── Difficulty.java │ ├── DyeColor.java │ ├── Effect.java │ ├── EntityEffect.java │ ├── ExplosionResult.java │ ├── FeatureFlag.java │ ├── FireworkEffect.java │ ├── Fluid.java │ ├── FluidCollisionMode.java │ ├── GameEvent.java │ ├── GameMode.java │ ├── GameRule.java │ ├── GrassSpecies.java │ ├── HeightMap.java │ ├── Instrument.java │ ├── JukeboxSong.java │ ├── Keyed.java │ ├── Location.java │ ├── Material.java │ ├── MinecraftExperimental.java │ ├── MusicInstrument.java │ ├── Nameable.java │ ├── NamespacedKey.java │ ├── NetherWartsState.java │ ├── Note.java │ ├── OfflinePlayer.java │ ├── Particle.java │ ├── PortalType.java │ ├── Raid.java │ ├── RegionAccessor.java │ ├── Registry.java │ ├── Rotation.java │ ├── SandstoneType.java │ ├── Server.java │ ├── ServerLinks.java │ ├── ServerTickManager.java │ ├── SkullType.java │ ├── Sound.java │ ├── SoundCategory.java │ ├── SoundGroup.java │ ├── Statistic.java │ ├── StructureType.java │ ├── Tag.java │ ├── Translatable.java │ ├── TreeSpecies.java │ ├── TreeType.java │ ├── UndefinedNullability.java │ ├── UnsafeValues.java │ ├── Utility.java │ ├── Vibration.java │ ├── Warning.java │ ├── WeatherType.java │ ├── World.java │ ├── WorldBorder.java │ ├── WorldCreator.java │ ├── WorldType.java │ ├── advancement │ │ ├── Advancement.java │ │ ├── AdvancementDisplay.java │ │ ├── AdvancementDisplayType.java │ │ ├── AdvancementProgress.java │ │ └── package-info.java │ ├── attribute │ │ ├── Attributable.java │ │ ├── Attribute.java │ │ ├── AttributeInstance.java │ │ ├── AttributeModifier.java │ │ └── package-info.java │ ├── ban │ │ ├── IpBanList.java │ │ ├── ProfileBanList.java │ │ └── package-info.java │ ├── block │ │ ├── Banner.java │ │ ├── Barrel.java │ │ ├── Beacon.java │ │ ├── Bed.java │ │ ├── Beehive.java │ │ ├── Bell.java │ │ ├── Biome.java │ │ ├── BlastFurnace.java │ │ ├── Block.java │ │ ├── BlockFace.java │ │ ├── BlockState.java │ │ ├── BlockSupport.java │ │ ├── BlockType.java │ │ ├── BrewingStand.java │ │ ├── BrushableBlock.java │ │ ├── CalibratedSculkSensor.java │ │ ├── Campfire.java │ │ ├── Chest.java │ │ ├── ChiseledBookshelf.java │ │ ├── CommandBlock.java │ │ ├── Comparator.java │ │ ├── Conduit.java │ │ ├── Container.java │ │ ├── Crafter.java │ │ ├── CreatureSpawner.java │ │ ├── DaylightDetector.java │ │ ├── DecoratedPot.java │ │ ├── Dispenser.java │ │ ├── DoubleChest.java │ │ ├── Dropper.java │ │ ├── EnchantingTable.java │ │ ├── EndGateway.java │ │ ├── EnderChest.java │ │ ├── EntityBlockStorage.java │ │ ├── Furnace.java │ │ ├── HangingSign.java │ │ ├── Hopper.java │ │ ├── Jigsaw.java │ │ ├── Jukebox.java │ │ ├── Lectern.java │ │ ├── Lidded.java │ │ ├── Lockable.java │ │ ├── PistonMoveReaction.java │ │ ├── SculkCatalyst.java │ │ ├── SculkSensor.java │ │ ├── SculkShrieker.java │ │ ├── ShulkerBox.java │ │ ├── Sign.java │ │ ├── Skull.java │ │ ├── Smoker.java │ │ ├── Structure.java │ │ ├── SuspiciousSand.java │ │ ├── TileState.java │ │ ├── TrialSpawner.java │ │ ├── Vault.java │ │ ├── banner │ │ │ ├── Pattern.java │ │ │ ├── PatternType.java │ │ │ └── package-info.java │ │ ├── data │ │ │ ├── Ageable.java │ │ │ ├── AnaloguePowerable.java │ │ │ ├── Attachable.java │ │ │ ├── Bisected.java │ │ │ ├── BlockData.java │ │ │ ├── Brushable.java │ │ │ ├── Directional.java │ │ │ ├── FaceAttachable.java │ │ │ ├── Hangable.java │ │ │ ├── Hatchable.java │ │ │ ├── Levelled.java │ │ │ ├── Lightable.java │ │ │ ├── MultipleFacing.java │ │ │ ├── Openable.java │ │ │ ├── Orientable.java │ │ │ ├── Powerable.java │ │ │ ├── Rail.java │ │ │ ├── Rotatable.java │ │ │ ├── Snowable.java │ │ │ ├── Waterlogged.java │ │ │ ├── package-info.java │ │ │ └── type │ │ │ │ ├── AmethystCluster.java │ │ │ │ ├── Bamboo.java │ │ │ │ ├── Barrel.java │ │ │ │ ├── Bed.java │ │ │ │ ├── Beehive.java │ │ │ │ ├── Bell.java │ │ │ │ ├── BigDripleaf.java │ │ │ │ ├── BrewingStand.java │ │ │ │ ├── BubbleColumn.java │ │ │ │ ├── Cake.java │ │ │ │ ├── CalibratedSculkSensor.java │ │ │ │ ├── Campfire.java │ │ │ │ ├── Candle.java │ │ │ │ ├── CaveVines.java │ │ │ │ ├── CaveVinesPlant.java │ │ │ │ ├── Chain.java │ │ │ │ ├── Chest.java │ │ │ │ ├── ChiseledBookshelf.java │ │ │ │ ├── Cocoa.java │ │ │ │ ├── CommandBlock.java │ │ │ │ ├── Comparator.java │ │ │ │ ├── CopperBulb.java │ │ │ │ ├── CoralWallFan.java │ │ │ │ ├── Crafter.java │ │ │ │ ├── DaylightDetector.java │ │ │ │ ├── DecoratedPot.java │ │ │ │ ├── Dispenser.java │ │ │ │ ├── Door.java │ │ │ │ ├── Dripleaf.java │ │ │ │ ├── EndPortalFrame.java │ │ │ │ ├── EnderChest.java │ │ │ │ ├── Farmland.java │ │ │ │ ├── Fence.java │ │ │ │ ├── Fire.java │ │ │ │ ├── Furnace.java │ │ │ │ ├── Gate.java │ │ │ │ ├── GlassPane.java │ │ │ │ ├── GlowLichen.java │ │ │ │ ├── Grindstone.java │ │ │ │ ├── HangingSign.java │ │ │ │ ├── Hopper.java │ │ │ │ ├── Jigsaw.java │ │ │ │ ├── Jukebox.java │ │ │ │ ├── Ladder.java │ │ │ │ ├── Lantern.java │ │ │ │ ├── Leaves.java │ │ │ │ ├── Lectern.java │ │ │ │ ├── Light.java │ │ │ │ ├── LightningRod.java │ │ │ │ ├── MangrovePropagule.java │ │ │ │ ├── NoteBlock.java │ │ │ │ ├── Observer.java │ │ │ │ ├── PinkPetals.java │ │ │ │ ├── Piston.java │ │ │ │ ├── PistonHead.java │ │ │ │ ├── PitcherCrop.java │ │ │ │ ├── PointedDripstone.java │ │ │ │ ├── RedstoneRail.java │ │ │ │ ├── RedstoneWallTorch.java │ │ │ │ ├── RedstoneWire.java │ │ │ │ ├── Repeater.java │ │ │ │ ├── RespawnAnchor.java │ │ │ │ ├── Sapling.java │ │ │ │ ├── Scaffolding.java │ │ │ │ ├── SculkCatalyst.java │ │ │ │ ├── SculkSensor.java │ │ │ │ ├── SculkShrieker.java │ │ │ │ ├── SculkVein.java │ │ │ │ ├── SeaPickle.java │ │ │ │ ├── Sign.java │ │ │ │ ├── Slab.java │ │ │ │ ├── SmallDripleaf.java │ │ │ │ ├── Snow.java │ │ │ │ ├── Stairs.java │ │ │ │ ├── StructureBlock.java │ │ │ │ ├── Switch.java │ │ │ │ ├── TNT.java │ │ │ │ ├── TechnicalPiston.java │ │ │ │ ├── TrapDoor.java │ │ │ │ ├── TrialSpawner.java │ │ │ │ ├── Tripwire.java │ │ │ │ ├── TripwireHook.java │ │ │ │ ├── TurtleEgg.java │ │ │ │ ├── Vault.java │ │ │ │ ├── Wall.java │ │ │ │ ├── WallHangingSign.java │ │ │ │ ├── WallSign.java │ │ │ │ └── package-info.java │ │ ├── package-info.java │ │ ├── sign │ │ │ ├── Side.java │ │ │ ├── SignSide.java │ │ │ └── package-info.java │ │ ├── spawner │ │ │ ├── SpawnRule.java │ │ │ ├── SpawnerEntry.java │ │ │ └── package-info.java │ │ └── structure │ │ │ ├── Mirror.java │ │ │ ├── StructureRotation.java │ │ │ ├── UsageMode.java │ │ │ └── package-info.java │ ├── boss │ │ ├── BarColor.java │ │ ├── BarFlag.java │ │ ├── BarStyle.java │ │ ├── BossBar.java │ │ ├── DragonBattle.java │ │ ├── KeyedBossBar.java │ │ └── package-info.java │ ├── command │ │ ├── BlockCommandSender.java │ │ ├── Command.java │ │ ├── CommandException.java │ │ ├── CommandExecutor.java │ │ ├── CommandMap.java │ │ ├── CommandSender.java │ │ ├── ConsoleCommandSender.java │ │ ├── FormattedCommandAlias.java │ │ ├── MultipleCommandAlias.java │ │ ├── PluginCommand.java │ │ ├── PluginCommandYamlParser.java │ │ ├── PluginIdentifiableCommand.java │ │ ├── ProxiedCommandSender.java │ │ ├── RemoteConsoleCommandSender.java │ │ ├── SimpleCommandMap.java │ │ ├── TabCompleter.java │ │ ├── TabExecutor.java │ │ ├── defaults │ │ │ ├── BukkitCommand.java │ │ │ ├── HelpCommand.java │ │ │ ├── PluginsCommand.java │ │ │ ├── ReloadCommand.java │ │ │ ├── TimingsCommand.java │ │ │ ├── VersionCommand.java │ │ │ └── package-info.java │ │ └── package-info.java │ ├── configuration │ │ ├── Configuration.java │ │ ├── ConfigurationOptions.java │ │ ├── ConfigurationSection.java │ │ ├── InvalidConfigurationException.java │ │ ├── MemoryConfiguration.java │ │ ├── MemoryConfigurationOptions.java │ │ ├── MemorySection.java │ │ ├── SectionPathData.java │ │ ├── file │ │ │ ├── FileConfiguration.java │ │ │ ├── FileConfigurationOptions.java │ │ │ ├── YamlConfiguration.java │ │ │ ├── YamlConfigurationOptions.java │ │ │ ├── YamlConstructor.java │ │ │ ├── YamlRepresenter.java │ │ │ └── package-info.java │ │ ├── package-info.java │ │ └── serialization │ │ │ ├── ConfigurationSerializable.java │ │ │ ├── ConfigurationSerialization.java │ │ │ ├── DelegateDeserialization.java │ │ │ ├── SerializableAs.java │ │ │ └── package-info.java │ ├── conversations │ │ ├── BooleanPrompt.java │ │ ├── Conversable.java │ │ ├── Conversation.java │ │ ├── ConversationAbandonedEvent.java │ │ ├── ConversationAbandonedListener.java │ │ ├── ConversationCanceller.java │ │ ├── ConversationContext.java │ │ ├── ConversationFactory.java │ │ ├── ConversationPrefix.java │ │ ├── ExactMatchConversationCanceller.java │ │ ├── FixedSetPrompt.java │ │ ├── InactivityConversationCanceller.java │ │ ├── ManuallyAbandonedConversationCanceller.java │ │ ├── MessagePrompt.java │ │ ├── NullConversationPrefix.java │ │ ├── NumericPrompt.java │ │ ├── PlayerNamePrompt.java │ │ ├── PluginNameConversationPrefix.java │ │ ├── Prompt.java │ │ ├── RegexPrompt.java │ │ ├── StringPrompt.java │ │ ├── ValidatingPrompt.java │ │ └── package-info.java │ ├── damage │ │ ├── DamageEffect.java │ │ ├── DamageScaling.java │ │ ├── DamageSource.java │ │ ├── DamageType.java │ │ ├── DeathMessageType.java │ │ └── package-info.java │ ├── enchantments │ │ ├── Enchantment.java │ │ ├── EnchantmentOffer.java │ │ ├── EnchantmentTarget.java │ │ ├── EnchantmentWrapper.java │ │ └── package-info.java │ ├── entity │ │ ├── AbstractArrow.java │ │ ├── AbstractHorse.java │ │ ├── AbstractSkeleton.java │ │ ├── AbstractVillager.java │ │ ├── AbstractWindCharge.java │ │ ├── Ageable.java │ │ ├── Allay.java │ │ ├── Ambient.java │ │ ├── AnimalTamer.java │ │ ├── Animals.java │ │ ├── AreaEffectCloud.java │ │ ├── Armadillo.java │ │ ├── ArmorStand.java │ │ ├── Arrow.java │ │ ├── Axolotl.java │ │ ├── Bat.java │ │ ├── Bee.java │ │ ├── Blaze.java │ │ ├── BlockDisplay.java │ │ ├── Boat.java │ │ ├── Bogged.java │ │ ├── Boss.java │ │ ├── Breedable.java │ │ ├── Breeze.java │ │ ├── BreezeWindCharge.java │ │ ├── Camel.java │ │ ├── Cat.java │ │ ├── CaveSpider.java │ │ ├── ChestBoat.java │ │ ├── ChestedHorse.java │ │ ├── Chicken.java │ │ ├── Cod.java │ │ ├── ComplexEntityPart.java │ │ ├── ComplexLivingEntity.java │ │ ├── Cow.java │ │ ├── Creature.java │ │ ├── Creeper.java │ │ ├── Damageable.java │ │ ├── Display.java │ │ ├── Dolphin.java │ │ ├── Donkey.java │ │ ├── DragonFireball.java │ │ ├── Drowned.java │ │ ├── Egg.java │ │ ├── ElderGuardian.java │ │ ├── EnderCrystal.java │ │ ├── EnderDragon.java │ │ ├── EnderDragonPart.java │ │ ├── EnderPearl.java │ │ ├── EnderSignal.java │ │ ├── Enderman.java │ │ ├── Endermite.java │ │ ├── Enemy.java │ │ ├── Entity.java │ │ ├── EntityCategory.java │ │ ├── EntityFactory.java │ │ ├── EntitySnapshot.java │ │ ├── EntityType.java │ │ ├── Evoker.java │ │ ├── EvokerFangs.java │ │ ├── ExperienceOrb.java │ │ ├── Explosive.java │ │ ├── FallingBlock.java │ │ ├── Fireball.java │ │ ├── Firework.java │ │ ├── Fish.java │ │ ├── FishHook.java │ │ ├── Flying.java │ │ ├── Fox.java │ │ ├── Frog.java │ │ ├── Ghast.java │ │ ├── Giant.java │ │ ├── GlowItemFrame.java │ │ ├── GlowSquid.java │ │ ├── Goat.java │ │ ├── Golem.java │ │ ├── Guardian.java │ │ ├── Hanging.java │ │ ├── Hoglin.java │ │ ├── Horse.java │ │ ├── HumanEntity.java │ │ ├── Husk.java │ │ ├── Illager.java │ │ ├── Illusioner.java │ │ ├── Interaction.java │ │ ├── IronGolem.java │ │ ├── Item.java │ │ ├── ItemDisplay.java │ │ ├── ItemFrame.java │ │ ├── LargeFireball.java │ │ ├── LeashHitch.java │ │ ├── LightningStrike.java │ │ ├── LingeringPotion.java │ │ ├── LivingEntity.java │ │ ├── Llama.java │ │ ├── LlamaSpit.java │ │ ├── MagmaCube.java │ │ ├── Marker.java │ │ ├── Minecart.java │ │ ├── Mob.java │ │ ├── Monster.java │ │ ├── Mule.java │ │ ├── MushroomCow.java │ │ ├── NPC.java │ │ ├── Ocelot.java │ │ ├── OminousItemSpawner.java │ │ ├── Painting.java │ │ ├── Panda.java │ │ ├── Parrot.java │ │ ├── Phantom.java │ │ ├── Pig.java │ │ ├── PigZombie.java │ │ ├── Piglin.java │ │ ├── PiglinAbstract.java │ │ ├── PiglinBrute.java │ │ ├── Pillager.java │ │ ├── Player.java │ │ ├── PolarBear.java │ │ ├── Pose.java │ │ ├── Projectile.java │ │ ├── PufferFish.java │ │ ├── Rabbit.java │ │ ├── Raider.java │ │ ├── Ravager.java │ │ ├── Salmon.java │ │ ├── Sheep.java │ │ ├── Shulker.java │ │ ├── ShulkerBullet.java │ │ ├── Silverfish.java │ │ ├── Sittable.java │ │ ├── SizedFireball.java │ │ ├── Skeleton.java │ │ ├── SkeletonHorse.java │ │ ├── Slime.java │ │ ├── SmallFireball.java │ │ ├── Sniffer.java │ │ ├── Snowball.java │ │ ├── Snowman.java │ │ ├── SpawnCategory.java │ │ ├── SpectralArrow.java │ │ ├── Spellcaster.java │ │ ├── Spider.java │ │ ├── SplashPotion.java │ │ ├── Squid.java │ │ ├── Steerable.java │ │ ├── Stray.java │ │ ├── Strider.java │ │ ├── TNTPrimed.java │ │ ├── Tadpole.java │ │ ├── Tameable.java │ │ ├── TextDisplay.java │ │ ├── ThrowableProjectile.java │ │ ├── ThrownExpBottle.java │ │ ├── ThrownPotion.java │ │ ├── TippedArrow.java │ │ ├── TraderLlama.java │ │ ├── Trident.java │ │ ├── TropicalFish.java │ │ ├── Turtle.java │ │ ├── Vehicle.java │ │ ├── Vex.java │ │ ├── Villager.java │ │ ├── Vindicator.java │ │ ├── WanderingTrader.java │ │ ├── Warden.java │ │ ├── WaterMob.java │ │ ├── WindCharge.java │ │ ├── Witch.java │ │ ├── Wither.java │ │ ├── WitherSkeleton.java │ │ ├── WitherSkull.java │ │ ├── Wolf.java │ │ ├── Zoglin.java │ │ ├── Zombie.java │ │ ├── ZombieHorse.java │ │ ├── ZombieVillager.java │ │ ├── memory │ │ │ ├── MemoryKey.java │ │ │ └── package-info.java │ │ ├── minecart │ │ │ ├── CommandMinecart.java │ │ │ ├── ExplosiveMinecart.java │ │ │ ├── HopperMinecart.java │ │ │ ├── PoweredMinecart.java │ │ │ ├── RideableMinecart.java │ │ │ ├── SpawnerMinecart.java │ │ │ ├── StorageMinecart.java │ │ │ └── package-info.java │ │ └── package-info.java │ ├── event │ │ ├── Cancellable.java │ │ ├── Event.java │ │ ├── EventException.java │ │ ├── EventHandler.java │ │ ├── EventPriority.java │ │ ├── HandlerList.java │ │ ├── Listener.java │ │ ├── block │ │ │ ├── Action.java │ │ │ ├── BellResonateEvent.java │ │ │ ├── BellRingEvent.java │ │ │ ├── BlockBreakEvent.java │ │ │ ├── BlockBurnEvent.java │ │ │ ├── BlockCanBuildEvent.java │ │ │ ├── BlockCookEvent.java │ │ │ ├── BlockDamageAbortEvent.java │ │ │ ├── BlockDamageEvent.java │ │ │ ├── BlockDispenseArmorEvent.java │ │ │ ├── BlockDispenseEvent.java │ │ │ ├── BlockDropItemEvent.java │ │ │ ├── BlockEvent.java │ │ │ ├── BlockExpEvent.java │ │ │ ├── BlockExplodeEvent.java │ │ │ ├── BlockFadeEvent.java │ │ │ ├── BlockFertilizeEvent.java │ │ │ ├── BlockFormEvent.java │ │ │ ├── BlockFromToEvent.java │ │ │ ├── BlockGrowEvent.java │ │ │ ├── BlockIgniteEvent.java │ │ │ ├── BlockMultiPlaceEvent.java │ │ │ ├── BlockPhysicsEvent.java │ │ │ ├── BlockPistonEvent.java │ │ │ ├── BlockPistonExtendEvent.java │ │ │ ├── BlockPistonRetractEvent.java │ │ │ ├── BlockPlaceEvent.java │ │ │ ├── BlockReceiveGameEvent.java │ │ │ ├── BlockRedstoneEvent.java │ │ │ ├── BlockShearEntityEvent.java │ │ │ ├── BlockSpreadEvent.java │ │ │ ├── BrewingStartEvent.java │ │ │ ├── CampfireStartEvent.java │ │ │ ├── CauldronLevelChangeEvent.java │ │ │ ├── EntityBlockFormEvent.java │ │ │ ├── FluidLevelChangeEvent.java │ │ │ ├── InventoryBlockStartEvent.java │ │ │ ├── LeavesDecayEvent.java │ │ │ ├── MoistureChangeEvent.java │ │ │ ├── NotePlayEvent.java │ │ │ ├── SculkBloomEvent.java │ │ │ ├── SignChangeEvent.java │ │ │ ├── SpongeAbsorbEvent.java │ │ │ ├── TNTPrimeEvent.java │ │ │ └── package-info.java │ │ ├── enchantment │ │ │ ├── EnchantItemEvent.java │ │ │ ├── PrepareItemEnchantEvent.java │ │ │ └── package-info.java │ │ ├── entity │ │ │ ├── AreaEffectCloudApplyEvent.java │ │ │ ├── ArrowBodyCountChangeEvent.java │ │ │ ├── BatToggleSleepEvent.java │ │ │ ├── CreatureSpawnEvent.java │ │ │ ├── CreeperPowerEvent.java │ │ │ ├── EnderDragonChangePhaseEvent.java │ │ │ ├── EntityAirChangeEvent.java │ │ │ ├── EntityBreakDoorEvent.java │ │ │ ├── EntityBreedEvent.java │ │ │ ├── EntityChangeBlockEvent.java │ │ │ ├── EntityCombustByBlockEvent.java │ │ │ ├── EntityCombustByEntityEvent.java │ │ │ ├── EntityCombustEvent.java │ │ │ ├── EntityCreatePortalEvent.java │ │ │ ├── EntityDamageByBlockEvent.java │ │ │ ├── EntityDamageByEntityEvent.java │ │ │ ├── EntityDamageEvent.java │ │ │ ├── EntityDeathEvent.java │ │ │ ├── EntityDismountEvent.java │ │ │ ├── EntityDropItemEvent.java │ │ │ ├── EntityEnterBlockEvent.java │ │ │ ├── EntityEnterLoveModeEvent.java │ │ │ ├── EntityEvent.java │ │ │ ├── EntityExhaustionEvent.java │ │ │ ├── EntityExplodeEvent.java │ │ │ ├── EntityInteractEvent.java │ │ │ ├── EntityKnockbackByEntityEvent.java │ │ │ ├── EntityKnockbackEvent.java │ │ │ ├── EntityMountEvent.java │ │ │ ├── EntityPickupItemEvent.java │ │ │ ├── EntityPlaceEvent.java │ │ │ ├── EntityPortalEnterEvent.java │ │ │ ├── EntityPortalEvent.java │ │ │ ├── EntityPortalExitEvent.java │ │ │ ├── EntityPoseChangeEvent.java │ │ │ ├── EntityPotionEffectEvent.java │ │ │ ├── EntityRegainHealthEvent.java │ │ │ ├── EntityRemoveEvent.java │ │ │ ├── EntityResurrectEvent.java │ │ │ ├── EntityShootBowEvent.java │ │ │ ├── EntitySpawnEvent.java │ │ │ ├── EntitySpellCastEvent.java │ │ │ ├── EntityTameEvent.java │ │ │ ├── EntityTargetEvent.java │ │ │ ├── EntityTargetLivingEntityEvent.java │ │ │ ├── EntityTeleportEvent.java │ │ │ ├── EntityToggleGlideEvent.java │ │ │ ├── EntityToggleSwimEvent.java │ │ │ ├── EntityTransformEvent.java │ │ │ ├── EntityUnleashEvent.java │ │ │ ├── ExpBottleEvent.java │ │ │ ├── ExplosionPrimeEvent.java │ │ │ ├── FireworkExplodeEvent.java │ │ │ ├── FoodLevelChangeEvent.java │ │ │ ├── HorseJumpEvent.java │ │ │ ├── ItemDespawnEvent.java │ │ │ ├── ItemMergeEvent.java │ │ │ ├── ItemSpawnEvent.java │ │ │ ├── LingeringPotionSplashEvent.java │ │ │ ├── PigZapEvent.java │ │ │ ├── PigZombieAngerEvent.java │ │ │ ├── PiglinBarterEvent.java │ │ │ ├── PlayerDeathEvent.java │ │ │ ├── PlayerLeashEntityEvent.java │ │ │ ├── PotionSplashEvent.java │ │ │ ├── ProjectileHitEvent.java │ │ │ ├── ProjectileLaunchEvent.java │ │ │ ├── SheepDyeWoolEvent.java │ │ │ ├── SheepRegrowWoolEvent.java │ │ │ ├── SlimeSplitEvent.java │ │ │ ├── SpawnerSpawnEvent.java │ │ │ ├── StriderTemperatureChangeEvent.java │ │ │ ├── TrialSpawnerSpawnEvent.java │ │ │ ├── VillagerAcquireTradeEvent.java │ │ │ ├── VillagerCareerChangeEvent.java │ │ │ ├── VillagerReplenishTradeEvent.java │ │ │ └── package-info.java │ │ ├── hanging │ │ │ ├── HangingBreakByEntityEvent.java │ │ │ ├── HangingBreakEvent.java │ │ │ ├── HangingEvent.java │ │ │ ├── HangingPlaceEvent.java │ │ │ └── package-info.java │ │ ├── inventory │ │ │ ├── BrewEvent.java │ │ │ ├── BrewingStandFuelEvent.java │ │ │ ├── ClickType.java │ │ │ ├── CraftItemEvent.java │ │ │ ├── DragType.java │ │ │ ├── FurnaceBurnEvent.java │ │ │ ├── FurnaceExtractEvent.java │ │ │ ├── FurnaceSmeltEvent.java │ │ │ ├── FurnaceStartSmeltEvent.java │ │ │ ├── HopperInventorySearchEvent.java │ │ │ ├── InventoryAction.java │ │ │ ├── InventoryClickEvent.java │ │ │ ├── InventoryCloseEvent.java │ │ │ ├── InventoryCreativeEvent.java │ │ │ ├── InventoryDragEvent.java │ │ │ ├── InventoryEvent.java │ │ │ ├── InventoryInteractEvent.java │ │ │ ├── InventoryMoveItemEvent.java │ │ │ ├── InventoryOpenEvent.java │ │ │ ├── InventoryPickupItemEvent.java │ │ │ ├── InventoryType.java │ │ │ ├── PrepareAnvilEvent.java │ │ │ ├── PrepareGrindstoneEvent.java │ │ │ ├── PrepareInventoryResultEvent.java │ │ │ ├── PrepareItemCraftEvent.java │ │ │ ├── PrepareSmithingEvent.java │ │ │ ├── SmithItemEvent.java │ │ │ ├── TradeSelectEvent.java │ │ │ └── package-info.java │ │ ├── package-info.java │ │ ├── player │ │ │ ├── AsyncPlayerChatEvent.java │ │ │ ├── AsyncPlayerChatPreviewEvent.java │ │ │ ├── AsyncPlayerPreLoginEvent.java │ │ │ ├── PlayerAdvancementDoneEvent.java │ │ │ ├── PlayerAnimationEvent.java │ │ │ ├── PlayerAnimationType.java │ │ │ ├── PlayerArmorStandManipulateEvent.java │ │ │ ├── PlayerBedEnterEvent.java │ │ │ ├── PlayerBedLeaveEvent.java │ │ │ ├── PlayerBucketEmptyEvent.java │ │ │ ├── PlayerBucketEntityEvent.java │ │ │ ├── PlayerBucketEvent.java │ │ │ ├── PlayerBucketFillEvent.java │ │ │ ├── PlayerBucketFishEvent.java │ │ │ ├── PlayerChangedMainHandEvent.java │ │ │ ├── PlayerChangedWorldEvent.java │ │ │ ├── PlayerChannelEvent.java │ │ │ ├── PlayerChatEvent.java │ │ │ ├── PlayerChatTabCompleteEvent.java │ │ │ ├── PlayerCommandPreprocessEvent.java │ │ │ ├── PlayerCommandSendEvent.java │ │ │ ├── PlayerDropItemEvent.java │ │ │ ├── PlayerEditBookEvent.java │ │ │ ├── PlayerEggThrowEvent.java │ │ │ ├── PlayerEvent.java │ │ │ ├── PlayerExpChangeEvent.java │ │ │ ├── PlayerExpCooldownChangeEvent.java │ │ │ ├── PlayerFishEvent.java │ │ │ ├── PlayerGameModeChangeEvent.java │ │ │ ├── PlayerHarvestBlockEvent.java │ │ │ ├── PlayerHideEntityEvent.java │ │ │ ├── PlayerInteractAtEntityEvent.java │ │ │ ├── PlayerInteractEntityEvent.java │ │ │ ├── PlayerInteractEvent.java │ │ │ ├── PlayerItemBreakEvent.java │ │ │ ├── PlayerItemConsumeEvent.java │ │ │ ├── PlayerItemDamageEvent.java │ │ │ ├── PlayerItemHeldEvent.java │ │ │ ├── PlayerItemMendEvent.java │ │ │ ├── PlayerJoinEvent.java │ │ │ ├── PlayerKickEvent.java │ │ │ ├── PlayerLevelChangeEvent.java │ │ │ ├── PlayerLinksSendEvent.java │ │ │ ├── PlayerLocaleChangeEvent.java │ │ │ ├── PlayerLoginEvent.java │ │ │ ├── PlayerMoveEvent.java │ │ │ ├── PlayerPickupArrowEvent.java │ │ │ ├── PlayerPickupItemEvent.java │ │ │ ├── PlayerPortalEvent.java │ │ │ ├── PlayerPreLoginEvent.java │ │ │ ├── PlayerQuitEvent.java │ │ │ ├── PlayerRecipeBookClickEvent.java │ │ │ ├── PlayerRecipeBookSettingsChangeEvent.java │ │ │ ├── PlayerRecipeDiscoverEvent.java │ │ │ ├── PlayerRegisterChannelEvent.java │ │ │ ├── PlayerResourcePackStatusEvent.java │ │ │ ├── PlayerRespawnEvent.java │ │ │ ├── PlayerRiptideEvent.java │ │ │ ├── PlayerShearEntityEvent.java │ │ │ ├── PlayerShowEntityEvent.java │ │ │ ├── PlayerSignOpenEvent.java │ │ │ ├── PlayerSpawnChangeEvent.java │ │ │ ├── PlayerStatisticIncrementEvent.java │ │ │ ├── PlayerSwapHandItemsEvent.java │ │ │ ├── PlayerTakeLecternBookEvent.java │ │ │ ├── PlayerTeleportEvent.java │ │ │ ├── PlayerToggleFlightEvent.java │ │ │ ├── PlayerToggleSneakEvent.java │ │ │ ├── PlayerToggleSprintEvent.java │ │ │ ├── PlayerUnleashEntityEvent.java │ │ │ ├── PlayerUnregisterChannelEvent.java │ │ │ ├── PlayerVelocityEvent.java │ │ │ └── package-info.java │ │ ├── raid │ │ │ ├── RaidEvent.java │ │ │ ├── RaidFinishEvent.java │ │ │ ├── RaidSpawnWaveEvent.java │ │ │ ├── RaidStopEvent.java │ │ │ ├── RaidTriggerEvent.java │ │ │ └── package-info.java │ │ ├── server │ │ │ ├── BroadcastMessageEvent.java │ │ │ ├── MapInitializeEvent.java │ │ │ ├── PluginDisableEvent.java │ │ │ ├── PluginEnableEvent.java │ │ │ ├── PluginEvent.java │ │ │ ├── RemoteServerCommandEvent.java │ │ │ ├── ServerCommandEvent.java │ │ │ ├── ServerEvent.java │ │ │ ├── ServerListPingEvent.java │ │ │ ├── ServerLoadEvent.java │ │ │ ├── ServiceEvent.java │ │ │ ├── ServiceRegisterEvent.java │ │ │ ├── ServiceUnregisterEvent.java │ │ │ ├── TabCompleteEvent.java │ │ │ └── package-info.java │ │ ├── vehicle │ │ │ ├── VehicleBlockCollisionEvent.java │ │ │ ├── VehicleCollisionEvent.java │ │ │ ├── VehicleCreateEvent.java │ │ │ ├── VehicleDamageEvent.java │ │ │ ├── VehicleDestroyEvent.java │ │ │ ├── VehicleEnterEvent.java │ │ │ ├── VehicleEntityCollisionEvent.java │ │ │ ├── VehicleEvent.java │ │ │ ├── VehicleExitEvent.java │ │ │ ├── VehicleMoveEvent.java │ │ │ ├── VehicleUpdateEvent.java │ │ │ └── package-info.java │ │ ├── weather │ │ │ ├── LightningStrikeEvent.java │ │ │ ├── ThunderChangeEvent.java │ │ │ ├── WeatherChangeEvent.java │ │ │ ├── WeatherEvent.java │ │ │ └── package-info.java │ │ └── world │ │ │ ├── AsyncStructureGenerateEvent.java │ │ │ ├── AsyncStructureSpawnEvent.java │ │ │ ├── ChunkEvent.java │ │ │ ├── ChunkLoadEvent.java │ │ │ ├── ChunkPopulateEvent.java │ │ │ ├── ChunkUnloadEvent.java │ │ │ ├── EntitiesLoadEvent.java │ │ │ ├── EntitiesUnloadEvent.java │ │ │ ├── GenericGameEvent.java │ │ │ ├── LootGenerateEvent.java │ │ │ ├── PortalCreateEvent.java │ │ │ ├── SpawnChangeEvent.java │ │ │ ├── StructureGrowEvent.java │ │ │ ├── TimeSkipEvent.java │ │ │ ├── WorldEvent.java │ │ │ ├── WorldInitEvent.java │ │ │ ├── WorldLoadEvent.java │ │ │ ├── WorldSaveEvent.java │ │ │ ├── WorldUnloadEvent.java │ │ │ └── package-info.java │ ├── generator │ │ ├── BiomeParameterPoint.java │ │ ├── BiomeProvider.java │ │ ├── BlockPopulator.java │ │ ├── ChunkGenerator.java │ │ ├── LimitedRegion.java │ │ ├── WorldInfo.java │ │ ├── package-info.java │ │ └── structure │ │ │ ├── GeneratedStructure.java │ │ │ ├── Structure.java │ │ │ ├── StructurePiece.java │ │ │ ├── StructureType.java │ │ │ └── package-info.java │ ├── help │ │ ├── GenericCommandHelpTopic.java │ │ ├── HelpMap.java │ │ ├── HelpTopic.java │ │ ├── HelpTopicComparator.java │ │ ├── HelpTopicFactory.java │ │ ├── IndexHelpTopic.java │ │ └── package-info.java │ ├── inventory │ │ ├── AbstractHorseInventory.java │ │ ├── AnvilInventory.java │ │ ├── BeaconInventory.java │ │ ├── BlastingRecipe.java │ │ ├── BlockInventoryHolder.java │ │ ├── BrewerInventory.java │ │ ├── CampfireRecipe.java │ │ ├── CartographyInventory.java │ │ ├── ChiseledBookshelfInventory.java │ │ ├── ComplexRecipe.java │ │ ├── CookingRecipe.java │ │ ├── CrafterInventory.java │ │ ├── CraftingInventory.java │ │ ├── CraftingRecipe.java │ │ ├── CreativeCategory.java │ │ ├── DecoratedPotInventory.java │ │ ├── DoubleChestInventory.java │ │ ├── EnchantingInventory.java │ │ ├── EntityEquipment.java │ │ ├── EquipmentSlot.java │ │ ├── EquipmentSlotGroup.java │ │ ├── FurnaceInventory.java │ │ ├── FurnaceRecipe.java │ │ ├── GrindstoneInventory.java │ │ ├── HorseInventory.java │ │ ├── Inventory.java │ │ ├── InventoryHolder.java │ │ ├── InventoryView.java │ │ ├── ItemCraftResult.java │ │ ├── ItemFactory.java │ │ ├── ItemFlag.java │ │ ├── ItemRarity.java │ │ ├── ItemStack.java │ │ ├── ItemType.java │ │ ├── JukeboxInventory.java │ │ ├── LecternInventory.java │ │ ├── LlamaInventory.java │ │ ├── LoomInventory.java │ │ ├── MainHand.java │ │ ├── Merchant.java │ │ ├── MerchantInventory.java │ │ ├── MerchantRecipe.java │ │ ├── PlayerInventory.java │ │ ├── Recipe.java │ │ ├── RecipeChoice.java │ │ ├── ShapedRecipe.java │ │ ├── ShapelessRecipe.java │ │ ├── SmithingInventory.java │ │ ├── SmithingRecipe.java │ │ ├── SmithingTransformRecipe.java │ │ ├── SmithingTrimRecipe.java │ │ ├── SmokingRecipe.java │ │ ├── StonecutterInventory.java │ │ ├── StonecuttingRecipe.java │ │ ├── meta │ │ │ ├── ArmorMeta.java │ │ │ ├── AxolotlBucketMeta.java │ │ │ ├── BannerMeta.java │ │ │ ├── BlockDataMeta.java │ │ │ ├── BlockStateMeta.java │ │ │ ├── BookMeta.java │ │ │ ├── BundleMeta.java │ │ │ ├── ColorableArmorMeta.java │ │ │ ├── CompassMeta.java │ │ │ ├── CrossbowMeta.java │ │ │ ├── Damageable.java │ │ │ ├── EnchantmentStorageMeta.java │ │ │ ├── FireworkEffectMeta.java │ │ │ ├── FireworkMeta.java │ │ │ ├── ItemMeta.java │ │ │ ├── KnowledgeBookMeta.java │ │ │ ├── LeatherArmorMeta.java │ │ │ ├── MapMeta.java │ │ │ ├── MusicInstrumentMeta.java │ │ │ ├── OminousBottleMeta.java │ │ │ ├── PotionMeta.java │ │ │ ├── Repairable.java │ │ │ ├── SkullMeta.java │ │ │ ├── SpawnEggMeta.java │ │ │ ├── SuspiciousStewMeta.java │ │ │ ├── TropicalFishBucketMeta.java │ │ │ ├── WritableBookMeta.java │ │ │ ├── components │ │ │ │ ├── FoodComponent.java │ │ │ │ ├── JukeboxPlayableComponent.java │ │ │ │ ├── ToolComponent.java │ │ │ │ └── package-info.java │ │ │ ├── package-info.java │ │ │ ├── tags │ │ │ │ ├── CustomItemTagContainer.java │ │ │ │ ├── ItemTagAdapterContext.java │ │ │ │ ├── ItemTagType.java │ │ │ │ └── package-info.java │ │ │ └── trim │ │ │ │ ├── ArmorTrim.java │ │ │ │ ├── TrimMaterial.java │ │ │ │ ├── TrimPattern.java │ │ │ │ └── package-info.java │ │ ├── package-info.java │ │ └── recipe │ │ │ ├── CookingBookCategory.java │ │ │ ├── CraftingBookCategory.java │ │ │ └── package-info.java │ ├── loot │ │ ├── LootContext.java │ │ ├── LootTable.java │ │ ├── LootTables.java │ │ ├── Lootable.java │ │ └── package-info.java │ ├── map │ │ ├── MapCanvas.java │ │ ├── MapCursor.java │ │ ├── MapCursorCollection.java │ │ ├── MapFont.java │ │ ├── MapPalette.java │ │ ├── MapRenderer.java │ │ ├── MapView.java │ │ ├── MinecraftFont.java │ │ └── package-info.java │ ├── material │ │ ├── Attachable.java │ │ ├── Banner.java │ │ ├── Bed.java │ │ ├── Button.java │ │ ├── Cake.java │ │ ├── Cauldron.java │ │ ├── Chest.java │ │ ├── Coal.java │ │ ├── CocoaPlant.java │ │ ├── Colorable.java │ │ ├── Command.java │ │ ├── Comparator.java │ │ ├── Crops.java │ │ ├── DetectorRail.java │ │ ├── Diode.java │ │ ├── Directional.java │ │ ├── DirectionalContainer.java │ │ ├── Dispenser.java │ │ ├── Door.java │ │ ├── Dye.java │ │ ├── EnderChest.java │ │ ├── ExtendedRails.java │ │ ├── FlowerPot.java │ │ ├── Furnace.java │ │ ├── FurnaceAndDispenser.java │ │ ├── Gate.java │ │ ├── Hopper.java │ │ ├── Ladder.java │ │ ├── Leaves.java │ │ ├── Lever.java │ │ ├── LongGrass.java │ │ ├── MaterialData.java │ │ ├── MonsterEggs.java │ │ ├── Mushroom.java │ │ ├── NetherWarts.java │ │ ├── Observer.java │ │ ├── Openable.java │ │ ├── PistonBaseMaterial.java │ │ ├── PistonExtensionMaterial.java │ │ ├── PoweredRail.java │ │ ├── PressurePlate.java │ │ ├── PressureSensor.java │ │ ├── Pumpkin.java │ │ ├── Rails.java │ │ ├── Redstone.java │ │ ├── RedstoneTorch.java │ │ ├── RedstoneWire.java │ │ ├── Sandstone.java │ │ ├── Sapling.java │ │ ├── Sign.java │ │ ├── SimpleAttachableMaterialData.java │ │ ├── Skull.java │ │ ├── SmoothBrick.java │ │ ├── SpawnEgg.java │ │ ├── Stairs.java │ │ ├── Step.java │ │ ├── TexturedMaterial.java │ │ ├── Torch.java │ │ ├── TrapDoor.java │ │ ├── Tree.java │ │ ├── Tripwire.java │ │ ├── TripwireHook.java │ │ ├── Vine.java │ │ ├── Wood.java │ │ ├── WoodenStep.java │ │ ├── Wool.java │ │ ├── package-info.java │ │ └── types │ │ │ ├── MushroomBlockTexture.java │ │ │ └── package-info.java │ ├── metadata │ │ ├── FixedMetadataValue.java │ │ ├── LazyMetadataValue.java │ │ ├── MetadataConversionException.java │ │ ├── MetadataEvaluationException.java │ │ ├── MetadataStore.java │ │ ├── MetadataStoreBase.java │ │ ├── MetadataValue.java │ │ ├── MetadataValueAdapter.java │ │ ├── Metadatable.java │ │ └── package-info.java │ ├── package-info.java │ ├── packs │ │ ├── DataPack.java │ │ ├── DataPackManager.java │ │ ├── ResourcePack.java │ │ └── package-info.java │ ├── permissions │ │ ├── Permissible.java │ │ ├── PermissibleBase.java │ │ ├── Permission.java │ │ ├── PermissionAttachment.java │ │ ├── PermissionAttachmentInfo.java │ │ ├── PermissionDefault.java │ │ ├── PermissionRemovedExecutor.java │ │ ├── ServerOperator.java │ │ └── package-info.java │ ├── persistence │ │ ├── ListPersistentDataType.java │ │ ├── ListPersistentDataTypeProvider.java │ │ ├── PersistentDataAdapterContext.java │ │ ├── PersistentDataContainer.java │ │ ├── PersistentDataHolder.java │ │ ├── PersistentDataType.java │ │ └── package-info.java │ ├── plugin │ │ ├── AuthorNagException.java │ │ ├── EventExecutor.java │ │ ├── IllegalPluginAccessException.java │ │ ├── InvalidDescriptionException.java │ │ ├── InvalidPluginException.java │ │ ├── Plugin.java │ │ ├── PluginAwareness.java │ │ ├── PluginBase.java │ │ ├── PluginDescriptionFile.java │ │ ├── PluginDescriptionResolver.java │ │ ├── PluginLoadOrder.java │ │ ├── PluginLoader.java │ │ ├── PluginLogger.java │ │ ├── PluginManager.java │ │ ├── RegisteredListener.java │ │ ├── RegisteredServiceProvider.java │ │ ├── ServicePriority.java │ │ ├── ServicesManager.java │ │ ├── SimplePluginManager.java │ │ ├── SimpleServicesManager.java │ │ ├── TimedRegisteredListener.java │ │ ├── UnknownDependencyException.java │ │ ├── java │ │ │ ├── JavaPlugin.java │ │ │ ├── JavaPluginLoader.java │ │ │ ├── LibraryLoader.java │ │ │ ├── PluginClassLoader.java │ │ │ └── package-info.java │ │ ├── messaging │ │ │ ├── ChannelNameTooLongException.java │ │ │ ├── ChannelNotRegisteredException.java │ │ │ ├── MessageTooLargeException.java │ │ │ ├── Messenger.java │ │ │ ├── PluginChannelDirection.java │ │ │ ├── PluginMessageListener.java │ │ │ ├── PluginMessageListenerRegistration.java │ │ │ ├── PluginMessageRecipient.java │ │ │ ├── ReservedChannelException.java │ │ │ ├── StandardMessenger.java │ │ │ └── package-info.java │ │ └── package-info.java │ ├── potion │ │ ├── PotionBrewer.java │ │ ├── PotionData.java │ │ ├── PotionEffect.java │ │ ├── PotionEffectType.java │ │ ├── PotionEffectTypeCategory.java │ │ ├── PotionEffectTypeWrapper.java │ │ ├── PotionType.java │ │ └── package-info.java │ ├── profile │ │ ├── PlayerProfile.java │ │ ├── PlayerTextures.java │ │ └── package-info.java │ ├── projectiles │ │ ├── BlockProjectileSource.java │ │ ├── ProjectileSource.java │ │ └── package-info.java │ ├── scheduler │ │ ├── BukkitRunnable.java │ │ ├── BukkitScheduler.java │ │ ├── BukkitTask.java │ │ ├── BukkitWorker.java │ │ └── package-info.java │ ├── scoreboard │ │ ├── Criteria.java │ │ ├── Criterias.java │ │ ├── DisplaySlot.java │ │ ├── NameTagVisibility.java │ │ ├── Objective.java │ │ ├── RenderType.java │ │ ├── Score.java │ │ ├── Scoreboard.java │ │ ├── ScoreboardManager.java │ │ ├── Team.java │ │ └── package-info.java │ ├── spawner │ │ ├── BaseSpawner.java │ │ ├── Spawner.java │ │ ├── TrialSpawnerConfiguration.java │ │ └── package-info.java │ ├── structure │ │ ├── Palette.java │ │ ├── Structure.java │ │ ├── StructureManager.java │ │ └── package-info.java │ └── util │ │ ├── BiomeSearchResult.java │ │ ├── BlockIterator.java │ │ ├── BlockTransformer.java │ │ ├── BlockVector.java │ │ ├── BoundingBox.java │ │ ├── CachedServerIcon.java │ │ ├── ChatPaginator.java │ │ ├── Consumer.java │ │ ├── EntityTransformer.java │ │ ├── EulerAngle.java │ │ ├── FileUtil.java │ │ ├── NumberConversions.java │ │ ├── OldEnum.java │ │ ├── RayTraceResult.java │ │ ├── StringUtil.java │ │ ├── StructureSearchResult.java │ │ ├── Transformation.java │ │ ├── Vector.java │ │ ├── VoxelShape.java │ │ ├── io │ │ ├── BukkitObjectInputStream.java │ │ ├── BukkitObjectOutputStream.java │ │ ├── Wrapper.java │ │ └── package-info.java │ │ ├── noise │ │ ├── NoiseGenerator.java │ │ ├── OctaveGenerator.java │ │ ├── PerlinNoiseGenerator.java │ │ ├── PerlinOctaveGenerator.java │ │ ├── SimplexNoiseGenerator.java │ │ ├── SimplexOctaveGenerator.java │ │ └── package-info.java │ │ ├── package-info.java │ │ └── permissions │ │ ├── BroadcastPermissions.java │ │ ├── CommandPermissions.java │ │ ├── DefaultPermissions.java │ │ └── package-info.java │ └── spigotmc │ ├── CustomTimingsHandler.java │ ├── event │ └── player │ │ ├── PlayerSpawnLocationEvent.java │ │ └── package-info.java │ └── package-info.java ├── Chinese_BukkitAPI.png ├── README.md ├── VERSION ├── bungee-chat-api └── net │ └── md_5 │ └── bungee │ ├── api │ ├── ChatColor.java │ ├── ChatMessageType.java │ └── chat │ │ ├── BaseComponent.java │ │ ├── ClickEvent.java │ │ ├── ComponentBuilder.java │ │ ├── HoverEvent.java │ │ ├── ItemTag.java │ │ ├── KeybindComponent.java │ │ ├── Keybinds.java │ │ ├── ScoreComponent.java │ │ ├── SelectorComponent.java │ │ ├── TextComponent.java │ │ ├── TranslatableComponent.java │ │ └── hover │ │ └── content │ │ ├── Content.java │ │ ├── Entity.java │ │ ├── EntitySerializer.java │ │ ├── Item.java │ │ ├── ItemSerializer.java │ │ ├── Text.java │ │ └── TextSerializer.java │ └── chat │ ├── BaseComponentSerializer.java │ ├── ComponentSerializer.java │ ├── KeybindComponentSerializer.java │ ├── ScoreComponentSerializer.java │ ├── SelectorComponentSerializer.java │ ├── TextComponentSerializer.java │ ├── TranslatableComponentSerializer.java │ └── TranslationRegistry.java ├── javadoc ├── annotations │ └── element-list ├── guava │ └── element-list ├── javadoc.js ├── org │ └── bukkit │ │ └── plugin │ │ └── doc-files │ │ └── permissions-example_plugin.yml ├── overview.html ├── script.js ├── snakeyaml │ └── element-list └── stylesheet.css ├── l10n-patch-doclets.properties ├── l10n-patch-standard.properties ├── pom-with-javadoc-agent.xml └── pom.xml /.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | /.idea/ 3 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/Axis.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | /** 4 | * 表示三维笛卡尔坐标系中相互垂直的轴. 在Minecraft中, x、z轴位于水平面上, 而y轴指向上. 5 | *

6 | * 原文: 7 | * Represents a mutually perpendicular axis in 3D Cartesian coordinates. In 8 | * Minecraft the x, z axes lie in the horizontal plane, whilst the y axis points 9 | * upwards. 10 | */ 11 | public enum Axis { 12 | /** 13 | * X轴 14 | */ 15 | X, 16 | /** 17 | * Y轴 18 | */ 19 | Y, 20 | /** 21 | * Z轴 22 | */ 23 | Z; 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/Fluid.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | import java.util.Locale; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * Represents a fluid type. 8 | */ 9 | public enum Fluid implements Keyed { 10 | 11 | /** 12 | * Stationary water. 13 | */ 14 | WATER, 15 | /** 16 | * Flowing water. 17 | */ 18 | FLOWING_WATER, 19 | /** 20 | * Stationary lava. 21 | */ 22 | LAVA, 23 | /** 24 | * Flowing lava. 25 | */ 26 | FLOWING_LAVA; 27 | 28 | private final NamespacedKey key; 29 | 30 | private Fluid() { 31 | this.key = NamespacedKey.minecraft(this.name().toLowerCase(Locale.ROOT)); 32 | } 33 | 34 | @NotNull 35 | @Override 36 | public NamespacedKey getKey() { 37 | return key; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/FluidCollisionMode.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | /** 4 | * 确定在光线跟踪时, 碰撞到流体时的表现. 5 | *

6 | * 原文: 7 | * Determines the collision behavior when fluids get hit during ray tracing. 8 | */ 9 | public enum FluidCollisionMode { 10 | 11 | /** 12 | * 忽略流体. 13 | */ 14 | NEVER, 15 | /** 16 | * 仅与源流体块碰撞. 17 | */ 18 | SOURCE_ONLY, 19 | /** 20 | * 与所有流体碰撞. 21 | */ 22 | ALWAYS; 23 | } 24 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/HeightMap.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | /** 4 | * 与高度图有关的信息. 5 | * 6 | * @see Minecraft Wiki - 区块格式 7 | */ 8 | public enum HeightMap { 9 | 10 | /** 11 | * 最高的阻碍移动/含有流体的方块. 12 | */ 13 | MOTION_BLOCKING, 14 | /** 15 | * 最高的阻碍移动、含有液体或在 {@link Tag#LEAVES} 标签内的方块. 16 | */ 17 | MOTION_BLOCKING_NO_LEAVES, 18 | /** 19 | * 最高的非空气固体方块. 20 | */ 21 | OCEAN_FLOOR, 22 | /** 23 | * 最高的既不是空气也不含流体的方块, 用于世界生成. 24 | */ 25 | OCEAN_FLOOR_WG, 26 | /** 27 | * 最高的非空气方块. 28 | */ 29 | WORLD_SURFACE, 30 | /** 31 | * 最高的非空气方块, 用于世界生成. 32 | */ 33 | WORLD_SURFACE_WG, 34 | } 35 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/Keyed.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * 代表附加了 {@link NamespacedKey} 的对象. 7 | */ 8 | public interface Keyed { 9 | 10 | /** 11 | * 返回用于此对象的命名空间标识符. 12 | *

13 | * 原文:Return the namespaced identifier for this object. 14 | * 15 | * @return 标识此对象的 key 16 | */ 17 | @NotNull 18 | NamespacedKey getKey(); 19 | } 20 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/NetherWartsState.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | public enum NetherWartsState { 4 | 5 | /** 6 | * 播种时的状态. 7 | */ 8 | SEEDED, 9 | /** 10 | * 第一生长阶段. 11 | */ 12 | STAGE_ONE, 13 | /** 14 | * 第二生长阶段. 15 | */ 16 | STAGE_TWO, 17 | /** 18 | * 成熟,准备收获. 19 | */ 20 | RIPE; 21 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/PortalType.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | /** 4 | * 代表世界中的传送门. 5 | */ 6 | public enum PortalType { 7 | 8 | /** 9 | * 下界传送门. 10 | */ 11 | NETHER, 12 | 13 | /** 14 | * 末路之地传送门. 15 | */ 16 | ENDER, 17 | 18 | /** 19 | * 自定义传送门. 20 | */ 21 | CUSTOM; 22 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/SkullType.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | /** 4 | * 代表不同种类的头颅. 5 | * @deprecated 现在(Bukkit 1.13版本及以上)不同种类的头颅都有他们自己的常量了. 6 | */ 7 | @Deprecated 8 | public enum SkullType { 9 | SKELETON, 10 | WITHER, 11 | ZOMBIE, 12 | PLAYER, 13 | CREEPER, 14 | DRAGON, 15 | PIGLIN; 16 | } 17 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/SoundCategory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | /** 4 | * 声音类别枚举. 5 | */ 6 | public enum SoundCategory { 7 | 8 | MASTER, 9 | MUSIC, 10 | RECORDS, 11 | WEATHER, 12 | BLOCKS, 13 | HOSTILE, 14 | NEUTRAL, 15 | PLAYERS, 16 | AMBIENT, 17 | VOICE; 18 | } 19 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/Translatable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * Represents an object with a text representation that can be translated by the 7 | * Minecraft client. 8 | */ 9 | public interface Translatable { 10 | 11 | /** 12 | * Get the translation key, suitable for use in a translation component. 13 | * 14 | * @return the translation key 15 | */ 16 | @NotNull 17 | String getTranslationKey(); 18 | } 19 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/Utility.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | /** 9 | * 这个注释表示一个方法(有时是构造函数)会连接它的内部操作。 10 | *

11 | * 这仅仅用于识别不需要手动重写或处理的方法。 12 | *

13 | * 原文: 14 | * This annotation indicates a method (and sometimes constructor) will chain 15 | * its internal operations. 16 | *

17 | * This is solely meant for identifying methods that don't need to be 18 | * overridden / handled manually. 19 | */ 20 | @Target({ElementType.CONSTRUCTOR, ElementType.METHOD}) 21 | @Retention(RetentionPolicy.SOURCE) 22 | public @interface Utility { 23 | } 24 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/WeatherType.java: -------------------------------------------------------------------------------- 1 | package org.bukkit; 2 | 3 | /** 4 | * 天气的种类 5 | */ 6 | public enum WeatherType { 7 | 8 | /** 9 | * 雪/雨(取决于生物群系). 10 | */ 11 | DOWNFALL, 12 | /** 13 | * 晴(有云无雨) 14 | */ 15 | CLEAR, 16 | ; 17 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/advancement/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与进度有关的接口. 3 | */ 4 | package org.bukkit.advancement; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/attribute/Attributable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.attribute; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | import org.jetbrains.annotations.Nullable; 5 | 6 | /** 7 | * 用于表示一个可以包含属性的对象. 8 | */ 9 | public interface Attributable { 10 | 11 | /** 12 | * 从指定的一个对象内获取对应的属性. 13 | *

14 | * 这个方法将直接返回包含属性的对象, 任何对此对象的变动将立即可见 (生效). 15 | *

16 | * 原文: 17 | * Gets the specified attribute instance from the object. This instance will 18 | * be backed directly to the object and any changes will be visible at once. 19 | * 20 | * @param attribute Attribute 实例 21 | * @return 这个方法会返回一个 AttributeInstance, 如果不适用于此对象, 将返回 null 22 | */ 23 | @Nullable 24 | AttributeInstance getAttribute(@NotNull Attribute attribute); 25 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/attribute/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与属性有关的类 (Minecraft Wiki - 属性). 3 | */ 4 | package org.bukkit.attribute; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/ban/IpBanList.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.ban; 2 | 3 | import java.net.InetAddress; 4 | import org.bukkit.BanList; 5 | 6 | /** 7 | * A {@link BanList} targeting IP bans. 8 | */ 9 | public interface IpBanList extends BanList { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/ban/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Classes relevant to bans. 3 | */ 4 | package org.bukkit.ban; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Barrel.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | import org.bukkit.loot.Lootable; 4 | 5 | /** 6 | * 代表木桶. 7 | */ 8 | public interface Barrel extends Container, Lootable, Lidded { } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Bed.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | import org.bukkit.material.Colorable; 4 | 5 | /** 6 | * 代表床. 7 | * @deprecated 除材质本身之外, 本状态未提供有用的信息 8 | */ 9 | @Deprecated 10 | public interface Bed extends TileState, Colorable { } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Beehive.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.entity.Bee; 5 | import org.jetbrains.annotations.Nullable; 6 | 7 | /** 8 | * 代表蜂巢. 9 | */ 10 | public interface Beehive extends EntityBlockStorage { 11 | 12 | /** 13 | * 获取花的位置. 14 | *

15 | * 原文:Get the hive's flower location. 16 | * 17 | * @return 花的位置或null 18 | */ 19 | @Nullable 20 | Location getFlower(); 21 | 22 | /** 23 | * 设置花的位置. 24 | *

25 | * 原文:Set the hive's flower location. 26 | * 27 | * @param location 花的位置或null 28 | */ 29 | void setFlower(@Nullable Location location); 30 | 31 | /** 32 | * 检测蜂巢底下是否有点燃的营火, 使得玩家采蜜时蜜蜂不会攻击玩家. 33 | *

34 | * 原文:Check if the hive is sedated due to smoke from a nearby campfire. 35 | * 36 | * @return 蜂巢是否安然待之 37 | */ 38 | boolean isSedated(); 39 | } 40 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/BlastFurnace.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * 代表高炉. 5 | */ 6 | public interface BlastFurnace extends Furnace { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/BrushableBlock.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | import org.bukkit.inventory.ItemStack; 4 | import org.bukkit.loot.Lootable; 5 | import org.jetbrains.annotations.Nullable; 6 | 7 | /** 8 | * Represents a captured state of suspicious sand or gravel. 9 | */ 10 | public interface BrushableBlock extends Lootable, TileState { 11 | 12 | /** 13 | * Get the item which will be revealed when the sand is fully brushed away 14 | * and uncovered. 15 | * 16 | * @return the item 17 | */ 18 | @Nullable 19 | public ItemStack getItem(); 20 | 21 | /** 22 | * Sets the item which will be revealed when the sand is fully brushed away 23 | * and uncovered. 24 | * 25 | * @param item the item 26 | */ 27 | public void setItem(@Nullable ItemStack item); 28 | } 29 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/CalibratedSculkSensor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * Represents a captured state of a calibrated sculk sensor 5 | */ 6 | public interface CalibratedSculkSensor extends SculkSensor { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Comparator.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * 代表关闭或打开状态的红石比较器. 5 | */ 6 | public interface Comparator extends TileState { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/DaylightDetector.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * 代表(反向)阳光探测器. 5 | */ 6 | public interface DaylightDetector extends TileState { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/EnchantingTable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | import org.bukkit.Nameable; 4 | 5 | /** 6 | * 代表附魔台. 7 | */ 8 | public interface EnchantingTable extends TileState, Nameable { } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/EnderChest.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * 代表末影箱. 5 | */ 6 | public interface EnderChest extends Lidded, TileState { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/HangingSign.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * Represents a captured state of a hanging sign. 5 | */ 6 | public interface HangingSign extends Sign { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Hopper.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | import org.bukkit.loot.Lootable; 4 | 5 | /** 6 | * 代表漏斗. 7 | */ 8 | public interface Hopper extends Container, Lootable { } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Jigsaw.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * 代表拼图方块. 5 | */ 6 | public interface Jigsaw extends TileState { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Lidded.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * 代表有盖容器. 5 | */ 6 | public interface Lidded { 7 | 8 | /** 9 | * 设置方块的动作状态为打开并阻止其关闭, 直到调用{@link #close()}. 10 | *

11 | * 原文:Sets the block's animated state to open and prevents it from being closed 12 | * until {@link #close()} is called. 13 | */ 14 | void open(); 15 | 16 | /** 17 | * 设置方块的动作状态为关闭, 即使玩家正在查看此方块. 18 | *

19 | * 原文:Sets the block's animated state to closed even if a player is currently 20 | * viewing this block. 21 | */ 22 | void close(); 23 | } 24 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/SculkSensor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * Represents a captured state of a sculk sensor 5 | */ 6 | public interface SculkSensor extends TileState { 7 | 8 | /** 9 | * Gets the last vibration frequency of this sensor. 10 | * 11 | * Different activities detected by the sensor will produce different 12 | * frequencies and dictate the output of connected comparators. 13 | * 14 | * @return frequency between 0-15. 15 | */ 16 | int getLastVibrationFrequency(); 17 | 18 | /** 19 | * Sets the last vibration frequency of this sensor. 20 | * 21 | * Different activities detected by the sensor will produce different 22 | * frequencies and dictate the output of connected comparators. 23 | * 24 | * @param lastVibrationFrequency frequency between 0-15. 25 | */ 26 | void setLastVibrationFrequency(int lastVibrationFrequency); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/ShulkerBox.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | import org.bukkit.DyeColor; 4 | import org.bukkit.loot.Lootable; 5 | import org.jetbrains.annotations.Nullable; 6 | 7 | /** 8 | * 代表潜影盒方块状态. 9 | */ 10 | public interface ShulkerBox extends Container, Lootable, Lidded { 11 | 12 | /** 13 | * 获取该潜影盒对应的{@link DyeColor 颜色}. 14 | *

15 | * 原文:Get the {@link DyeColor} corresponding to this ShulkerBox 16 | * 17 | * @return 潜影盒的{@link DyeColor 颜色}, 如为默认则返回 null 18 | */ 19 | @Nullable 20 | public DyeColor getColor(); 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Smoker.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * 代表烟熏炉. 5 | */ 6 | public interface Smoker extends Furnace { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/SuspiciousSand.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | /** 4 | * Represents a captured state of suspicious sand. 5 | * 6 | * @see BrushableBlock 7 | */ 8 | @Deprecated 9 | public interface SuspiciousSand extends BrushableBlock { 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/Vault.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | 5 | /** 6 | * Represents a captured state of a trial spawner. 7 | */ 8 | @ApiStatus.Experimental 9 | public interface Vault extends TileState { 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/banner/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与旗帜方块有关的类. 3 | */ 4 | package org.bukkit.block.banner; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/AnaloguePowerable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'power' 值代表当前通过此方块发出/传输红石信号的强度. 5 | *
6 | * 不可超过 9000 或 {@link #getMaximumPower()} (通常为 15). 7 | */ 8 | public interface AnaloguePowerable extends BlockData { 9 | 10 | /** 11 | * 获取 'power' 属性的值. 12 | *

13 | * 原文: 14 | * Gets the value of the 'power' property. 15 | * 16 | * @return 属性 'power' 的值 17 | */ 18 | int getPower(); 19 | 20 | /** 21 | * 设置 'power' 属性的值. 22 | *

23 | * 原文: 24 | * Sets the value of the 'power' property. 25 | * 26 | * @param power 新的 'power' 属性值 27 | */ 28 | void setPower(int power); 29 | 30 | /** 31 | * 获取 'power' 属性所允许的最大值. 32 | *

33 | * 原文: 34 | * Gets the maximum allowed value of the 'power' property. 35 | * 36 | * @return 最大 'power' 属性值 37 | */ 38 | int getMaximumPower(); 39 | } 40 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Attachable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'attached' 值表示绊线钩或绊线是否构成了一个完整的绊线回路并准备好触发. 5 | *
6 | * 对一个绊线钩更新此属性将会改变其材质, 7 | * 但是对绊线本身更新没有任何效果. 8 | * 然而它还是可以拿来检查该绊线是否构成了一个完整的绊线回路. 9 | */ 10 | public interface Attachable extends BlockData { 11 | 12 | /** 13 | * 获取 'attached' 属性的值. 14 | *

15 | * 原文: 16 | * Gets the value of the 'attached' property. 17 | * 18 | * @return 属性 'attached' 的值 19 | */ 20 | boolean isAttached(); 21 | 22 | /** 23 | * 设置 'attached' 属性的值. 24 | *

25 | * 原文: 26 | * Sets the value of the 'attached' property. 27 | * 28 | * @param attached 新的 'attached' 属性值 29 | */ 30 | void setAttached(boolean attached); 31 | } 32 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Brushable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'dusted' 表示方块被刷子清除的程度,即露出的程度。 5 | */ 6 | public interface Brushable extends BlockData { 7 | 8 | /** 9 | * 获取 'dusted' 属性的值。 10 | *

11 | * 原文: 12 | * Gets the value of the 'dusted' property. 13 | * 14 | * @return 'dusted' 属性的值 15 | */ 16 | int getDusted(); 17 | 18 | /** 19 | * 设置 'dusted' 属性的值。 20 | *

21 | * 原文: 22 | * Sets the value of the 'dusted' property. 23 | * 24 | * @param dusted 'dusted' 属性的新值 25 | */ 26 | void setDusted(int dusted); 27 | 28 | /** 29 | * 获取 'dusted' 属性允许的最大值。 30 | *

31 | * 原文: 32 | * Gets the maximum allowed value of the 'dusted' property. 33 | * 34 | * @return 'dusted' 属性允许的最大值 35 | */ 36 | int getMaximumDusted(); 37 | } 38 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Hangable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'hanging' denotes whether the lantern is hanging from a block. 5 | */ 6 | public interface Hangable extends BlockData { 7 | 8 | /** 9 | * Gets the value of the 'hanging' property. 10 | * 11 | * @return the 'hanging' value 12 | */ 13 | boolean isHanging(); 14 | 15 | /** 16 | * Sets the value of the 'hanging' property. 17 | * 18 | * @param hanging the new 'hanging' value 19 | */ 20 | void setHanging(boolean hanging); 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Hatchable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'hatch' 值为这些蛋中孵化出实体的数量. 5 | */ 6 | public interface Hatchable extends BlockData { 7 | 8 | /** 9 | * 获取 'hatch' 属性的值. 10 | *

11 | * 原文: 12 | * Gets the value of the 'hatch' property. 13 | * 14 | * @return 属性 'hatch' 的值 15 | */ 16 | int getHatch(); 17 | 18 | /** 19 | * 设置 'hatch' 属性的值. 20 | *

21 | * 原文: 22 | * Sets the value of the 'hatch' property. 23 | * 24 | * @param hatch 新的 'hatch' 属性值 25 | */ 26 | void setHatch(int hatch); 27 | 28 | /** 29 | * 获取 'hatch' 属性所能允许的最大值. 30 | *

31 | * 原文: 32 | * Gets the maximum allowed value of the 'hatch' property. 33 | * 34 | * @return 最大 'hatch' 属性值. 35 | */ 36 | int getMaximumHatch(); 37 | } 38 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Lightable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'lit' 表示此方块 (红石或熔炉) 是否在发光 ———— 不是烧毁他们的意思. 5 | */ 6 | public interface Lightable extends BlockData { 7 | 8 | /** 9 | * 获取 'lit' 数据值. 10 | *

11 | * 原文: 12 | * Gets the value of the 'lit' property. 13 | * 14 | * @return 方块是否在发光 15 | */ 16 | boolean isLit(); 17 | 18 | /** 19 | * 设置 'lit' 数据值. 20 | *

21 | * 原文: 22 | * Sets the value of the 'lit' property. 23 | * 24 | * @param lit 方块是否在发光 25 | */ 26 | void setLit(boolean lit); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Openable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'open' 表示此方块是否开着. 5 | */ 6 | public interface Openable extends BlockData { 7 | 8 | /** 9 | * 获取 'open' 属性值. 10 | *

11 | * 原文: 12 | * Gets the value of the 'open' property. 13 | * 14 | * @return 门是否开着 15 | */ 16 | boolean isOpen(); 17 | 18 | /** 19 | * 设置 'open' 属性值. 20 | *

21 | * 原文: 22 | * Sets the value of the 'open' property. 23 | * 24 | * @param open 门是否开着 25 | */ 26 | void setOpen(boolean open); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Powerable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'powered' 数据值表示该方块是否被充能. 5 | * 也就是说, 方块正接受大于 0 的红石信号. 6 | */ 7 | public interface Powerable extends BlockData { 8 | 9 | /** 10 | * 获取 'powered' 数据值. 11 | *

12 | * 原文: 13 | * Gets the value of the 'powered' property. 14 | * 15 | * @return 方块是否被充能 16 | */ 17 | boolean isPowered(); 18 | 19 | /** 20 | * 设置 'powered' 数据值. 21 | *

22 | * 原文: 23 | * Sets the value of the 'powered' property. 24 | * 25 | * @param powered 方块是否被充能 26 | */ 27 | void setPowered(boolean powered); 28 | } 29 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Rotatable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | import org.bukkit.block.BlockFace; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 'rotation' 表示方块的旋转方向. 8 | */ 9 | public interface Rotatable extends BlockData { 10 | 11 | /** 12 | * 获取 'rotation' 属性值. 13 | *

14 | * 原文: 15 | * Gets the value of the 'rotation' property. 16 | * 17 | * @return 方块的旋转方向 18 | */ 19 | @NotNull 20 | BlockFace getRotation(); 21 | 22 | /** 23 | * 设置 'rotation' 属性值. 24 | *

25 | * 原文: 26 | * Sets the value of the 'rotation' property. 27 | * 28 | * @param rotation 方块的旋转方向 29 | */ 30 | void setRotation(@NotNull BlockFace rotation); 31 | } 32 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Snowable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'snowy' 属性表示此方块是否被雪覆盖 (通常情况下时因为 "它" 的头顶下着雪). 5 | */ 6 | public interface Snowable extends BlockData { 7 | 8 | /** 9 | * 获取 'snowy' 属性值. 10 | *

11 | * 原文: 12 | * Gets the value of the 'snowy' property. 13 | * 14 | * @return 方块是否被雪覆盖 15 | */ 16 | boolean isSnowy(); 17 | 18 | /** 19 | * 设置 'snowy' 属性值. 20 | *

21 | * 原文: 22 | * Sets the value of the 'snowy' property. 23 | * 24 | * @param snowy 方块是否被雪覆盖 25 | */ 26 | void setSnowy(boolean snowy); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/Waterlogged.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data; 2 | 3 | /** 4 | * 'waterlogged' 表示方块是否处于流体之中. 5 | *

6 | * 译注: 值得注意的是, 如果方块只是被水流穿过, 则该值为 false 而非 true. 7 | * 在该方块上放水或者在充满水的地方 (比如小池, 河流, 海洋) 放置方块, 则该值为 true. 8 | */ 9 | public interface Waterlogged extends BlockData { 10 | 11 | /** 12 | * 获取 'waterlogged' 属性值. 13 | *

14 | * 原文: 15 | * Gets the value of the 'waterlogged' property. 16 | * 17 | * @return 方块是否处于流体之中 18 | */ 19 | boolean isWaterlogged(); 20 | 21 | /** 22 | * 设置 'waterlogged' 属性值. 23 | *

24 | * 原文: 25 | * Sets the value of the 'waterlogged' property. 26 | * 27 | * @param waterlogged 方块是否处于流体之中 28 | */ 29 | void setWaterlogged(boolean waterlogged); 30 | } 31 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 各种方块的 BlockData 类. 3 | */ 4 | package org.bukkit.block.data; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/AmethystCluster.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface AmethystCluster extends Directional, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Barrel.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Openable; 5 | 6 | public interface Barrel extends Directional, Openable { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/BubbleColumn.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.BlockData; 4 | 5 | /** 6 | * 'drag' 值表示是否存在应用到实体上的力将其移向该方块. 7 | */ 8 | public interface BubbleColumn extends BlockData { 9 | 10 | /** 11 | * 获取 'drag' 属性的值. 12 | *

13 | * 原文: 14 | * Gets the value of the 'drag' property. 15 | * 16 | * @return 属性 'drag' 的值 17 | */ 18 | boolean isDrag(); 19 | 20 | /** 21 | * 设置 'drag' 属性的值. 22 | *

23 | * 原文: 24 | * Sets the value of the 'drag' property. 25 | * 26 | * @param drag 新的 'drag' 属性值 27 | */ 28 | void setDrag(boolean drag); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/CalibratedSculkSensor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | 5 | public interface CalibratedSculkSensor extends Directional, SculkSensor { } 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Campfire.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Lightable; 5 | import org.bukkit.block.data.Waterlogged; 6 | 7 | /** 8 | * 'signal_fire' 值表示该营火是否因为底部放了干草块而冒出更多的烟 (信号营火). 9 | */ 10 | public interface Campfire extends Directional, Lightable, Waterlogged { 11 | 12 | /** 13 | * 获取 'signal_fire' 属性的值. 14 | *

15 | * 原文: 16 | * Gets the value of the 'signal_fire' property. 17 | * 18 | * @return 属性 'signal_fire' 的值 19 | */ 20 | boolean isSignalFire(); 21 | 22 | /** 23 | * 设置 'signal_fire' 属性的值. 24 | *

25 | * 原文: 26 | * Sets the value of the 'signal_fire' property. 27 | * 28 | * @param signalFire 新的 'signal_fire' 属性值 29 | */ 30 | void setSignalFire(boolean signalFire); 31 | } 32 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Candle.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Lightable; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | /** 7 | * 'candles' represents the number of candles which are present. 8 | */ 9 | public interface Candle extends Lightable, Waterlogged { 10 | 11 | /** 12 | * Gets the value of the 'candles' property. 13 | * 14 | * @return the 'candles' value 15 | */ 16 | int getCandles(); 17 | 18 | /** 19 | * Sets the value of the 'candles' property. 20 | * 21 | * @param candles the new 'candles' value 22 | */ 23 | void setCandles(int candles); 24 | 25 | /** 26 | * Gets the maximum allowed value of the 'candles' property. 27 | * 28 | * @return the maximum 'candles' value 29 | */ 30 | int getMaximumCandles(); 31 | } 32 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/CaveVines.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Ageable; 4 | 5 | public interface CaveVines extends Ageable, CaveVinesPlant { 6 | } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/CaveVinesPlant.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.BlockData; 4 | 5 | /** 6 | * 'berries' indicates whether the block has berries. 7 | */ 8 | public interface CaveVinesPlant extends BlockData { 9 | 10 | /** 11 | * Gets the value of the 'berries' property. 12 | * 13 | * @return the 'berries' value 14 | */ 15 | boolean isBerries(); 16 | 17 | /** 18 | * Sets the value of the 'berries' property. 19 | * 20 | * @param berries the new 'berries' value 21 | */ 22 | void setBerries(boolean berries); 23 | } 24 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Chain.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Orientable; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface Chain extends Orientable, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Cocoa.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Ageable; 4 | import org.bukkit.block.data.Directional; 5 | 6 | public interface Cocoa extends Ageable, Directional { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/CommandBlock.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | 5 | /** 6 | * 'conditional' 数据值表示触发此命令方块是否需要条件, 7 | * 换句话说只有在此命令方块前的命令方块执行成功时才会触发本命令方块. 8 | */ 9 | public interface CommandBlock extends Directional { 10 | 11 | /** 12 | * 获取 'conditional' 数据值. 13 | *

14 | * 原文: 15 | * Gets the value of the 'conditional' property. 16 | * 17 | * @return 'conditional' 数据值 18 | */ 19 | boolean isConditional(); 20 | 21 | /** 22 | * 设置 'conditional' 数据值. 23 | *

24 | * 原文: 25 | * Sets the value of the 'conditional' property. 26 | * 27 | * @param conditional 'conditional' 数据值 28 | */ 29 | void setConditional(boolean conditional); 30 | } 31 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/CopperBulb.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Lightable; 4 | import org.bukkit.block.data.Powerable; 5 | 6 | public interface CopperBulb extends Lightable, Powerable { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/CoralWallFan.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface CoralWallFan extends Directional, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/DaylightDetector.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.AnaloguePowerable; 4 | 5 | /** 6 | * 'inverted' 值表示阳光探测器是否被调整了反转模式, 7 | * 即在光照不足时再激活. 8 | */ 9 | public interface DaylightDetector extends AnaloguePowerable { 10 | 11 | /** 12 | * 获取 'inverted' 属性的值. 13 | *

14 | * 原文: 15 | * Gets the value of the 'inverted' property. 16 | * 17 | * @return 属性 'inverted' 的值 18 | */ 19 | boolean isInverted(); 20 | 21 | /** 22 | * 设置 'inverted' 属性的值. 23 | *

24 | * 原文: 25 | * Sets the value of the 'inverted' property. 26 | * 27 | * @param inverted 新的 'inverted' 属性值 28 | */ 29 | void setInverted(boolean inverted); 30 | } 31 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/DecoratedPot.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface DecoratedPot extends Directional, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Dispenser.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Powerable; 5 | 6 | /** 7 | * 与 {@link Powerable} 相似, 'triggered' 数据值表示此发射器是否被激活. 8 | */ 9 | public interface Dispenser extends Directional { 10 | 11 | /** 12 | * 获取 'triggered' 数据值. 13 | *

14 | * 原文: 15 | * Gets the value of the 'triggered' property. 16 | * 17 | * @return 此发射器是否被激活 18 | */ 19 | boolean isTriggered(); 20 | 21 | /** 22 | * 设置 'triggered' 数据值. 23 | *

24 | * 原文: 25 | * Sets the value of the 'triggered' property. 26 | * 27 | * @param triggered 此发射器是否被激活 28 | */ 29 | void setTriggered(boolean triggered); 30 | } 31 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Dripleaf.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface Dripleaf extends Directional, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/EndPortalFrame.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | 5 | /** 6 | * 'eye' 值表示该末地传送门上是否放置了一个末影之眼 (被激活). 7 | */ 8 | public interface EndPortalFrame extends Directional { 9 | 10 | /** 11 | * 获取 'eye' 属性的值. 12 | *

13 | * 原文: 14 | * Gets the value of the 'eye' property. 15 | * 16 | * @return 属性 'eye' 的值 17 | */ 18 | boolean hasEye(); 19 | 20 | /** 21 | * 设置 'eye' 属性的值. 22 | *

23 | * 原文: 24 | * Sets the value of the 'eye' property. 25 | * 26 | * @param eye 新的 'eye' 属性值 27 | */ 28 | void setEye(boolean eye); 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/EnderChest.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface EnderChest extends Directional, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Fence.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.MultipleFacing; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface Fence extends MultipleFacing, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Fire.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Ageable; 4 | import org.bukkit.block.data.MultipleFacing; 5 | 6 | /** 7 | * md_5's mixtape. 8 | */ 9 | public interface Fire extends Ageable, MultipleFacing { 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Furnace.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Lightable; 5 | 6 | public interface Furnace extends Directional, Lightable { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Gate.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Openable; 5 | import org.bukkit.block.data.Powerable; 6 | 7 | /** 8 | * 'in_wall" 值表示栅栏门是否固定在墙上, 9 | * 若为 true, 栅栏门的材质会被稍微降低一点以更好的融入周围 (墙, 比如圆石墙). 10 | */ 11 | public interface Gate extends Directional, Openable, Powerable { 12 | 13 | /** 14 | * 获取 'in_wall' 属性的值. 15 | *

16 | * 原文: 17 | * Gets the value of the 'in_wall' property. 18 | * 19 | * @return 属性 'in_wall' 的值 20 | */ 21 | boolean isInWall(); 22 | 23 | /** 24 | * 设置 'in_wall' 属性的值. 25 | *

26 | * 原文: 27 | * Sets the value of the 'in_wall' property. 28 | * 29 | * @param inWall 新的 'in_wall' 属性值 30 | */ 31 | void setInWall(boolean inWall); 32 | } 33 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/GlassPane.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.MultipleFacing; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface GlassPane extends MultipleFacing, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/GlowLichen.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.MultipleFacing; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface GlowLichen extends MultipleFacing, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Grindstone.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.FaceAttachable; 5 | 6 | public interface Grindstone extends Directional, FaceAttachable { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/HangingSign.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Attachable; 4 | import org.bukkit.block.data.Rotatable; 5 | import org.bukkit.block.data.Waterlogged; 6 | 7 | public interface HangingSign extends Attachable, Rotatable, Waterlogged { 8 | } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Hopper.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Powerable; 5 | 6 | /** 7 | * 与 {@link Powerable} 相似, 'enabled' 数据值表示此漏斗是否被激活. 8 | *
9 | * 不像其它大多数方块, 漏斗不接受任何红石信号时为激活态. 10 | * (当它被激活时, 漏斗停止工作, 可以玩玩红石试试) 11 | */ 12 | public interface Hopper extends Directional { 13 | 14 | /** 15 | * 获取 'enabled' 属性数据值. 16 | *

17 | * 原文: 18 | * Gets the value of the 'enabled' property. 19 | * 20 | * @return 'enabled' 数据值 21 | */ 22 | boolean isEnabled(); 23 | 24 | /** 25 | * 设置 'enabled' 属性数据值. 26 | *

27 | * 原文: 28 | * Sets the value of the 'enabled' property. 29 | * 30 | * @param enabled 'enabled' 数据值 31 | */ 32 | void setEnabled(boolean enabled); 33 | } 34 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Jukebox.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.BlockData; 4 | 5 | /** 6 | * 'has_record' 数据值可用来快速检查此唱片机是否装入了唱片. 7 | */ 8 | public interface Jukebox extends BlockData { 9 | 10 | /** 11 | * 获取 'has_record' 数据值. 12 | *

13 | * 原文: 14 | * Gets the value of the 'has_record' property. 15 | * 16 | * @return 此唱片机是否装入了唱片 17 | */ 18 | boolean hasRecord(); 19 | } 20 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Ladder.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface Ladder extends Directional, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Lantern.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Hangable; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface Lantern extends Hangable, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Lectern.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Powerable; 5 | 6 | /** 7 | * 'has_book' 可用于快速检测讲台内是否有书. 8 | */ 9 | public interface Lectern extends Directional, Powerable { 10 | 11 | /** 12 | * 获取 'has_book' 属性的值. 13 | *

14 | * 原文:Gets the value of the 'has_book' property. 15 | * 16 | * @return 属性 'has_book' 的值 17 | */ 18 | boolean hasBook(); 19 | } 20 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Light.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Levelled; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface Light extends Levelled, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/LightningRod.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Powerable; 5 | import org.bukkit.block.data.Waterlogged; 6 | 7 | public interface LightningRod extends Directional, Powerable, Waterlogged { 8 | } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/MangrovePropagule.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Ageable; 4 | import org.bukkit.block.data.Hangable; 5 | import org.bukkit.block.data.Waterlogged; 6 | 7 | public interface MangrovePropagule extends Ageable, Hangable, Sapling, Waterlogged { 8 | } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Observer.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Powerable; 5 | 6 | public interface Observer extends Directional, Powerable { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Piston.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | 5 | /** 6 | * 'extended' 值表示当前活塞臂是否伸出. 7 | */ 8 | public interface Piston extends Directional { 9 | 10 | /** 11 | * 获取 'extended' 属性的值. 12 | *

13 | * 原文: 14 | * Gets the value of the 'extended' property. 15 | * 16 | * @return 属性 'extended' 的值 17 | */ 18 | boolean isExtended(); 19 | 20 | /** 21 | * 设置 'extended' 属性的值. 22 | *

23 | * 原文: 24 | * Sets the value of the 'extended' property. 25 | * 26 | * @param extended 新的 'extended' 属性值 27 | */ 28 | void setExtended(boolean extended); 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/PistonHead.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | /** 4 | * 'short' 值表示该活塞臂是否由于正在回缩的原因比平时短. 5 | */ 6 | public interface PistonHead extends TechnicalPiston { 7 | 8 | /** 9 | * 获取 'short' 属性的值. 10 | *

11 | * 原文: 12 | * Gets the value of the 'short' property. 13 | * 14 | * @return 属性 'short' 的值 15 | */ 16 | boolean isShort(); 17 | 18 | /** 19 | * 设置 'short' 属性的值. 20 | *

21 | * 原文: 22 | * Sets the value of the 'short' property. 23 | * 24 | * @param _short 新的 'short' 属性值 25 | */ 26 | void setShort(boolean _short); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/PitcherCrop.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Ageable; 4 | import org.bukkit.block.data.Bisected; 5 | 6 | public interface PitcherCrop extends Ageable, Bisected { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/RedstoneRail.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Powerable; 4 | import org.bukkit.block.data.Rail; 5 | 6 | /** 7 | * 铁轨的一种, 以一种或多种方式与红石交互. 8 | */ 9 | public interface RedstoneRail extends Powerable, Rail { 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/RedstoneWallTorch.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Lightable; 5 | 6 | public interface RedstoneWallTorch extends Directional, Lightable { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/RespawnAnchor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.BlockData; 4 | 5 | /** 6 | * 'charges' 值代表重生锚还能使用几次. 7 | */ 8 | public interface RespawnAnchor extends BlockData { 9 | 10 | /** 11 | * 获取 'charges' 属性的值. 12 | *

13 | * 原文: 14 | * Gets the value of the 'charges' property. 15 | * 16 | * @return 属性 'charges' 的值 17 | */ 18 | int getCharges(); 19 | 20 | /** 21 | * 设置 'charges' 属性的值. 22 | *

23 | * 原文: 24 | * Sets the value of the 'charges' property. 25 | * 26 | * @param charges 新的 'charges' 属性值 27 | */ 28 | void setCharges(int charges); 29 | 30 | /** 31 | * 获取 'charges' 属性所能允许的最大值. 32 | *

33 | * 原文: 34 | * Gets the maximum allowed value of the 'charges' property. 35 | * 36 | * @return 最大 'charges' 属性值 37 | */ 38 | int getMaximumCharges(); 39 | } 40 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/SculkCatalyst.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.BlockData; 4 | 5 | /** 6 | * 'bloom' indicates whether the sculk catalyst is actively spreading the sculk 7 | * or not. 8 | */ 9 | public interface SculkCatalyst extends BlockData { 10 | 11 | /** 12 | * Gets the value of the 'bloom' property. 13 | * 14 | * @return the 'bloom' value 15 | */ 16 | boolean isBloom(); 17 | 18 | /** 19 | * Sets the value of the 'bloom' property. 20 | * 21 | * @param bloom the new 'bloom' value 22 | */ 23 | void setBloom(boolean bloom); 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/SculkVein.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.MultipleFacing; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface SculkVein extends MultipleFacing, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Sign.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Rotatable; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface Sign extends Rotatable, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/SmallDripleaf.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Bisected; 4 | 5 | public interface SmallDripleaf extends Dripleaf, Bisected { 6 | } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/TNT.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.BlockData; 4 | 5 | /** 6 | * 'unstable' 值表示该 TNT 是否会在破坏后引爆. 7 | */ 8 | public interface TNT extends BlockData { 9 | 10 | /** 11 | * 获取 'unstable' 属性的值. 12 | *

13 | * 原文: 14 | * Gets the value of the 'unstable' property. 15 | * 16 | * @return 属性 'unstable' 的值 17 | */ 18 | boolean isUnstable(); 19 | 20 | /** 21 | * 设置 'unstable' 属性的值. 22 | *

23 | * 原文: 24 | * Sets the value of the 'unstable' property. 25 | * 26 | * @param unstable 新的 'unstable' 属性值 27 | */ 28 | void setUnstable(boolean unstable); 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/TrapDoor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Bisected; 4 | import org.bukkit.block.data.Directional; 5 | import org.bukkit.block.data.Openable; 6 | import org.bukkit.block.data.Powerable; 7 | import org.bukkit.block.data.Waterlogged; 8 | 9 | public interface TrapDoor extends Bisected, Directional, Openable, Powerable, Waterlogged { 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/Tripwire.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Attachable; 4 | import org.bukkit.block.data.MultipleFacing; 5 | import org.bukkit.block.data.Powerable; 6 | 7 | /** 8 | * 'disarmed' 值表示该绊线被剪刀破坏, 所以不会在破坏时触发绊线钩. 9 | */ 10 | public interface Tripwire extends Attachable, MultipleFacing, Powerable { 11 | 12 | /** 13 | * 获取 'disarmed' 属性的值. 14 | *

15 | * 原文: 16 | * Gets the value of the 'disarmed' property. 17 | * 18 | * @return 属性 'disarmed' 的值 19 | */ 20 | boolean isDisarmed(); 21 | 22 | /** 23 | * 设置 'disarmed' 属性的值. 24 | *

25 | * 原文: 26 | * Sets the value of the 'disarmed' property. 27 | * 28 | * @param disarmed 新的 'disarmed' 属性值 29 | */ 30 | void setDisarmed(boolean disarmed); 31 | } 32 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/TripwireHook.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Attachable; 4 | import org.bukkit.block.data.Directional; 5 | import org.bukkit.block.data.Powerable; 6 | 7 | public interface TripwireHook extends Attachable, Directional, Powerable { 8 | } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/WallHangingSign.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface WallHangingSign extends Directional, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/WallSign.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.data.type; 2 | 3 | import org.bukkit.block.data.Directional; 4 | import org.bukkit.block.data.Waterlogged; 5 | 6 | public interface WallSign extends Directional, Waterlogged { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/data/type/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与部分方块或方块集有关的特定的 BlockData 类. 3 | */ 4 | package org.bukkit.block.data.type; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于操作在{@link org.bukkit.World 世界}内的三位像素(方块),包括一些特定的状态. 3 | */ 4 | package org.bukkit.block; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/sign/Side.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.sign; 2 | 3 | /** 4 | * 表示告示牌的面。 5 | */ 6 | public enum Side { 7 | 8 | /** 9 | * 表示告示牌的前面 10 | */ 11 | FRONT, 12 | /** 13 | * 表示告示牌的背面 14 | */ 15 | BACK; 16 | } 17 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/sign/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Classes relevant to signs. 3 | */ 4 | package org.bukkit.block.sign; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/spawner/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Classes relevant to mob spawners. 3 | */ 4 | package org.bukkit.block.spawner; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/structure/Mirror.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.structure; 2 | 3 | /** 4 | * 代表{@link org.bukkit.block.Structure 结构方块}加载时如何产生镜像. 5 | */ 6 | public enum Mirror { 7 | 8 | /** 9 | * 无镜像. 10 | *
11 | * X轴正半轴到Z轴正半轴. 12 | */ 13 | NONE, 14 | /** 15 | * 结构左右镜像翻转. 16 | *
17 | * 与在镜子中看东西类似. X轴正半轴到Z轴负半轴. 18 | */ 19 | LEFT_RIGHT, 20 | /** 21 | * 结构前后镜像翻转. 22 | *
23 | * Z轴正半轴到X轴负半轴. 24 | */ 25 | FRONT_BACK; 26 | } 27 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/structure/StructureRotation.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.structure; 2 | 3 | /** 4 | * 代表{@link org.bukkit.block.Structure 结构方块}如何旋转. 5 | */ 6 | public enum StructureRotation { 7 | 8 | /** 9 | * 无旋转. 10 | */ 11 | NONE, 12 | /** 13 | * 顺时针旋转90度. 14 | */ 15 | CLOCKWISE_90, 16 | /** 17 | * 顺时针旋转180度. 18 | */ 19 | CLOCKWISE_180, 20 | /** 21 | * 逆时针旋转90度. 22 | *
23 | * 相当于顺时针旋转270度. 24 | */ 25 | COUNTERCLOCKWISE_90; 26 | } 27 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/structure/UsageMode.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.block.structure; 2 | 3 | /** 4 | * 代表{@link org.bukkit.block.Structure 结构方块}的使用模式. 5 | */ 6 | public enum UsageMode { 7 | 8 | /** 9 | * 储存模式. 10 | */ 11 | SAVE, 12 | /** 13 | * 加载模式. 14 | */ 15 | LOAD, 16 | /** 17 | * 角落模式, 用于保存结构时简单计算结构尺寸. 当使用此模式时, 18 | * 此结构名必须与处于{@link UsageMode#SAVE 储存模式}下的第二个结构方块的结构名相匹配. 19 | */ 20 | CORNER, 21 | /** 22 | * 数据模式, 用于运行特定的自定义的函数, 这些函数仅可用于某些结构. 23 | * 当这个函数执行完毕后, 此结构方块将被删除. 24 | * 所有的数据标签(函数)可在 25 | * wiki 26 | * 中找到. 27 | */ 28 | DATA; 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/block/structure/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与结构方块有关的类 (Minecraft Wiki - 结构方块). 3 | */ 4 | package org.bukkit.block.structure; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/boss/BarColor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.boss; 2 | 3 | public enum BarColor { 4 | PINK, 5 | BLUE, 6 | RED, 7 | GREEN, 8 | YELLOW, 9 | PURPLE, 10 | WHITE 11 | } 12 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/boss/BarFlag.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.boss; 2 | 3 | public enum BarFlag { 4 | 5 | /** 6 | * 凋零血条的属性(战斗时天空会变暗) 7 | */ 8 | DARKEN_SKY, 9 | /** 10 | * 末影龙的血条属性,告诉客户端该播放打末影龙时候的BGM 11 | */ 12 | PLAY_BOSS_MUSIC, 13 | /** 14 | * 在血条所在的世界产生迷雾 15 | */ 16 | CREATE_FOG, 17 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/boss/BarStyle.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.boss; 2 | 3 | public enum BarStyle { 4 | /** 5 | * 将血条设置为一个部分 6 | */ 7 | SOLID, 8 | /** 9 | * 将血条分为6个部分 10 | */ 11 | SEGMENTED_6, 12 | /** 13 | * 将血条分为10个部分 14 | */ 15 | SEGMENTED_10, 16 | /** 17 | * 将血条分为12个部分 18 | */ 19 | SEGMENTED_12, 20 | /** 21 | * 将血条分为20个部分 22 | */ 23 | SEGMENTED_20, 24 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/boss/KeyedBossBar.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.boss; 2 | 3 | import org.bukkit.Keyed; 4 | 5 | /** 6 | * Represents a custom {@link BossBar} that has a 7 | * {@link org.bukkit.NamespacedKey} 8 | */ 9 | public interface KeyedBossBar extends BossBar, Keyed { } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/boss/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与创建Boss血量条(出现在玩家客户端屏幕顶部)有关的类. 3 | */ 4 | package org.bukkit.boss; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/BlockCommandSender.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command; 2 | 3 | import org.bukkit.block.Block; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | public interface BlockCommandSender extends CommandSender { 7 | 8 | /** 9 | * 返回命令发送者的方块. 10 | *

11 | * 原文: 12 | * Returns the block this command sender belongs to 13 | * 14 | * @return 命令发送者的方块 15 | */ 16 | @NotNull 17 | public Block getBlock(); 18 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/CommandException.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command; 2 | 3 | /** 4 | * 当执行命令过程中出现未处理的异常时抛出. 5 | */ 6 | @SuppressWarnings("serial") 7 | public class CommandException extends RuntimeException { 8 | 9 | /** 10 | * 创建一个没有详细信息的新的CommandException实例. 11 | *

12 | * 原文:Creates a new instance of CommandException without detail 13 | * message. 14 | */ 15 | public CommandException() {} 16 | 17 | /** 18 | * 用指定的详细信息构造一个新的CommandException实例. 19 | *

20 | * 原文:Constructs an instance of CommandException with the 21 | * specified detail message. 22 | * 23 | * @param msg 报错详细信息 24 | */ 25 | public CommandException(String msg) { 26 | super(msg); 27 | } 28 | 29 | public CommandException(String msg, Throwable cause) { 30 | super(msg, cause); 31 | } 32 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/ConsoleCommandSender.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command; 2 | 3 | import org.bukkit.conversations.Conversable; 4 | 5 | public interface ConsoleCommandSender extends CommandSender, Conversable { 6 | } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/PluginIdentifiableCommand.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command; 2 | 3 | import org.bukkit.plugin.Plugin; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 这个接口可以用于帮助系统分类命令至基于{@link Plugin}的子索引的一部分.自定义的命令实现这个接口来拥有由插件自动生成的子索引. 8 | *

9 | * 原文:This interface is used by the help system to group commands into 10 | * sub-indexes based on the {@link Plugin} they are a part of. Custom command 11 | * implementations will need to implement this interface to have a sub-index 12 | * automatically generated on the plugin's behalf. 13 | */ 14 | public interface PluginIdentifiableCommand { 15 | 16 | /** 17 | * 获取拥有这个PluginIdentifiableCommand的插件. 18 | *

19 | * 原文:Gets the owner of this PluginIdentifiableCommand. 20 | * 21 | * @return 拥有这个PluginIdentifiableCommand的插件 22 | */ 23 | @NotNull 24 | public Plugin getPlugin(); 25 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/ProxiedCommandSender.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | public interface ProxiedCommandSender extends CommandSender { 6 | 7 | /** 8 | * 返回触发这个代理命令的CommandSender. 9 | *

10 | * 原文:Returns the CommandSender which triggered this proxied command 11 | * 12 | * @return 命令调用者 13 | */ 14 | @NotNull 15 | CommandSender getCaller(); 16 | 17 | /** 18 | * 返回CommandSender正在运行的命令. 19 | *

20 | * 原文:Returns the CommandSender which is being used to call the command 21 | * 22 | * @return 调用者正在运行的命令 23 | */ 24 | @NotNull 25 | CommandSender getCallee(); 26 | 27 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/RemoteConsoleCommandSender.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command; 2 | 3 | import java.net.SocketAddress; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | public interface RemoteConsoleCommandSender extends CommandSender { 7 | 8 | /** 9 | * Gets the socket address of this remote sender. 10 | * 11 | * @return the remote sender's address 12 | */ 13 | @NotNull 14 | public SocketAddress getAddress(); 15 | } 16 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/TabCompleter.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command; 2 | 3 | import java.util.List; 4 | import org.jetbrains.annotations.NotNull; 5 | import org.jetbrains.annotations.Nullable; 6 | 7 | /** 8 | * 代表可以为命令提供补全建议的类. 9 | */ 10 | public interface TabCompleter { 11 | 12 | /** 13 | * 用命令传递的参数请求可能的补全项的list. 14 | *

15 | * 原文:Requests a list of possible completions for a command argument. 16 | * 17 | * @param sender 发起命令的来源. 至于玩家在命令方块内补全命令,这个来源就是玩家,而不是命令方块. 18 | * @param command 执行的Command 19 | * @param label 使用的别名 20 | * @param args 传递给这个命令的参数,包括用来补全的部分最终参数 21 | * @return 可能的最终补全参数列表(就是list里都是已经补全了的),或为null则传递给命令执行器 22 | */ 23 | @Nullable 24 | public List onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args); 25 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/TabExecutor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command; 2 | 3 | /** 4 | * 这个类提供了TabCompleter和CommandExecutor两者的实现. 5 | */ 6 | public interface TabExecutor extends TabCompleter, CommandExecutor { 7 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/defaults/BukkitCommand.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.command.defaults; 2 | 3 | import java.util.List; 4 | import org.bukkit.command.Command; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | public abstract class BukkitCommand extends Command { 8 | protected BukkitCommand(@NotNull String name) { 9 | super(name); 10 | } 11 | 12 | protected BukkitCommand(@NotNull String name, @NotNull String description, @NotNull String usageMessage, @NotNull List aliases) { 13 | super(name, description, usageMessage, aliases); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/defaults/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 通过Bukkit实现来模拟Minecraft原生命令(1.12后所有模拟命令被删除)并提供一些其他必要的命令. 3 | */ 4 | package org.bukkit.command.defaults; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/command/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与处理玩家输入的非聊天消息(即命令)相关的类. 3 | */ 4 | package org.bukkit.command; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/configuration/file/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 致力于简化{@link 3 | * org.bukkit.configuration.Configuration 配置}的读取和保存操作的类. 4 | */ 5 | package org.bukkit.configuration.file; 6 | 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/configuration/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 专门用于处理插件运行时配置的类. 3 | */ 4 | package org.bukkit.configuration; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/configuration/serialization/DelegateDeserialization.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.configuration.serialization; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | import org.jetbrains.annotations.NotNull; 8 | 9 | /** 10 | * Applies to a {@link ConfigurationSerializable} that will delegate all 11 | * deserialization to another {@link ConfigurationSerializable}. 12 | */ 13 | @Retention(RetentionPolicy.RUNTIME) 14 | @Target(ElementType.TYPE) 15 | public @interface DelegateDeserialization { 16 | /** 17 | * Which class should be used as a delegate for this classes 18 | * deserialization 19 | * 20 | * @return Delegate class 21 | */ 22 | @NotNull 23 | public Class value(); 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/configuration/serialization/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 面向Bukkit{@link org.bukkit.configuration.Configuration 配置}实现使配置可以被执行序列化的类 3 | */ 4 | package org.bukkit.configuration.serialization; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/conversations/ConversationAbandonedListener.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.conversations; 2 | 3 | import java.util.EventListener; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | */ 8 | public interface ConversationAbandonedListener extends EventListener { 9 | /** 10 | * 当一个{@link Conversation}被终止时调用此方法. 11 | *

12 | * 原文:Called whenever a {@link Conversation} is abandoned. 13 | * 14 | * @param abandonedEvent 包含关于会话被终止的细节的事件对象 15 | */ 16 | public void conversationAbandoned(@NotNull ConversationAbandonedEvent abandonedEvent); 17 | } 18 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/conversations/ConversationPrefix.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.conversations; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * A ConversationPrefix implementation prepends all output from the 7 | * conversation to the player. The ConversationPrefix can be used to display 8 | * the plugin name or conversation status as the conversation evolves. 9 | */ 10 | public interface ConversationPrefix { 11 | 12 | /** 13 | * Gets the prefix to use before each message to the player. 14 | * 15 | * @param context Context information about the conversation. 16 | * @return The prefix text. 17 | */ 18 | @NotNull 19 | String getPrefix(@NotNull ConversationContext context); 20 | } 21 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/conversations/NullConversationPrefix.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.conversations; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * NullConversationPrefix is a {@link ConversationPrefix} implementation that 7 | * displays nothing in front of conversation output. 8 | */ 9 | public class NullConversationPrefix implements ConversationPrefix { 10 | 11 | /** 12 | * Prepends each conversation message with an empty string. 13 | * 14 | * @param context Context information about the conversation. 15 | * @return An empty string. 16 | */ 17 | @Override 18 | @NotNull 19 | public String getPrefix(@NotNull ConversationContext context) { 20 | return ""; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/conversations/RegexPrompt.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.conversations; 2 | 3 | import java.util.regex.Pattern; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * RegexPrompt is the base class for any prompt that requires an input 8 | * validated by a regular expression. 9 | */ 10 | public abstract class RegexPrompt extends ValidatingPrompt { 11 | 12 | private Pattern pattern; 13 | 14 | public RegexPrompt(@NotNull String regex) { 15 | this(Pattern.compile(regex)); 16 | } 17 | 18 | public RegexPrompt(@NotNull Pattern pattern) { 19 | super(); 20 | this.pattern = pattern; 21 | } 22 | 23 | private RegexPrompt() {} 24 | 25 | @Override 26 | protected boolean isInputValid(@NotNull ConversationContext context, @NotNull String input) { 27 | return pattern.matcher(input).matches(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/conversations/StringPrompt.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.conversations; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * StringPrompt is the base class for any prompt that accepts an arbitrary 7 | * string from the user. 8 | */ 9 | public abstract class StringPrompt implements Prompt { 10 | 11 | /** 12 | * Ensures that the prompt waits for the user to provide input. 13 | * 14 | * @param context Context information about the conversation. 15 | * @return True. 16 | */ 17 | @Override 18 | public boolean blocksForInput(@NotNull ConversationContext context) { 19 | return true; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/conversations/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 致力于简化玩家与插件的直接通信的类(玩家与插件的对话,典型的场景比如操作的确认、提供插件所需数据). 3 | */ 4 | package org.bukkit.conversations; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/damage/DamageScaling.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.damage; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.jetbrains.annotations.ApiStatus; 5 | 6 | /** 7 | * A means of damage scaling with respect to the server's difficulty. 8 | */ 9 | @ApiStatus.Experimental 10 | public enum DamageScaling { 11 | 12 | /** 13 | * Damage is not scaled. 14 | */ 15 | NEVER, 16 | /** 17 | * Damage is scaled only when the 18 | * {@link DamageSource#getCausingEntity() causing entity} is not a 19 | * {@link Player}. 20 | */ 21 | WHEN_CAUSED_BY_LIVING_NON_PLAYER, 22 | /** 23 | * Damage is always scaled. 24 | */ 25 | ALWAYS; 26 | } 27 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/damage/DeathMessageType.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.damage; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | 5 | /** 6 | * Represents a type of death message used by a {@link DamageSource}. 7 | */ 8 | @ApiStatus.Experimental 9 | public enum DeathMessageType { 10 | 11 | /** 12 | * No special death message logic is applied. 13 | */ 14 | DEFAULT, 15 | /** 16 | * Shows a variant of fall damage death instead of a regular death message. 17 | *
18 | * Example: death.fell.assist.item 19 | */ 20 | FALL_VARIANTS, 21 | /** 22 | * Shows the intentional game design death message instead of a regular 23 | * death message. 24 | */ 25 | INTENTIONAL_GAME_DESIGN; 26 | } 27 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/damage/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Classes concerning damage types and sources applicable to living entities. 3 | */ 4 | @org.jetbrains.annotations.ApiStatus.Experimental 5 | package org.bukkit.damage; 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/enchantments/EnchantmentWrapper.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.enchantments; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * 方便选择{@link Enchantment}的一个简单的封装类. 7 | * @deprecated 仅为保障向后兼容性, EnchantmentWrapper 已不再使用 8 | */ 9 | @Deprecated 10 | public abstract class EnchantmentWrapper extends Enchantment { 11 | protected EnchantmentWrapper() { 12 | } 13 | 14 | /** 15 | * 获取这个包装类所对应的的附魔. 16 | *

17 | * 原文:Gets the enchantment bound to this wrapper 18 | * 19 | * @return 附魔 20 | */ 21 | @NotNull 22 | public Enchantment getEnchantment() { 23 | return this; 24 | } 25 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/enchantments/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.inventory.ItemStack 物品堆}对应的附魔相关的类,作为{@link 3 | * org.bukkit.inventory.meta.ItemMeta 物品元数据}的一部分.(可以查询附魔信息、检查某一附魔对于某一物品是否适用等). 4 | */ 5 | package org.bukkit.enchantments; 6 | 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/AbstractVillager.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.inventory.Inventory; 4 | import org.bukkit.inventory.InventoryHolder; 5 | import org.bukkit.inventory.Merchant; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * 代表一个抽象村民NPC. 10 | *

11 | * 原文: 12 | * Represents a villager NPC 13 | */ 14 | public interface AbstractVillager extends Breedable, NPC, InventoryHolder, Merchant { 15 | 16 | /** 17 | * 获得这个村民的物品栏. 18 | *
19 | * 注意这个物品栏不是商人村民交易的物品, 而是村民收集的物品(收割庄稼). 20 | *

21 | * 原文: 22 | * Gets this villager's inventory. 23 | *
24 | * Note that this inventory is not the Merchant inventory, rather, it is the 25 | * items that a villager might have collected (from harvesting crops, etc.) 26 | * 27 | * {@inheritDoc} 28 | */ 29 | @NotNull 30 | @Override 31 | Inventory getInventory(); 32 | } 33 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/AbstractWindCharge.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | 5 | /** 6 | * Represents a Wind Charge. 7 | */ 8 | @ApiStatus.Experimental 9 | public interface AbstractWindCharge extends Fireball { 10 | 11 | /** 12 | * Immediately explode this WindCharge. 13 | */ 14 | public void explode(); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Ambient.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表环境生物(目前只有蝙蝠属于这一行列). 5 | */ 6 | public interface Ambient extends Mob {} 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/AnimalTamer.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import java.util.UUID; 4 | import org.jetbrains.annotations.NotNull; 5 | import org.jetbrains.annotations.Nullable; 6 | 7 | public interface AnimalTamer { 8 | 9 | /** 10 | * 这是指定的AnimalTamer的名称. 11 | *

12 | * 原文: 13 | * This is the name of the specified AnimalTamer. 14 | * 15 | * @return 如果名称不能被引用,改名称可以引用被驯养的动物或为 16 | */ 17 | @Nullable 18 | public String getName(); 19 | 20 | /** 21 | * 这是指定的AnimalTamer的UUID. 22 | *

23 | * 原文: 24 | * This is the UUID of the specified AnimalTamer. 25 | * 26 | * @return AnimalTamer引用的UUID 27 | */ 28 | @NotNull 29 | public UUID getUniqueId(); 30 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Armadillo.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents an Armadillo. 5 | */ 6 | public interface Armadillo extends Animals { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Bat.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 表示一只蝙蝠. 5 | */ 6 | public interface Bat extends Ambient { 7 | 8 | /** 9 | * 检查这个蝙蝠的当前清醒状态. 10 | *

11 | * 这并不意味着通过调用方法可以保持某状态. 12 | *

13 | * 原文:Checks the current waking state of this bat. 14 | *

15 | * This does not imply any persistence of state past the method call. 16 | * 17 | * @return 如果蝙蝠当前是悬挂在方块上的,则返回true 18 | */ 19 | boolean isAwake(); 20 | 21 | /** 22 | * 通过此方法修改蝙蝠的清醒状态. 23 | *

24 | * 这不意味着蝙蝠不会自发的清醒或重新悬挂在方块上. 25 | *

26 | * 原文:This method modifies the current waking state of this bat. 27 | *

28 | * This does not prevent a bat from spontaneously awaking itself, or from 29 | * reattaching itself to a block. 30 | * 31 | * @param state 新状态 32 | */ 33 | void setAwake(boolean state); 34 | } 35 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Blaze.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表烈焰人怪物. 5 | */ 6 | public interface Blaze extends Monster { 7 | 8 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/BlockDisplay.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.block.data.BlockData; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * Represents a block display entity. 8 | */ 9 | public interface BlockDisplay extends Display { 10 | 11 | /** 12 | * Gets the displayed block. 13 | * 14 | * @return the displayed block 15 | */ 16 | @NotNull 17 | public BlockData getBlock(); 18 | 19 | /** 20 | * Sets the displayed block. 21 | * 22 | * @param block the new block 23 | */ 24 | public void setBlock(@NotNull BlockData block); 25 | } 26 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Bogged.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | 5 | /** 6 | * Represents a Bogged Skeleton. 7 | */ 8 | @ApiStatus.Experimental 9 | public interface Bogged extends AbstractSkeleton { 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Boss.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.boss.BossBar; 4 | import org.jetbrains.annotations.Nullable; 5 | 6 | /** 7 | * 代表一个Boss实体. 8 | *

9 | * 原文: 10 | * Represents the Boss Entity. 11 | */ 12 | public interface Boss extends Entity { 13 | 14 | /** 15 | * 返回这个 {@link Boss} 的 {@link BossBar}. 16 | *

17 | * 原文: 18 | * Returns the {@link BossBar} of the {@link Boss} 19 | * 20 | * @return 此实体的 {@link BossBar}. 21 | */ 22 | @Nullable 23 | BossBar getBossBar(); 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Breeze.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | 5 | /** 6 | * Represents a Breeze. Whoosh! 7 | */ 8 | @ApiStatus.Experimental 9 | public interface Breeze extends Monster { 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/BreezeWindCharge.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | 5 | /** 6 | * Represents a Wind Charge. 7 | */ 8 | @ApiStatus.Experimental 9 | public interface BreezeWindCharge extends AbstractWindCharge { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Camel.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表一只骆驼 5 | */ 6 | public interface Camel extends AbstractHorse, Sittable { 7 | 8 | /** 9 | * 获取这只骆驼是否处于奔跑状态(冲刺) 10 | *

11 | * 原文: 12 | * Gets whether this camel is dashing (sprinting) 13 | * 14 | * @return 奔跑状态 15 | */ 16 | boolean isDashing(); 17 | 18 | /** 19 | * 设置这只骆驼是否处于奔跑状态(冲刺) 20 | *

21 | * 原文: 22 | * Sets whether this camel is dashing (sprinting). 23 | * 24 | * @param dashing 新的奔跑状态 25 | */ 26 | void setDashing(boolean dashing); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/CaveSpider.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表蜘蛛(洞穴蜘蛛). 5 | */ 6 | public interface CaveSpider extends Spider {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ChestBoat.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.inventory.InventoryHolder; 4 | import org.bukkit.loot.Lootable; 5 | 6 | /** 7 | * A {@link Boat} with a chest. 8 | */ 9 | public interface ChestBoat extends Boat, InventoryHolder, Lootable { 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ChestedHorse.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表一个可以携带物品的类马生物. 5 | * 译注: 就是有物品栏的由马衍生的生物, 例如驴、羊驼等. 6 | *

7 | * 原文: 8 | * Represents Horse-like creatures which can carry an inventory. 9 | */ 10 | public interface ChestedHorse extends AbstractHorse { 11 | 12 | /** 13 | * 获得此马是否有装备箱子. 14 | *

15 | * 原文: 16 | * Gets whether the horse has a chest equipped. 17 | * 18 | * @return 如果此马有存储空间返回true 19 | */ 20 | public boolean isCarryingChest(); 21 | 22 | /** 23 | * 设置此马是否装备箱子. 移除箱子将会清空箱子内所有物品. 24 | *

25 | * 原文: 26 | * Sets whether the horse has a chest equipped. Removing a chest will also 27 | * clear the chest's inventory. 28 | * 29 | * @param chest 设置为true则此马将拥有箱子 30 | */ 31 | public void setCarryingChest(boolean chest); 32 | } 33 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Chicken.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表鸡. 5 | */ 6 | public interface Chicken extends Animals {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Cod.java: -------------------------------------------------------------------------------- 1 | 2 | package org.bukkit.entity; 3 | 4 | /** 5 | * 代表鳕鱼. 6 | */ 7 | public interface Cod extends Fish { } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ComplexEntityPart.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * 代表 {@link ComplexLivingEntity} 的一部分. 7 | *

8 | * 原文: 9 | * Represents a single part of a {@link ComplexLivingEntity} 10 | */ 11 | public interface ComplexEntityPart extends Entity { 12 | 13 | /** 14 | * 获得此组件的父对象 {@link ComplexLivingEntity} 15 | *

16 | * 原文: 17 | * Gets the parent {@link ComplexLivingEntity} of this part. 18 | * 19 | * @return Parent 复杂实体 20 | */ 21 | @NotNull 22 | public ComplexLivingEntity getParent(); 23 | } 24 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ComplexLivingEntity.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import java.util.Set; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 代表复杂生物 --- 由多种较小实体部分组成 (目前只有末影龙属于此行列). 8 | */ 9 | public interface ComplexLivingEntity extends LivingEntity { 10 | /** 11 | * 获取组成此复杂生物的实体部件. 12 | *

13 | * 原文:Gets a list of parts that belong to this complex entity 14 | * 15 | * @return 组成此复杂生物的实体部件 16 | */ 17 | @NotNull 18 | public Set getParts(); 19 | } 20 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Cow.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表牛. 5 | */ 6 | public interface Cow extends Animals {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Creature.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表一类生物. 这类生物是非智慧的怪物或动物, 具有一些非常简单的行为. 5 | */ 6 | public interface Creature extends Mob {} 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Dolphin.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 这是海豚~ 5 | */ 6 | public interface Dolphin extends WaterMob { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Donkey.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表驴 - {@link ChestedHorse}的变种. 5 | *

6 | * 原文: 7 | * Represents a Donkey - variant of {@link ChestedHorse}. 8 | */ 9 | public interface Donkey extends ChestedHorse { } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/DragonFireball.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 恶龙咆哮, 哇呜~(指末影龙火球) 5 | */ 6 | public interface DragonFireball extends Fireball {} 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Drowned.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 溺尸. 5 | *

6 | * 原文: 7 | * Drowned zombie. 8 | */ 9 | public interface Drowned extends Zombie { } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Egg.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 我创造了生命? 不,那是上帝, 上帝才是掷骰子的 (代表抛出的鸡蛋). 5 | */ 6 | public interface Egg extends ThrowableProjectile {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ElderGuardian.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表远古守卫者 - 一种{@link Guardian 守卫者}. 5 | */ 6 | public interface ElderGuardian extends Guardian { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/EnderDragonPart.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * 代表末影龙的组成部分 7 | */ 8 | public interface EnderDragonPart extends ComplexEntityPart, Damageable { 9 | @Override 10 | @NotNull 11 | public EnderDragon getParent(); 12 | } 13 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/EnderPearl.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表抛出的末影珍珠实体. 5 | */ 6 | public interface EnderPearl extends ThrowableProjectile { 7 | 8 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Enemy.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents an Enemy 5 | */ 6 | public interface Enemy extends LivingEntity {} 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/EntityFactory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | @ApiStatus.Experimental 7 | public interface EntityFactory { 8 | 9 | /** 10 | * Create a new EntitySnapshot with the supplied input.
11 | * Accepts strings in the format output by {@link EntitySnapshot#getAsString()}. 12 | * 13 | * @param input the input string 14 | * @return the created EntitySnapshot 15 | * @throws IllegalArgumentException if the input string was provided in an invalid or unsupported format 16 | */ 17 | @NotNull 18 | EntitySnapshot createEntitySnapshot(@NotNull String input) throws IllegalArgumentException; 19 | } 20 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ExperienceOrb.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表一个经验球. 5 | *

6 | * 原文: 7 | * Represents an Experience Orb. 8 | */ 9 | public interface ExperienceOrb extends Entity { 10 | 11 | /** 12 | * 获取此经验球中所包含的经验 13 | *

14 | * 原文: 15 | * Gets how much experience is contained within this orb 16 | * 17 | * @return 经验的数量 18 | */ 19 | public int getExperience(); 20 | 21 | /** 22 | * 设置此经验球中所包含的经验 23 | *

24 | * 原文: 25 | * Sets how much experience is contained within this orb 26 | * 27 | * @param value 经验的数量 28 | */ 29 | public void setExperience(int value); 30 | } 31 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Fish.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表一个鱼钩 5 | *

6 | * 原文:Represents a fishing hook. 7 | * @deprecated 赞成使用 {@link FishHook} 8 | */ 9 | public interface Fish extends WaterMob { } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Flying.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表能飞行的实体. 5 | */ 6 | public interface Flying extends Mob {} 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Ghast.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表恶魂. 5 | */ 6 | public interface Ghast extends Flying, Enemy { 7 | 8 | /** 9 | * Gets whether the Ghast is charging 10 | * 11 | * @return Whether the Ghast is charging 12 | */ 13 | boolean isCharging(); 14 | 15 | /** 16 | * Sets whether the Ghast is charging 17 | * 18 | * @param flag Whether the Ghast is charging 19 | */ 20 | void setCharging(boolean flag); 21 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Giant.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表巨人. 5 | */ 6 | public interface Giant extends Monster {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/GlowItemFrame.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * A Glow Item Frame. 5 | */ 6 | public interface GlowItemFrame extends ItemFrame { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/GlowSquid.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * A Glow Squid. 5 | */ 6 | public interface GlowSquid extends Squid { 7 | 8 | /** 9 | * Get the number of dark ticks remaining for this squid. 10 | * 11 | * Bravo Six will go dark for 100 ticks (5 seconds) if damaged. 12 | * 13 | * @return dark ticks remaining 14 | */ 15 | int getDarkTicksRemaining(); 16 | 17 | /** 18 | * Sets the number of dark ticks remaining for this squid. 19 | * 20 | * Bravo Six will go dark for 100 ticks (5 seconds) if damaged. 21 | * 22 | * @param darkTicksRemaining dark ticks remaining 23 | */ 24 | void setDarkTicksRemaining(int darkTicksRemaining); 25 | } 26 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Golem.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 一个可以伤害敌人的傀儡. 5 | *

6 | * 原文:A mechanical creature that may harm enemies. 7 | */ 8 | public interface Golem extends Creature { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Hanging.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.block.BlockFace; 4 | import org.bukkit.material.Attachable; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 代表悬挂实体. 9 | */ 10 | public interface Hanging extends Entity, Attachable { 11 | 12 | /** 13 | * 设置悬挂实体的方向,这可能会重写所有规则. 注意:如果结果无效,实体可能会掉落为物品. 14 | *

15 | * 原文:Sets the direction of the hanging entity, potentially overriding rules 16 | * of placement. Note that if the result is not valid the object would 17 | * normally drop as an item. 18 | * 19 | * @param face 新的方向 20 | * @param force 是否强制 21 | * @return 如果强制执行失败或者那里没有方块附着给定的方向则为false 22 | */ 23 | public boolean setFacingDirection(@NotNull BlockFace face, boolean force); 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Illager.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表一种"灾厄村民" (亦称刌民), 包含卫道士、女巫等. 详见Minecraft Wiki - 灾厄村民的介绍. 5 | */ 6 | public interface Illager extends Raider { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Illusioner.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表幻术师实体. 5 | */ 6 | public interface Illusioner extends Spellcaster { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/IronGolem.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 村民守卫者——铁傀儡. 5 | */ 6 | public interface IronGolem extends Golem { 7 | 8 | /** 9 | * 获取这个铁傀儡是否由玩家建造. 10 | *

11 | * 原文:Gets whether this iron golem was built by a player. 12 | * 13 | * @return 这个铁傀儡是否由玩家建造 14 | */ 15 | public boolean isPlayerCreated(); 16 | 17 | /** 18 | * 设置这个铁傀儡是否由玩家建造. 19 | *

20 | * 原文:Sets whether this iron golem was built by a player or not. 21 | * 22 | * @param playerCreated 这个铁傀儡是否由玩家建造,如果想让这个铁傀儡是自然的那就false 23 | */ 24 | public void setPlayerCreated(boolean playerCreated); 25 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/LargeFireball.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表大的火球( {@link Fireball} ). 5 | */ 6 | public interface LargeFireball extends SizedFireball { 7 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/LeashHitch.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 跟随主人, 那是因为我被设定成这样啊~ (代表系在栅栏上的拴绳). 5 | */ 6 | public interface LeashHitch extends Hanging { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/LingeringPotion.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表抛出的滞留药水. 5 | * 6 | * @deprecated 滞留状态仅取决于药水物品/lingering status depends on only on the potion item. 7 | */ 8 | @Deprecated 9 | public interface LingeringPotion extends ThrownPotion { } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/LlamaSpit.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表羊驼唾沫. 5 | */ 6 | public interface LlamaSpit extends Projectile { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/MagmaCube.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表岩浆怪. 5 | */ 6 | public interface MagmaCube extends Slime { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Marker.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * A Marker entity, exists only on the server. 5 | */ 6 | public interface Marker extends Entity { 7 | } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Monster.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表怪物. 5 | */ 6 | public interface Monster extends Creature, Enemy {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Mule.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表骡子 - {@link ChestedHorse} 的变种. 5 | *

6 | * 原文: 7 | * Represents a Mule - variant of {@link ChestedHorse}. 8 | */ 9 | public interface Mule extends ChestedHorse { } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/NPC.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表非玩家角色. 5 | */ 6 | public interface NPC extends Creature { 7 | 8 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Phantom.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表幻翼. 5 | *

6 | * 原文: 7 | * Represents a phantom. 8 | */ 9 | public interface Phantom extends Flying, Enemy { 10 | 11 | /** 12 | * @return 幻翼大小. 13 | */ 14 | public int getSize(); 15 | 16 | /** 17 | * @param sz 幻翼新大小. 18 | */ 19 | public void setSize(int sz); 20 | } 21 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Pig.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表猪. 5 | */ 6 | public interface Pig extends Steerable, Vehicle { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/PiglinBrute.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a Piglin Brute. 5 | */ 6 | public interface PiglinBrute extends PiglinAbstract { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Pillager.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.inventory.InventoryHolder; 4 | 5 | /** 6 | * 掠夺者实体. 7 | */ 8 | public interface Pillager extends Illager, InventoryHolder { } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/PolarBear.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表北极熊. 5 | */ 6 | public interface PolarBear extends Animals {} 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/PufferFish.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a puffer fish. 5 | */ 6 | public interface PufferFish extends Fish { 7 | 8 | /** 9 | * Returns the current puff state of this fish (i.e. how inflated it is). 10 | * 11 | * @return current puff state 12 | */ 13 | int getPuffState(); 14 | 15 | /** 16 | * Sets the current puff state of this fish (i.e. how inflated it is). 17 | * 18 | * @param state new puff state 19 | */ 20 | void setPuffState(int state); 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Ravager.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 劫掠兽实体. 5 | */ 6 | public interface Ravager extends Raider { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Salmon.java: -------------------------------------------------------------------------------- 1 | 2 | package org.bukkit.entity; 3 | 4 | /** 5 | * Represents a salmon fish. 6 | */ 7 | public interface Salmon extends Fish { } 8 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Sheep.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.material.Colorable; 4 | 5 | /** 6 | * 代表羊. 7 | */ 8 | public interface Sheep extends Animals, Colorable { 9 | 10 | /** 11 | * @return 羊是否被剪过毛. 12 | */ 13 | public boolean isSheared(); 14 | 15 | /** 16 | * @param flag 羊是否被剪过毛. 17 | */ 18 | public void setSheared(boolean flag); 19 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ShulkerBullet.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.Nullable; 4 | 5 | public interface ShulkerBullet extends Projectile { 6 | 7 | /** 8 | * Retrieve the target of this bullet. 9 | * 10 | * @return the targeted entity 11 | */ 12 | @Nullable 13 | Entity getTarget(); 14 | 15 | /** 16 | * Sets the target of this bullet 17 | * 18 | * @param target the entity to target 19 | */ 20 | void setTarget(@Nullable Entity target); 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Silverfish.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表蠹虫. 5 | */ 6 | public interface Silverfish extends Monster {} 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Sittable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * An animal that can sit still. 5 | */ 6 | public interface Sittable { 7 | 8 | /** 9 | * Checks if this animal is sitting 10 | * 11 | * @return true if sitting 12 | */ 13 | boolean isSitting(); 14 | 15 | /** 16 | * Sets if this animal is sitting. Will remove any path that the animal 17 | * was following beforehand. 18 | * 19 | * @param sitting true if sitting 20 | */ 21 | void setSitting(boolean sitting); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/SizedFireball.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.inventory.ItemStack; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * Represents a sized fireball. 8 | */ 9 | public interface SizedFireball extends Fireball { 10 | 11 | /** 12 | * Gets the display {@link ItemStack}. 13 | * 14 | * @return display ItemStack 15 | */ 16 | @NotNull 17 | ItemStack getDisplayItem(); 18 | 19 | /** 20 | * Sets the display {@link ItemStack} for the fireball. 21 | * 22 | * @param item the ItemStack to display 23 | */ 24 | void setDisplayItem(@NotNull ItemStack item); 25 | } 26 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Slime.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表史莱姆. 5 | */ 6 | public interface Slime extends Mob, Enemy { 7 | 8 | /** 9 | * @return 史莱姆的大小 10 | */ 11 | public int getSize(); 12 | 13 | /** 14 | * @param sz 史莱姆新的大小. 15 | */ 16 | public void setSize(int sz); 17 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/SmallFireball.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表小的火球( {@link Fireball} ). 5 | */ 6 | public interface SmallFireball extends SizedFireball { 7 | 8 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Snowball.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表雪球. 5 | */ 6 | public interface Snowball extends ThrowableProjectile {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Snowman.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表雪人实体. 5 | */ 6 | public interface Snowman extends Golem { 7 | 8 | /** 9 | * Gets whether this snowman is in "derp mode", meaning it is not wearing a 10 | * pumpkin. 11 | * 12 | * @return True if the snowman is bald, false if it is wearing a pumpkin 13 | */ 14 | boolean isDerp(); 15 | 16 | /** 17 | * Sets whether this snowman is in "derp mode", meaning it is not wearing a 18 | * pumpkin. NOTE: This value is not persisted to disk and will therefore 19 | * reset when the chunk is reloaded. 20 | * 21 | * @param derpMode True to remove the pumpkin, false to add a pumpkin 22 | */ 23 | void setDerp(boolean derpMode); 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/SpectralArrow.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a spectral arrow. 5 | */ 6 | public interface SpectralArrow extends AbstractArrow { 7 | 8 | /** 9 | * Returns the amount of time that this arrow will apply 10 | * the glowing effect for. 11 | * 12 | * @return the glowing effect ticks 13 | */ 14 | int getGlowingTicks(); 15 | 16 | /** 17 | * Sets the amount of time to apply the glowing effect for. 18 | * 19 | * @param duration the glowing effect ticks 20 | */ 21 | void setGlowingTicks(int duration); 22 | } 23 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Spider.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表蜘蛛. 5 | */ 6 | public interface Spider extends Monster {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/SplashPotion.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a thrown splash potion bottle 5 | * 6 | * @deprecated splash status depends on only on the potion item. 7 | */ 8 | @Deprecated 9 | public interface SplashPotion extends ThrownPotion { } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Squid.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表鱿鱼. 5 | */ 6 | public interface Squid extends WaterMob {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Stray.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a Stray - variant of {@link AbstractSkeleton}. 5 | */ 6 | public interface Stray extends AbstractSkeleton { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Strider.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a Strider. 5 | */ 6 | public interface Strider extends Steerable, Vehicle { 7 | 8 | /** 9 | * Check whether or not this strider is out of warm blocks and shivering. 10 | * 11 | * @return true if shivering, false otherwise 12 | */ 13 | public boolean isShivering(); 14 | 15 | /** 16 | * Set whether or not this strider is shivering. 17 | * 18 | * Note that the shivering state is updated frequently on the server, 19 | * therefore this method may not affect the entity for long enough to have a 20 | * noticeable difference. 21 | * 22 | * @param shivering its new shivering state 23 | */ 24 | public void setShivering(boolean shivering); 25 | } 26 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Tadpole.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * A baby {@link Frog}. 5 | */ 6 | public interface Tadpole extends Fish { 7 | 8 | /** 9 | * Gets the age of this mob. 10 | * 11 | * @return Age 12 | */ 13 | public int getAge(); 14 | 15 | /** 16 | * Sets the age of this mob. 17 | * 18 | * @param age New age 19 | */ 20 | public void setAge(int age); 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ThrowableProjectile.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.inventory.ItemStack; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | public interface ThrowableProjectile extends Projectile { 7 | 8 | /** 9 | * Gets the ItemStack the thrown projectile will display. 10 | * 11 | * @return The thrown item display ItemStack 12 | */ 13 | @NotNull 14 | ItemStack getItem(); 15 | 16 | /** 17 | * Sets the display ItemStack for the thrown projectile. 18 | * 19 | * @param item ItemStack set to be displayed 20 | */ 21 | void setItem(@NotNull ItemStack item); 22 | } 23 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ThrownExpBottle.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表抛出的附魔之瓶. 5 | */ 6 | public interface ThrownExpBottle extends ThrowableProjectile { 7 | 8 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/TippedArrow.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * @deprecated tipped status depends only on base potion type not being 5 | * UNCRAFTABLE and effects being empty. 6 | */ 7 | @Deprecated 8 | public interface TippedArrow extends Arrow { } 9 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/TraderLlama.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a trader Llama. 5 | */ 6 | public interface TraderLlama extends Llama { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Trident.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表被抛出的三叉戟. 5 | */ 6 | public interface Trident extends AbstractArrow, ThrowableProjectile { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Turtle.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a turtle. 5 | */ 6 | public interface Turtle extends Animals { 7 | 8 | /** 9 | * Gets whether the turtle has an egg 10 | * 11 | * @return Whether the turtle has an egg 12 | */ 13 | boolean hasEgg(); 14 | 15 | /** 16 | * Gets whether the turtle is laying an egg 17 | * 18 | * @return Whether the turtle is laying an egg 19 | */ 20 | boolean isLayingEgg(); 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Vehicle.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.bukkit.util.Vector; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * Represents a vehicle entity. 8 | */ 9 | public interface Vehicle extends Entity { 10 | 11 | /** 12 | * Gets the vehicle's velocity. 13 | * 14 | * @return velocity vector 15 | */ 16 | @Override 17 | @NotNull 18 | public Vector getVelocity(); 19 | 20 | /** 21 | * Sets the vehicle's velocity in meters per tick. 22 | * 23 | * @param vel velocity vector 24 | */ 25 | @Override 26 | public void setVelocity(@NotNull Vector vel); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Vindicator.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表卫道士. 5 | */ 6 | public interface Vindicator extends Illager { 7 | 8 | /** 9 | * Returns whether a vindicator is in "Johnny" mode. 10 | * 11 | * When this mode is active, vindicators will be hostile to all mobs. 12 | * 13 | * @return true if johnny 14 | */ 15 | boolean isJohnny(); 16 | 17 | /** 18 | * Sets the Johnny state of a vindicator. 19 | * 20 | * @param johnny new johnny state 21 | */ 22 | void setJohnny(boolean johnny); 23 | } 24 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/WaterMob.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表海洋生物. 5 | */ 6 | public interface WaterMob extends Creature {} 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/WindCharge.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | 5 | /** 6 | * Represents a Wind Charge. 7 | */ 8 | @ApiStatus.Experimental 9 | public interface WindCharge extends AbstractWindCharge { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Witch.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表女巫. 5 | */ 6 | public interface Witch extends Raider { 7 | 8 | /** 9 | * Gets whether the witch is drinking a potion 10 | * 11 | * @return whether the witch is drinking a potion 12 | */ 13 | boolean isDrinkingPotion(); 14 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/WitherSkeleton.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a WitherSkeleton - variant of {@link AbstractSkeleton}. 5 | */ 6 | public interface WitherSkeleton extends AbstractSkeleton { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/WitherSkull.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * 代表凋零之首. 5 | *

6 | * 有关凋零之首,请参阅 MineCraft 中文Wiki 上的凋零部分. 7 | */ 8 | public interface WitherSkull extends Fireball { 9 | 10 | /** 11 | * 设置这个凋零之首是否充能. 12 | *

13 | * 译注:凋零之首分为黑色的和蓝色的,难道BukkitAPI的编写者把蓝色的凋零之首认为是充能的凋零之首?目前尚未得到测试,无法证明此观点.下同. 14 | *

15 | * 原文:Sets the charged status of the wither skull. 16 | * 17 | * @param charged 这个凋零之首是否充能 18 | */ 19 | public void setCharged(boolean charged); 20 | 21 | /** 22 | * 获取这个凋零之首是否充能. 23 | *

24 | * 原文:Gets whether or not the wither skull is charged. 25 | * 26 | * @return 这个凋零之首是否充能 27 | */ 28 | public boolean isCharged(); 29 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/Zoglin.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a Zoglin. 5 | */ 6 | public interface Zoglin extends Monster, Ageable { 7 | 8 | /** 9 | * Gets whether the zoglin is a baby 10 | * 11 | * @return Whether the zoglin is a baby 12 | * @deprecated see {@link Ageable#isAdult()} 13 | */ 14 | @Deprecated 15 | public boolean isBaby(); 16 | 17 | /** 18 | * Sets whether the zoglin is a baby 19 | * 20 | * @param flag Whether the zoglin is a baby 21 | * @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()} 22 | */ 23 | @Deprecated 24 | public void setBaby(boolean flag); 25 | } 26 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/ZombieHorse.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity; 2 | 3 | /** 4 | * Represents a ZombieHorse - variant of {@link AbstractHorse}. 5 | */ 6 | public interface ZombieHorse extends AbstractHorse { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/memory/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与实体的持久化内存有关的类, 目前仅与村民有关. 3 | */ 4 | package org.bukkit.entity.memory; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/minecart/HopperMinecart.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity.minecart; 2 | 3 | import org.bukkit.entity.Minecart; 4 | import org.bukkit.inventory.InventoryHolder; 5 | import org.bukkit.loot.Lootable; 6 | 7 | /** 8 | * 代表漏斗矿车. 9 | */ 10 | public interface HopperMinecart extends Minecart, InventoryHolder, Lootable { 11 | 12 | /** 13 | * 检测这个矿车是否会将物品捡进背包. 14 | *

15 | * 原文:Checks whether or not this Minecart will pick up 16 | * items into its inventory. 17 | * 18 | * @return 这个矿车是否会将物品捡进背包. 19 | */ 20 | boolean isEnabled(); 21 | 22 | /** 23 | * 设置这个矿车是否会将物品捡进背包. 24 | *

25 | * 原文:Sets whether this Minecart will pick up items. 26 | * 27 | * @param enabled 新的启用状态 28 | */ 29 | void setEnabled(boolean enabled); 30 | } 31 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/minecart/PoweredMinecart.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity.minecart; 2 | 3 | import org.bukkit.entity.Minecart; 4 | 5 | /** 6 | * 代表动力矿车.当玩家往动力矿车里放{@link org.bukkit.Material#COAL 燃料}后它就会自己移动. 7 | */ 8 | public interface PoweredMinecart extends Minecart { 9 | 10 | /** 11 | * Get the number of ticks until the minecart runs out of fuel. 12 | * 13 | * @return Number of ticks until the minecart runs out of fuel 14 | */ 15 | public int getFuel(); 16 | 17 | /** 18 | * Set the number of ticks until the minecart runs out of fuel. 19 | * 20 | * @param fuel Number of ticks until the minecart runs out of fuel 21 | */ 22 | public void setFuel(int fuel); 23 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/minecart/RideableMinecart.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity.minecart; 2 | 3 | import org.bukkit.entity.Minecart; 4 | 5 | /** 6 | * 代表可乘坐的矿车. 7 | */ 8 | public interface RideableMinecart extends Minecart { 9 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/minecart/SpawnerMinecart.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity.minecart; 2 | 3 | import org.bukkit.entity.Minecart; 4 | import org.bukkit.spawner.Spawner; 5 | 6 | /** 7 | * 代表有{@link org.bukkit.block.CreatureSpawner 刷怪箱}在里面的矿车(即刷怪箱矿车). 8 | */ 9 | public interface SpawnerMinecart extends Minecart, Spawner { 10 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/minecart/StorageMinecart.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.entity.minecart; 2 | 3 | import org.bukkit.entity.Minecart; 4 | import org.bukkit.inventory.InventoryHolder; 5 | import org.bukkit.loot.Lootable; 6 | 7 | /** 8 | * 代表运输矿车,你可以使用{@link InventoryHolder}里的方法来访问. 9 | */ 10 | public interface StorageMinecart extends Minecart, InventoryHolder, Lootable { 11 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/minecart/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 为不同种类的{@link org.bukkit.entity.Minecart 矿车}提供的接口. 3 | */ 4 | package org.bukkit.entity.minecart; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/entity/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 为在{@link org.bukkit.World 世界}内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. 3 | */ 4 | package org.bukkit.entity; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/Cancellable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event; 2 | 3 | /** 4 | * 一个表明事件可被插件或服务器取消的类型. 5 | */ 6 | public interface Cancellable { 7 | 8 | /** 9 | * 获取这个事件是否被取消.一个被取消的事件不会在服务器里执行,但是仍然会传递事件到其他插件. 10 | *

11 | * 原文:Gets the cancellation state of this event. A cancelled event will not 12 | * be executed in the server, but will still pass to other plugins 13 | * 14 | * @return 如果事件已经被取消,则为true 15 | */ 16 | public boolean isCancelled(); 17 | 18 | /** 19 | * 取消这个事件. 一个被取消的事件不会在 20 | * 服务器里执行,但是仍然会传递事件到其他插件. 21 | *

22 | * 原文:Sets the cancellation state of this event. A cancelled event will not 23 | * be executed in the server, but will still pass to other plugins. 24 | * 25 | * @param cancel 如果你想取消这个事件,则为true 26 | */ 27 | public void setCancelled(boolean cancel); 28 | } 29 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/Listener.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event; 2 | 3 | /** 4 | * 一个触发所有事件监听器的接口 5 | */ 6 | public interface Listener {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/block/Action.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.block; 2 | 3 | public enum Action { 4 | 5 | /** 6 | * 左击一个方块 7 | */ 8 | LEFT_CLICK_BLOCK, 9 | /** 10 | * 右击一个方块 11 | */ 12 | RIGHT_CLICK_BLOCK, 13 | /** 14 | * 左击空气 15 | */ 16 | LEFT_CLICK_AIR, 17 | /** 18 | * 右击空气 19 | */ 20 | RIGHT_CLICK_AIR, 21 | /** 22 | * 踩上一个方块 23 | * 24 | * 举几个例子: 25 | *

31 | */ 32 | PHYSICAL, 33 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/block/BlockEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.block; 2 | 3 | import org.bukkit.block.Block; 4 | import org.bukkit.event.Event; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 代表与方块相关的事件. 9 | */ 10 | public abstract class BlockEvent extends Event { 11 | protected Block block; 12 | 13 | public BlockEvent(@NotNull final Block theBlock) { 14 | block = theBlock; 15 | } 16 | 17 | /** 18 | * 获取这个事件涉及的方块. 19 | *

20 | * 原文:Gets the block involved in this event. 21 | * 22 | * @return 这个事件涉及的方块 23 | */ 24 | @NotNull 25 | public final Block getBlock() { 26 | return block; 27 | } 28 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/block/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.block.Block 方块}被改变或与{@link 3 | * org.bukkit.World 世界}进行交互等情况相关的{@link org.bukkit.event.Event 事件}. 4 | */ 5 | package org.bukkit.event.block; 6 | 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/enchantment/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.inventory.EnchantingInventory 附魔台}操作相关的{@link org.bukkit.event.Event 事件}. 3 | */ 4 | package org.bukkit.event.enchantment; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/entity/EntityBreakDoorEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.entity; 2 | 3 | import org.bukkit.Material; 4 | import org.bukkit.block.Block; 5 | import org.bukkit.entity.Entity; 6 | import org.bukkit.entity.LivingEntity; 7 | import org.jetbrains.annotations.NotNull; 8 | 9 | /** 10 | * 当{@link Entity 实体}破坏门时触发本事件. 11 | *

12 | * 取消该事件将导致该事件被延迟. 13 | */ 14 | public class EntityBreakDoorEvent extends EntityChangeBlockEvent { 15 | public EntityBreakDoorEvent(@NotNull final LivingEntity entity, @NotNull final Block targetBlock) { 16 | super(entity, targetBlock, Material.AIR.createBlockData()); 17 | } 18 | 19 | @NotNull 20 | @Override 21 | public LivingEntity getEntity() { 22 | return (LivingEntity) entity; 23 | } 24 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/entity/ItemSpawnEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.entity; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.entity.Item; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当掉落物生成于某个世界时触发本事件. 9 | */ 10 | public class ItemSpawnEvent extends EntitySpawnEvent { 11 | 12 | @Deprecated 13 | public ItemSpawnEvent(@NotNull final Item spawnee, final Location loc) { 14 | this(spawnee); 15 | } 16 | 17 | public ItemSpawnEvent(@NotNull final Item spawnee) { 18 | super(spawnee); 19 | } 20 | 21 | @NotNull 22 | @Override 23 | public Item getEntity() { 24 | return (Item) entity; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/entity/ProjectileLaunchEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.entity; 2 | 3 | import org.bukkit.entity.Entity; 4 | import org.bukkit.entity.Projectile; 5 | import org.bukkit.event.Cancellable; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * 当一个抛射物被发射时触发本事件. 10 | */ 11 | public class ProjectileLaunchEvent extends EntitySpawnEvent implements Cancellable { 12 | private boolean cancelled; 13 | 14 | public ProjectileLaunchEvent(@NotNull Entity what) { 15 | super(what); 16 | } 17 | 18 | @Override 19 | public boolean isCancelled() { 20 | return cancelled; 21 | } 22 | 23 | @Override 24 | public void setCancelled(boolean cancel) { 25 | cancelled = cancel; 26 | } 27 | 28 | @NotNull 29 | @Override 30 | public Projectile getEntity() { 31 | return (Projectile) entity; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/entity/SpawnerSpawnEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.entity; 2 | 3 | import org.bukkit.block.CreatureSpawner; 4 | import org.bukkit.entity.Entity; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当刷怪笼刷出实体时触发本事件. 9 | *

10 | * 如果本事件被取消, 那么实体将不会被刷出. 11 | */ 12 | public class SpawnerSpawnEvent extends EntitySpawnEvent { 13 | private final CreatureSpawner spawner; 14 | 15 | public SpawnerSpawnEvent(@NotNull final Entity spawnee, @NotNull final CreatureSpawner spawner) { 16 | super(spawnee); 17 | this.spawner = spawner; 18 | } 19 | 20 | @NotNull 21 | public CreatureSpawner getSpawner() { 22 | return spawner; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/entity/TrialSpawnerSpawnEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.entity; 2 | 3 | import org.bukkit.block.TrialSpawner; 4 | import org.bukkit.entity.Entity; 5 | import org.jetbrains.annotations.ApiStatus; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * Called when an entity is spawned into a world by a trial spawner. 10 | *

11 | * If a Trial Spawner Spawn event is cancelled, the entity will not spawn. 12 | */ 13 | @ApiStatus.Experimental 14 | public class TrialSpawnerSpawnEvent extends EntitySpawnEvent { 15 | private final TrialSpawner spawner; 16 | 17 | public TrialSpawnerSpawnEvent(@NotNull final Entity spawnee, @NotNull final TrialSpawner spawner) { 18 | super(spawnee); 19 | this.spawner = spawner; 20 | } 21 | 22 | @NotNull 23 | public TrialSpawner getTrialSpawner() { 24 | return spawner; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/entity/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.entity.Entity 实体}相关的{@link org.bukkit.event.Event 事件},不包括 3 | * 一些直接引用的更具体的实体类型. 4 | */ 5 | package org.bukkit.event.entity; 6 | 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/hanging/HangingEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.hanging; 2 | 3 | import org.bukkit.entity.Hanging; 4 | import org.bukkit.event.Event; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 代表与悬挂实体有关的事件. 9 | */ 10 | public abstract class HangingEvent extends Event { 11 | protected Hanging hanging; 12 | 13 | protected HangingEvent(@NotNull final Hanging painting) { 14 | this.hanging = painting; 15 | } 16 | 17 | /** 18 | * 获取涉及了这个事件的悬挂实体. 19 | *

20 | * 原文:Gets the hanging entity involved in this event. 21 | * 22 | * @return 悬挂实体 23 | */ 24 | @NotNull 25 | public Hanging getEntity() { 26 | return hanging; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/hanging/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.entity.Hanging 悬挂实体}相关的{@link org.bukkit.event.Event 事件}. 3 | */ 4 | package org.bukkit.event.hanging; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/inventory/DragType.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.inventory; 2 | 3 | /** 4 | * 在物品栏中拖动物品的拖动类型. 5 | */ 6 | public enum DragType { 7 | /** 8 | * 每个物品槽中会放置一个光标上的物品. 9 | */ 10 | SINGLE, 11 | /** 12 | * 光标上的物品会平均分配到每一个物品槽中, 但物品槽中的物品不会超过该物品的最大堆叠数量, 剩余的物品仍会在光标上. 13 | */ 14 | EVEN, 15 | } 16 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/inventory/FurnaceSmeltEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.inventory; 2 | 3 | import org.bukkit.block.Block; 4 | import org.bukkit.event.block.BlockCookEvent; 5 | import org.bukkit.inventory.ItemStack; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * 当一个物品烧炼完毕时触发本事件. 10 | */ 11 | public class FurnaceSmeltEvent extends BlockCookEvent { 12 | 13 | public FurnaceSmeltEvent(@NotNull final Block furnace, @NotNull final ItemStack source, @NotNull final ItemStack result) { 14 | super(furnace, source, result); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/inventory/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.inventory.Inventory 物品栏}操作相关的{@link org.bukkit.event.Event 事件}. 3 | */ 4 | package org.bukkit.event.inventory; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于处理触发代码的执行的类. 3 | */ 4 | package org.bukkit.event; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/player/PlayerAnimationType.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.player; 2 | 3 | /** 4 | * 玩家动作的不同种类 5 | */ 6 | public enum PlayerAnimationType { 7 | ARM_SWING, 8 | OFF_ARM_SWING 9 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/player/PlayerEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.player; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.bukkit.event.Event; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 代表玩家事件. 9 | */ 10 | public abstract class PlayerEvent extends Event { 11 | protected Player player; 12 | 13 | public PlayerEvent(@NotNull final Player who) { 14 | player = who; 15 | } 16 | 17 | PlayerEvent(@NotNull final Player who, boolean async) { 18 | super(async); 19 | player = who; 20 | 21 | } 22 | 23 | /** 24 | * 返回哪个玩家触发了此事件. 25 | *

26 | * 原文:Returns the player involved in this event 27 | * 28 | * @return 触发此事件的玩家 29 | */ 30 | @NotNull 31 | public final Player getPlayer() { 32 | return player; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/player/PlayerPickupArrowEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.player; 2 | 3 | import org.bukkit.entity.AbstractArrow; 4 | import org.bukkit.entity.Item; 5 | import org.bukkit.entity.Player; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * 当玩家从地上捡起箭时触发本事件. 10 | */ 11 | public class PlayerPickupArrowEvent extends PlayerPickupItemEvent { 12 | 13 | private final AbstractArrow arrow; 14 | 15 | public PlayerPickupArrowEvent(@NotNull final Player player, @NotNull final Item item, @NotNull final AbstractArrow arrow) { 16 | super(player, item, 0); 17 | this.arrow = arrow; 18 | } 19 | 20 | /** 21 | * 获取玩家捡起的箭. 22 | *

23 | * 原文:Get the arrow being picked up by the player 24 | * 25 | * @return 被捡起的箭 26 | */ 27 | @NotNull 28 | public AbstractArrow getArrow() { 29 | return arrow; 30 | } 31 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/player/PlayerRegisterChannelEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.player; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 玩家注册通信通道之后立即触发此事件. 8 | */ 9 | public class PlayerRegisterChannelEvent extends PlayerChannelEvent { 10 | 11 | public PlayerRegisterChannelEvent(@NotNull final Player player, @NotNull final String channel) { 12 | super(player, channel); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/player/PlayerUnregisterChannelEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.player; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 当玩家注销插件通道时触发事件. 8 | */ 9 | public class PlayerUnregisterChannelEvent extends PlayerChannelEvent { 10 | 11 | public PlayerUnregisterChannelEvent(@NotNull final Player player, @NotNull final String channel) { 12 | super(player, channel); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/player/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.entity.Player 玩家}相关的{@link org.bukkit.event.Event 事件}. 3 | */ 4 | package org.bukkit.event.player; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/raid/RaidEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.raid; 2 | 3 | import org.bukkit.Raid; 4 | import org.bukkit.World; 5 | import org.bukkit.event.world.WorldEvent; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * 与袭击有关的事件. 10 | */ 11 | public abstract class RaidEvent extends WorldEvent { 12 | 13 | private final Raid raid; 14 | 15 | protected RaidEvent(@NotNull Raid raid, @NotNull World world) { 16 | super(world); 17 | this.raid = raid; 18 | } 19 | 20 | /** 21 | * 返回本事件所涉及的袭击. 22 | *

23 | * 原文:Returns the raid involved with this event. 24 | * 25 | * @return 袭击 26 | */ 27 | @NotNull 28 | public Raid getRaid() { 29 | return raid; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/raid/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与袭击有关的{@link org.bukkit.event.Event 事件}(Minecraft Wiki - 袭击). 3 | */ 4 | package org.bukkit.event.raid; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/PluginDisableEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.server; 2 | 3 | import org.bukkit.event.HandlerList; 4 | import org.bukkit.plugin.Plugin; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当一个插件被停用时调用. 9 | */ 10 | public class PluginDisableEvent extends PluginEvent { 11 | private static final HandlerList handlers = new HandlerList(); 12 | 13 | public PluginDisableEvent(@NotNull final Plugin plugin) { 14 | super(plugin); 15 | } 16 | 17 | @NotNull 18 | @Override 19 | public HandlerList getHandlers() { 20 | return handlers; 21 | } 22 | 23 | @NotNull 24 | public static HandlerList getHandlerList() { 25 | return handlers; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/PluginEnableEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.server; 2 | 3 | import org.bukkit.event.HandlerList; 4 | import org.bukkit.plugin.Plugin; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当一个插件被启用时调用. 9 | */ 10 | public class PluginEnableEvent extends PluginEvent { 11 | private static final HandlerList handlers = new HandlerList(); 12 | 13 | public PluginEnableEvent(@NotNull final Plugin plugin) { 14 | super(plugin); 15 | } 16 | 17 | @NotNull 18 | @Override 19 | public HandlerList getHandlers() { 20 | return handlers; 21 | } 22 | 23 | @NotNull 24 | public static HandlerList getHandlerList() { 25 | return handlers; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/PluginEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.server; 2 | 3 | import org.bukkit.plugin.Plugin; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 用于插件的启用和禁用事件. 8 | */ 9 | public abstract class PluginEvent extends ServerEvent { 10 | private final Plugin plugin; 11 | 12 | public PluginEvent(@NotNull final Plugin plugin) { 13 | this.plugin = plugin; 14 | } 15 | 16 | /** 17 | * 得到启用/禁用的插件. 18 | *

19 | * 原文: Gets the plugin involved in this event 20 | * 21 | * @return 激活这个事件的插件 22 | */ 23 | @NotNull 24 | public Plugin getPlugin() { 25 | return plugin; 26 | } 27 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/RemoteServerCommandEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.server; 2 | 3 | import org.bukkit.command.CommandSender; 4 | import org.bukkit.event.HandlerList; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 这个事件当服务器RCON收到指令时调用.{@link ServerCommandEvent 了解更多}. 9 | */ 10 | public class RemoteServerCommandEvent extends ServerCommandEvent { 11 | private static final HandlerList handlers = new HandlerList(); 12 | 13 | public RemoteServerCommandEvent(@NotNull final CommandSender sender, @NotNull final String command) { 14 | super(sender, command); 15 | } 16 | 17 | @NotNull 18 | @Override 19 | public HandlerList getHandlers() { 20 | return handlers; 21 | } 22 | 23 | @NotNull 24 | public static HandlerList getHandlerList() { 25 | return handlers; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/ServerEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.server; 2 | 3 | import org.bukkit.event.Event; 4 | 5 | /** 6 | * 各种服务器事件. 7 | */ 8 | public abstract class ServerEvent extends Event { 9 | 10 | public ServerEvent() { 11 | super(); 12 | } 13 | 14 | public ServerEvent(boolean isAsync) { 15 | super(isAsync); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/ServiceEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.server; 2 | 3 | import org.bukkit.plugin.RegisteredServiceProvider; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 与已注册服务有关的事件. 8 | * {@link org.bukkit.plugin.ServicesManager}会调用本事件. 9 | */ 10 | public abstract class ServiceEvent extends ServerEvent { 11 | private final RegisteredServiceProvider provider; 12 | 13 | public ServiceEvent(@NotNull final RegisteredServiceProvider provider) { 14 | this.provider = provider; 15 | } 16 | 17 | @NotNull 18 | public RegisteredServiceProvider getProvider() { 19 | return provider; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/ServiceRegisterEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.server; 2 | 3 | import org.bukkit.event.HandlerList; 4 | import org.bukkit.plugin.RegisteredServiceProvider; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当一个服务注册时调用. 9 | *

10 | * 注意:注册和注销的事件顺序不互相依赖. 11 | */ 12 | public class ServiceRegisterEvent extends ServiceEvent { 13 | private static final HandlerList handlers = new HandlerList(); 14 | 15 | public ServiceRegisterEvent(@NotNull RegisteredServiceProvider registeredProvider) { 16 | super(registeredProvider); 17 | } 18 | 19 | @NotNull 20 | @Override 21 | public HandlerList getHandlers() { 22 | return handlers; 23 | } 24 | 25 | @NotNull 26 | public static HandlerList getHandlerList() { 27 | return handlers; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/ServiceUnregisterEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.server; 2 | 3 | import org.bukkit.event.HandlerList; 4 | import org.bukkit.plugin.RegisteredServiceProvider; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当一个服务注销时调用. 9 | *

10 | * 注意:注册和注销的事件顺序不互相依赖. 11 | */ 12 | public class ServiceUnregisterEvent extends ServiceEvent { 13 | private static final HandlerList handlers = new HandlerList(); 14 | 15 | public ServiceUnregisterEvent(@NotNull RegisteredServiceProvider serviceProvider) { 16 | super(serviceProvider); 17 | } 18 | 19 | @NotNull 20 | @Override 21 | public HandlerList getHandlers() { 22 | return handlers; 23 | } 24 | 25 | @NotNull 26 | public static HandlerList getHandlerList() { 27 | return handlers; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/server/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与服务器程序状态变化有关的{@link org.bukkit.event.Event 事件}. 3 | */ 4 | package org.bukkit.event.server; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/vehicle/VehicleCollisionEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.vehicle; 2 | 3 | import org.bukkit.entity.Vehicle; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 两个载具碰撞的事件 8 | */ 9 | public abstract class VehicleCollisionEvent extends VehicleEvent { 10 | public VehicleCollisionEvent(@NotNull final Vehicle vehicle) { 11 | super(vehicle); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/vehicle/VehicleEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.vehicle; 2 | 3 | import org.bukkit.entity.Vehicle; 4 | import org.bukkit.event.Event; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 代表所有和载具有关的事件 9 | */ 10 | public abstract class VehicleEvent extends Event { 11 | protected Vehicle vehicle; 12 | 13 | public VehicleEvent(@NotNull final Vehicle vehicle) { 14 | this.vehicle = vehicle; 15 | } 16 | 17 | /** 18 | * 获取发生事件的载具. 19 | *

20 | * 原文:Get the vehicle 21 | * 22 | * @return 发生事件的载具 23 | */ 24 | @NotNull 25 | public final Vehicle getVehicle() { 26 | return vehicle; 27 | } 28 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/vehicle/VehicleUpdateEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.vehicle; 2 | 3 | import org.bukkit.entity.Vehicle; 4 | import org.bukkit.event.HandlerList; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 载具更新事件 9 | */ 10 | public class VehicleUpdateEvent extends VehicleEvent { 11 | private static final HandlerList handlers = new HandlerList(); 12 | 13 | public VehicleUpdateEvent(@NotNull final Vehicle vehicle) { 14 | super(vehicle); 15 | } 16 | 17 | @NotNull 18 | @Override 19 | public HandlerList getHandlers() { 20 | return handlers; 21 | } 22 | 23 | @NotNull 24 | public static HandlerList getHandlerList() { 25 | return handlers; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/vehicle/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.entity.Vehicle 载具实体}相关的{@link org.bukkit.event.Event 事件}. 3 | */ 4 | package org.bukkit.event.vehicle; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/weather/WeatherEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.weather; 2 | 3 | import org.bukkit.World; 4 | import org.bukkit.event.Event; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 和天气有关的事件 9 | */ 10 | public abstract class WeatherEvent extends Event { 11 | protected World world; 12 | 13 | public WeatherEvent(@NotNull final World where) { 14 | world = where; 15 | } 16 | 17 | /** 18 | * 返回发生此次天气事件所在的世界. 19 | *

20 | * 原文: 21 | * Returns the World where this event is occurring 22 | * 23 | * @return 天气事件所在的世界 24 | */ 25 | @NotNull 26 | public final World getWorld() { 27 | return world; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/weather/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与天气状态变化相关的{@link org.bukkit.event.Event 事件}. 3 | */ 4 | package org.bukkit.event.weather; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/world/ChunkEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.world; 2 | 3 | import org.bukkit.Chunk; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 代表与区块有关系的事件. 8 | */ 9 | public abstract class ChunkEvent extends WorldEvent { 10 | protected Chunk chunk; 11 | 12 | protected ChunkEvent(@NotNull final Chunk chunk) { 13 | super(chunk.getWorld()); 14 | this.chunk = chunk; 15 | } 16 | 17 | /** 18 | * 获取准备加载/卸载的区块. 19 | *

20 | * 原文: 21 | * Gets the chunk being loaded/unloaded 22 | * 23 | * @return 引发此事件的区块 24 | */ 25 | @NotNull 26 | public Chunk getChunk() { 27 | return chunk; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/world/ChunkPopulateEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.world; 2 | 3 | import org.bukkit.Chunk; 4 | import org.bukkit.event.HandlerList; 5 | import org.bukkit.generator.BlockPopulator; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * 当一个新生成的区块填充完毕时调用. 10 | *

11 | * 注意:请不要利用此事件在新生成的区块中生成方块, 应该使用 {@link BlockPopulator}. 12 | */ 13 | public class ChunkPopulateEvent extends ChunkEvent { 14 | private static final HandlerList handlers = new HandlerList(); 15 | 16 | public ChunkPopulateEvent(@NotNull final Chunk chunk) { 17 | super(chunk); 18 | } 19 | 20 | @NotNull 21 | @Override 22 | public HandlerList getHandlers() { 23 | return handlers; 24 | } 25 | 26 | @NotNull 27 | public static HandlerList getHandlerList() { 28 | return handlers; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/world/WorldEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.world; 2 | 3 | import org.bukkit.World; 4 | import org.bukkit.event.Event; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 代表世界范围内的事件. 9 | */ 10 | public abstract class WorldEvent extends Event { 11 | private final World world; 12 | 13 | public WorldEvent(@NotNull final World world) { 14 | this(world, false); 15 | } 16 | 17 | public WorldEvent(@NotNull World world, boolean isAsync) { 18 | super(isAsync); 19 | this.world = world; 20 | } 21 | 22 | /** 23 | * 获取这个事件主要涉及的世界. 24 | *

25 | * 原文: 26 | * Gets the world primarily involved with this event 27 | * 28 | * @return 引发这个事件的世界 29 | */ 30 | @NotNull 31 | public World getWorld() { 32 | return world; 33 | } 34 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/world/WorldInitEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.world; 2 | 3 | import org.bukkit.World; 4 | import org.bukkit.event.HandlerList; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当一个世界被初始化时调用. 9 | *

10 | * 如要获取到每个世界, 建议在 plugin.yml 加入以下代码(调整插件的加载时机): 11 | *

load: STARTUP
12 | */ 13 | public class WorldInitEvent extends WorldEvent { 14 | private static final HandlerList handlers = new HandlerList(); 15 | 16 | public WorldInitEvent(@NotNull final World world) { 17 | super(world); 18 | } 19 | 20 | @NotNull 21 | @Override 22 | public HandlerList getHandlers() { 23 | return handlers; 24 | } 25 | 26 | @NotNull 27 | public static HandlerList getHandlerList() { 28 | return handlers; 29 | } 30 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/world/WorldLoadEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.world; 2 | 3 | import org.bukkit.World; 4 | import org.bukkit.event.HandlerList; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当一个世界被加载时调用. 9 | */ 10 | public class WorldLoadEvent extends WorldEvent { 11 | private static final HandlerList handlers = new HandlerList(); 12 | 13 | public WorldLoadEvent(@NotNull final World world) { 14 | super(world); 15 | } 16 | 17 | @NotNull 18 | @Override 19 | public HandlerList getHandlers() { 20 | return handlers; 21 | } 22 | 23 | @NotNull 24 | public static HandlerList getHandlerList() { 25 | return handlers; 26 | } 27 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/world/WorldSaveEvent.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.event.world; 2 | 3 | import org.bukkit.World; 4 | import org.bukkit.event.HandlerList; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * 当一个世界被保存时调用. 9 | */ 10 | public class WorldSaveEvent extends WorldEvent { 11 | private static final HandlerList handlers = new HandlerList(); 12 | 13 | public WorldSaveEvent(@NotNull final World world) { 14 | super(world); 15 | } 16 | 17 | @NotNull 18 | @Override 19 | public HandlerList getHandlers() { 20 | return handlers; 21 | } 22 | 23 | @NotNull 24 | public static HandlerList getHandlerList() { 25 | return handlers; 26 | } 27 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/event/world/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与{@link org.bukkit.World 世界}状态和变化有关的{@link org.bukkit.event.Event 事件}. 3 | */ 4 | package org.bukkit.event.world; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/generator/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 简化{@link org.bukkit.World 世界}生成实现的类. 3 | */ 4 | package org.bukkit.generator; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/generator/structure/StructurePiece.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.generator.structure; 2 | 3 | import org.bukkit.util.BoundingBox; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * Represents an individual part of a {@link GeneratedStructure}. 8 | * 9 | * @see GeneratedStructure 10 | */ 11 | public interface StructurePiece { 12 | 13 | /** 14 | * Gets the bounding box of this structure piece. 15 | * 16 | * @return bounding box of this structure piece 17 | */ 18 | @NotNull 19 | public BoundingBox getBoundingBox(); 20 | } 21 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/generator/structure/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Classes to facilitate world {@link org.bukkit.generator.structure.Structure} 3 | * generation. 4 | */ 5 | package org.bukkit.generator.structure; 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/help/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于操作默认的命令和主题帮助系统的类(你可以将你的命令帮助添加到系统命令帮助系统(help命令)内等等). 3 | */ 4 | package org.bukkit.help; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/AbstractHorseInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.entity.AbstractHorse; 4 | import org.jetbrains.annotations.Nullable; 5 | 6 | /** 7 | * 马(抽象概念的)({@link AbstractHorse})的物品栏界面接口. 8 | */ 9 | public interface AbstractHorseInventory extends Inventory { 10 | 11 | /** 12 | * 获取马所装备的马鞍. 13 | *

14 | * 原文:Gets the item in the horse's saddle slot. 15 | * 16 | * @return 马鞍 17 | */ 18 | @Nullable 19 | ItemStack getSaddle(); 20 | 21 | /** 22 | * 为这匹马装备一个马鞍. 23 | *

24 | * 原文:Sets the item in the horse's saddle slot. 25 | * 26 | * @param stack 马鞍 27 | */ 28 | void setSaddle(@Nullable ItemStack stack); 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/BeaconInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.jetbrains.annotations.Nullable; 4 | 5 | /** 6 | * 信标的背包界面接口 7 | */ 8 | public interface BeaconInventory extends Inventory { 9 | 10 | /** 11 | * 设置信标内的物品. 12 | *

13 | * 原文: Set the item powering the beacon. 14 | * 15 | * @param item 新的物品. 16 | */ 17 | void setItem(@Nullable ItemStack item); 18 | 19 | /** 20 | * 返回信标内的物品. 21 | *

22 | * 原文: Get the item powering the beacon. 23 | * 24 | * @return 物品 25 | */ 26 | @Nullable 27 | ItemStack getItem(); 28 | } 29 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/BlastingRecipe.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.Material; 4 | import org.bukkit.NamespacedKey; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * Represents a campfire recipe. 9 | */ 10 | public class BlastingRecipe extends CookingRecipe { 11 | 12 | public BlastingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) { 13 | super(key, result, source, experience, cookingTime); 14 | } 15 | 16 | public BlastingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) { 17 | super(key, result, input, experience, cookingTime); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/BlockInventoryHolder.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.block.Block; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * Represents a block inventory holder - either a BlockState, or a regular 8 | * Block. 9 | */ 10 | public interface BlockInventoryHolder extends InventoryHolder { 11 | 12 | /** 13 | * Gets the block associated with this holder. 14 | * 15 | * @return the block associated with this holder 16 | * @throws IllegalStateException if the holder is a block state and is not 17 | * placed 18 | */ 19 | @NotNull 20 | Block getBlock(); 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/CampfireRecipe.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.Material; 4 | import org.bukkit.NamespacedKey; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * Represents a campfire recipe. 9 | */ 10 | public class CampfireRecipe extends CookingRecipe { 11 | 12 | public CampfireRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) { 13 | super(key, result, source, experience, cookingTime); 14 | } 15 | 16 | public CampfireRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) { 17 | super(key, result, input, experience, cookingTime); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/CartographyInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | /** 4 | * Interface to the inventory of a Cartography table. 5 | */ 6 | public interface CartographyInventory extends Inventory { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/ChiseledBookshelfInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.block.ChiseledBookshelf; 4 | import org.jetbrains.annotations.Nullable; 5 | 6 | /** 7 | * Interface to the inventory of a chiseled bookshelf. 8 | */ 9 | public interface ChiseledBookshelfInventory extends Inventory { 10 | 11 | @Nullable 12 | @Override 13 | public ChiseledBookshelf getHolder(); 14 | } 15 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/ComplexRecipe.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.Keyed; 4 | 5 | /** 6 | * Represents a complex recipe which has imperative server-defined behavior, eg 7 | * armor dyeing. 8 | * 9 | * Note: Since a complex recipe has dynamic outputs, {@link #getResult()} will 10 | * sometimes return an AIR ItemStack. 11 | */ 12 | public interface ComplexRecipe extends Recipe, Keyed {} 13 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/CrafterInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.jetbrains.annotations.ApiStatus; 4 | 5 | /** 6 | * Interface to the inventory of a Crafter. 7 | */ 8 | @ApiStatus.Experimental 9 | public interface CrafterInventory extends Inventory { } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/DecoratedPotInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.block.DecoratedPot; 4 | import org.jetbrains.annotations.Nullable; 5 | 6 | /** 7 | * Interface to the inventory of a DecoratedPot. 8 | */ 9 | public interface DecoratedPotInventory extends Inventory { 10 | 11 | /** 12 | * Set the item stack in the decorated pot. 13 | * 14 | * @param item the new item stack 15 | */ 16 | public void setItem(@Nullable ItemStack item); 17 | 18 | /** 19 | * Get the item stack in the decorated pot. 20 | * 21 | * @return the current item stack 22 | */ 23 | @Nullable 24 | public ItemStack getItem(); 25 | 26 | @Nullable 27 | @Override 28 | public DecoratedPot getHolder(); 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/DoubleChestInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.block.DoubleChest; 4 | import org.jetbrains.annotations.NotNull; 5 | import org.jetbrains.annotations.Nullable; 6 | 7 | /** 8 | * 大箱子的用户界面接口. 9 | */ 10 | public interface DoubleChestInventory extends Inventory { 11 | 12 | /** 13 | * 获取这个大箱子的左半部分界面. 14 | * 15 | * @return 左半部分界面 16 | */ 17 | @NotNull 18 | Inventory getLeftSide(); 19 | 20 | /** 21 | * 获取这个大箱子的右半部分界面 22 | * 23 | * @return 左半部分界面 24 | */ 25 | @NotNull 26 | Inventory getRightSide(); 27 | 28 | @Override 29 | @Nullable 30 | DoubleChest getHolder(); 31 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/GrindstoneInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | /** 4 | * Interface to the inventory of a Grindstone. 5 | */ 6 | public interface GrindstoneInventory extends Inventory { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/HorseInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.jetbrains.annotations.Nullable; 4 | 5 | /** 6 | * 马(抽象)的界面接口. 7 | */ 8 | public interface HorseInventory extends AbstractHorseInventory { 9 | 10 | /** 11 | * 获取马所装备的盔甲. 12 | *

13 | * 原文:Gets the item in the horse's armor slot. 14 | * 15 | * @return 盔甲 16 | */ 17 | @Nullable 18 | ItemStack getArmor(); 19 | 20 | /** 21 | * 为这匹马装备盔甲. 22 | *

23 | * 原文:Sets the item in the horse's armor slot. 24 | * 25 | * @param stack 盔甲 26 | */ 27 | void setArmor(@Nullable ItemStack stack); 28 | } 29 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/InventoryHolder.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | public interface InventoryHolder { 6 | 7 | /** 8 | * 获取该对象的用户界面项目. 9 | *

10 | * 原文:Get the object's inventory. 11 | * 12 | * @return The inventory. 13 | */ 14 | @NotNull 15 | public Inventory getInventory(); 16 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/ItemRarity.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | /** 4 | * A item's rarity determines the default color of its name. This enum is 5 | * ordered from least rare to most rare. 6 | */ 7 | public enum ItemRarity { 8 | 9 | /** 10 | * White item name. 11 | */ 12 | COMMON, 13 | /** 14 | * Yellow item name. 15 | */ 16 | UNCOMMON, 17 | /** 18 | * Aqua item name. 19 | */ 20 | RARE, 21 | /** 22 | * Light purple item name. 23 | */ 24 | EPIC; 25 | } 26 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/JukeboxInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.block.Jukebox; 4 | import org.jetbrains.annotations.Nullable; 5 | 6 | /** 7 | * Interface to the inventory of a Jukebox. 8 | */ 9 | public interface JukeboxInventory extends Inventory { 10 | 11 | /** 12 | * Set the record in the jukebox. 13 | *

14 | * This will immediately start playing the inserted item or stop playing if the 15 | * item provided is null. 16 | * 17 | * @param item the new record 18 | */ 19 | void setRecord(@Nullable ItemStack item); 20 | 21 | /** 22 | * Get the record in the jukebox. 23 | * 24 | * @return the current record 25 | */ 26 | @Nullable 27 | ItemStack getRecord(); 28 | 29 | @Nullable 30 | @Override 31 | public Jukebox getHolder(); 32 | } 33 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/LecternInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.block.Lectern; 4 | import org.jetbrains.annotations.Nullable; 5 | 6 | /** 7 | * Interface to the inventory of a Lectern. 8 | */ 9 | public interface LecternInventory extends Inventory { 10 | 11 | @Nullable 12 | @Override 13 | public Lectern getHolder(); 14 | } 15 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/LlamaInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.entity.Llama; 4 | import org.jetbrains.annotations.Nullable; 5 | 6 | /** 7 | * {@linkplain Llama 羊驼}的用户界面接口 8 | */ 9 | public interface LlamaInventory extends AbstractHorseInventory { 10 | 11 | /** 12 | * 得到羊驼背包中装饰槽的物品, 通常是毛毯. 13 | *

14 | * 原文:Gets the item in the llama's decor slot. 15 | * 16 | * @return 身上的装饰的ItemStack对象 17 | */ 18 | @Nullable 19 | ItemStack getDecor(); 20 | 21 | /** 22 | * 设置羊驼背包中装饰槽的物品. 23 | *

24 | * 原文:Sets the item in the llama's decor slot. 25 | * 26 | * @param stack 给定的物品 27 | */ 28 | void setDecor(@Nullable ItemStack stack); 29 | } 30 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/LoomInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | /** 4 | * Interface to the inventory of a Loom. 5 | */ 6 | public interface LoomInventory extends Inventory { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/MainHand.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | /** 4 | * 代表玩家的主手。 5 | */ 6 | public enum MainHand { 7 | LEFT, 8 | RIGHT 9 | } 10 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/Recipe.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * 代表某种类型的制作配方. 7 | *
8 | * 原文: Represents some type of crafting recipe. 9 | */ 10 | public interface Recipe { 11 | 12 | /** 13 | * 得到这个配方的结果. 14 | *

15 | * 原文: Get the result of this recipe. 16 | * 17 | * @return {@link ItemStack} 18 | */ 19 | @NotNull 20 | ItemStack getResult(); 21 | } 22 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/SmithingInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.jetbrains.annotations.Nullable; 4 | 5 | /** 6 | * Interface to the inventory of a Smithing table. 7 | */ 8 | public interface SmithingInventory extends Inventory { 9 | 10 | /** 11 | * Check what item is in the result slot of this smithing table. 12 | * 13 | * @return the result item 14 | */ 15 | @Nullable 16 | ItemStack getResult(); 17 | 18 | /** 19 | * Set the item in the result slot of the smithing table 20 | * 21 | * @param newResult the new result item 22 | */ 23 | void setResult(@Nullable ItemStack newResult); 24 | 25 | /** 26 | * Get the current recipe formed on the smithing table, if any. 27 | * 28 | * @return the recipe, or null if the current contents don't match any 29 | * recipe 30 | */ 31 | @Nullable 32 | Recipe getRecipe(); 33 | } 34 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/SmokingRecipe.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | import org.bukkit.Material; 4 | import org.bukkit.NamespacedKey; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * Represents a campfire recipe. 9 | */ 10 | public class SmokingRecipe extends CookingRecipe { 11 | 12 | public SmokingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source, float experience, int cookingTime) { 13 | super(key, result, source, experience, cookingTime); 14 | } 15 | 16 | public SmokingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, float experience, int cookingTime) { 17 | super(key, result, input, experience, cookingTime); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/StonecutterInventory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory; 2 | 3 | /** 4 | * Interface to the inventory of a Stonecutter. 5 | */ 6 | public interface StonecutterInventory extends Inventory { } 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/meta/ColorableArmorMeta.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory.meta; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * Represents armor that an entity can equip and can also be colored. 7 | */ 8 | public interface ColorableArmorMeta extends ArmorMeta, LeatherArmorMeta { 9 | 10 | @Override 11 | @NotNull 12 | ColorableArmorMeta clone(); 13 | } 14 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/meta/MusicInstrumentMeta.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory.meta; 2 | 3 | import org.bukkit.MusicInstrument; 4 | import org.jetbrains.annotations.NotNull; 5 | import org.jetbrains.annotations.Nullable; 6 | 7 | public interface MusicInstrumentMeta extends ItemMeta { 8 | 9 | /** 10 | * Sets the goat horn's instrument. 11 | * 12 | * @param instrument the instrument to set 13 | */ 14 | void setInstrument(@Nullable MusicInstrument instrument); 15 | 16 | /** 17 | * Gets the instrument of the goat horn. 18 | * 19 | * @return The instrument of the goat horn 20 | */ 21 | @Nullable 22 | MusicInstrument getInstrument(); 23 | 24 | @Override 25 | @NotNull 26 | MusicInstrumentMeta clone(); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/meta/components/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Isolated components which may form part of item meta. 3 | */ 4 | @org.jetbrains.annotations.ApiStatus.Experimental 5 | package org.bukkit.inventory.meta.components; 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/meta/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于操作可以存储在{@link org.bukkit.inventory.ItemStack 物品堆}的额外数据的接口. 3 | */ 4 | package org.bukkit.inventory.meta; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory.meta.tags; 2 | 3 | import org.bukkit.persistence.PersistentDataAdapterContext; 4 | import org.bukkit.persistence.PersistentDataHolder; 5 | import org.jetbrains.annotations.NotNull; 6 | 7 | /** 8 | * This interface represents the context in which the {@link ItemTagType} can 9 | * serialize and deserialize the passed values. 10 | * 11 | * @deprecated this API part has been replaced by {@link PersistentDataHolder}. 12 | * Please use {@link PersistentDataAdapterContext} instead of this. 13 | */ 14 | @Deprecated 15 | public interface ItemTagAdapterContext { 16 | 17 | /** 18 | * Creates a new and empty tag container instance. 19 | * 20 | * @return the fresh container instance 21 | */ 22 | @NotNull 23 | CustomItemTagContainer newTagContainer(); 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/meta/tags/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 通过本包的API可允许向物品附加自定义数据. 3 | */ 4 | package org.bukkit.inventory.meta.tags; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/meta/trim/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 盔甲纹饰元数据类型。 3 | *

4 | * 原文: Armor trim meta types. 5 | */ 6 | package org.bukkit.inventory.meta.trim; 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 参与操作玩家物品栏和物品交互的类. 3 | */ 4 | package org.bukkit.inventory; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/recipe/CookingBookCategory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory.recipe; 2 | 3 | /** 4 | * Represents categories within the cooking recipe book. 5 | */ 6 | public enum CookingBookCategory { 7 | 8 | FOOD, 9 | BLOCKS, 10 | MISC; 11 | } 12 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/recipe/CraftingBookCategory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.inventory.recipe; 2 | 3 | /** 4 | * Represents categories within the crafting recipe book. 5 | */ 6 | public enum CraftingBookCategory { 7 | 8 | BUILDING, 9 | REDSTONE, 10 | EQUIPMENT, 11 | MISC; 12 | } 13 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/inventory/recipe/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * New location for recipe-related classes. 3 | */ 4 | package org.bukkit.inventory.recipe; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/loot/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与战利品表产生与操作有关的类 (Minecraft Wiki - 战利品表). 3 | */ 4 | package org.bukkit.loot; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/map/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于简化处理{@link org.bukkit.Material#MAP 3 | * 地图}显示内容的类. 4 | */ 5 | package org.bukkit.map; 6 | 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/material/Attachable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.material; 2 | 3 | import org.bukkit.block.BlockFace; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * Indicates that a block can be attached to another block 8 | */ 9 | public interface Attachable extends Directional { 10 | 11 | /** 12 | * Gets the face that this block is attached on 13 | * 14 | * @return BlockFace attached to 15 | */ 16 | @NotNull 17 | public BlockFace getAttachedFace(); 18 | } 19 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/material/Directional.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.material; 2 | 3 | import org.bukkit.block.BlockFace; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | public interface Directional { 7 | 8 | /** 9 | * Sets the direction that this block is facing in 10 | * 11 | * @param face The facing direction 12 | */ 13 | public void setFacingDirection(@NotNull BlockFace face); 14 | 15 | /** 16 | * Gets the direction this block is facing 17 | * 18 | * @return the direction this block is facing 19 | */ 20 | @NotNull 21 | public BlockFace getFacing(); 22 | } 23 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/material/FurnaceAndDispenser.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.material; 2 | 3 | import org.bukkit.Material; 4 | 5 | /** 6 | * Represents a furnace or dispenser, two types of directional containers 7 | * 8 | * @deprecated all usage of MaterialData is deprecated and subject to removal. 9 | * Use {@link org.bukkit.block.data.BlockData}. 10 | */ 11 | @Deprecated 12 | public class FurnaceAndDispenser extends DirectionalContainer { 13 | 14 | public FurnaceAndDispenser(final Material type) { 15 | super(type); 16 | } 17 | 18 | /** 19 | * @param type the type 20 | * @param data the raw data value 21 | * @deprecated Magic value 22 | */ 23 | @Deprecated 24 | public FurnaceAndDispenser(final Material type, final byte data) { 25 | super(type, data); 26 | } 27 | 28 | @Override 29 | public FurnaceAndDispenser clone() { 30 | return (FurnaceAndDispenser) super.clone(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/material/Openable.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.material; 2 | 3 | public interface Openable { 4 | 5 | /** 6 | * Check to see if the door is open. 7 | * 8 | * @return true if the door has swung counterclockwise around its hinge. 9 | */ 10 | boolean isOpen(); 11 | 12 | /** 13 | * Configure this door to be either open or closed; 14 | * 15 | * @param isOpen True to open the door. 16 | */ 17 | void setOpen(boolean isOpen); 18 | } 19 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/material/PressureSensor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.material; 2 | 3 | public interface PressureSensor { 4 | public boolean isPressed(); 5 | } 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/material/Redstone.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.material; 2 | 3 | /** 4 | * Indicated a Material that may carry or create a Redstone current 5 | */ 6 | public interface Redstone { 7 | 8 | /** 9 | * Gets the current state of this Material, indicating if it's powered or 10 | * unpowered 11 | * 12 | * @return true if powered, otherwise false 13 | */ 14 | public boolean isPowered(); 15 | } 16 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/material/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态. 3 | */ 4 | package org.bukkit.material; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/material/types/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与特定物种有关的类. 3 | */ 4 | package org.bukkit.material.types; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/metadata/MetadataConversionException.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.metadata; 2 | 3 | /** 4 | * A MetadataConversionException is thrown any time a {@link 5 | * LazyMetadataValue} attempts to convert a metadata value to an inappropriate 6 | * data type. 7 | */ 8 | @SuppressWarnings("serial") 9 | public class MetadataConversionException extends RuntimeException { 10 | MetadataConversionException(String message) { 11 | super(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/metadata/MetadataEvaluationException.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.metadata; 2 | 3 | /** 4 | * A MetadataEvaluationException is thrown any time a {@link 5 | * LazyMetadataValue} fails to evaluate its value due to an exception. The 6 | * originating exception will be included as this exception's cause. 7 | */ 8 | @SuppressWarnings("serial") 9 | public class MetadataEvaluationException extends RuntimeException { 10 | MetadataEvaluationException(Throwable cause) { 11 | super(cause); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/metadata/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于提供在每种Minecraft概念上的插件指定数据的数据层. 3 | */ 4 | package org.bukkit.metadata; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Bukkit API的顶级程序包, 包含通用的API类和接口. 3 | */ 4 | package org.bukkit; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/packs/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Classes dedicated to handling data pack information. 3 | */ 4 | package org.bukkit.packs; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/permissions/PermissionRemovedExecutor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.permissions; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * Represents a class which is to be notified when a {@link 7 | * PermissionAttachment} is removed from a {@link Permissible} 8 | */ 9 | public interface PermissionRemovedExecutor { 10 | 11 | /** 12 | * Called when a {@link PermissionAttachment} is removed from a {@link 13 | * Permissible} 14 | * 15 | * @param attachment Attachment which was removed 16 | */ 17 | public void attachmentRemoved(@NotNull PermissionAttachment attachment); 18 | } 19 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/permissions/ServerOperator.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.permissions; 2 | 3 | import org.bukkit.entity.Player; 4 | 5 | /** 6 | * 代表一个对象,可能为一个OP,例如一个{@link Player}. 7 | *

8 | * 原文:Represents an object that may become a server operator, such as a {@link 9 | * Player} 10 | */ 11 | public interface ServerOperator { 12 | 13 | /** 14 | * 检查该对象是否为OP. 15 | *

16 | * 原文:Checks if this object is a server operator 17 | * 18 | * @return 如果为OP则返回true, 否则返回false 19 | */ 20 | public boolean isOp(); 21 | 22 | /** 23 | * 设置此对象的op状态. 24 | *

25 | * 原文:Sets the operator status of this object 26 | * 27 | * @param value 新op的值(布尔值) 28 | */ 29 | public void setOp(boolean value); 30 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/permissions/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于提供玩家二态属性的类(推测二态为是管理员与不是管理员两种状态). 3 | */ 4 | package org.bukkit.permissions; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/persistence/ListPersistentDataType.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.persistence; 2 | 3 | import java.util.List; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * The list persistent data represents a data type that is capable of storing a 8 | * list of other data types in a {@link PersistentDataContainer}. 9 | * 10 | * @param

the primitive type of the list element. 11 | * @param the complex type of the list elements. 12 | */ 13 | public interface ListPersistentDataType extends PersistentDataType, List> { 14 | 15 | /** 16 | * Provides the persistent data type of the elements found in the list. 17 | * 18 | * @return the persistent data type. 19 | */ 20 | @NotNull 21 | PersistentDataType elementType(); 22 | } 23 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/persistence/PersistentDataAdapterContext.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.persistence; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * This interface represents the context in which the {@link PersistentDataType} can 7 | * serialize and deserialize the passed values. 8 | */ 9 | public interface PersistentDataAdapterContext { 10 | 11 | /** 12 | * Creates a new and empty meta container instance. 13 | * 14 | * @return the fresh container instance 15 | */ 16 | @NotNull 17 | PersistentDataContainer newPersistentDataContainer(); 18 | } 19 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/persistence/PersistentDataHolder.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.persistence; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * The {@link PersistentDataHolder} interface defines an object that can store 7 | * custom persistent meta data on it. 8 | */ 9 | public interface PersistentDataHolder { 10 | 11 | /** 12 | * Returns a custom tag container capable of storing tags on the object. 13 | * 14 | * Note that the tags stored on this container are all stored under their 15 | * own custom namespace therefore modifying default tags using this 16 | * {@link PersistentDataHolder} is impossible. 17 | * 18 | * @return the persistent metadata container 19 | */ 20 | @NotNull 21 | PersistentDataContainer getPersistentDataContainer(); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/persistence/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于向各种对象附加持久化数据的类. 3 | */ 4 | package org.bukkit.persistence; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/AuthorNagException.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin; 2 | 3 | @SuppressWarnings("serial") 4 | public class AuthorNagException extends RuntimeException { 5 | private final String message; 6 | 7 | /** 8 | * 基于所给异常来构建一个新的AuthorNagException类型错误. 9 | *

10 | * 原文:Constructs a new AuthorNagException based on the given Exception 11 | * 12 | * @param message 该错误原因的简要信息 13 | */ 14 | public AuthorNagException(final String message) { 15 | this.message = message; 16 | } 17 | 18 | @Override 19 | public String getMessage() { 20 | return message; 21 | } 22 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/EventExecutor.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin; 2 | 3 | import org.bukkit.event.Event; 4 | import org.bukkit.event.EventException; 5 | import org.bukkit.event.Listener; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * 定义了事件调用插件的类的接口。 10 | */ 11 | public interface EventExecutor { 12 | public void execute(@NotNull Listener listener, @NotNull Event event) throws EventException; 13 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/IllegalPluginAccessException.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin; 2 | 3 | /** 4 | * 当插件在未启用的状态下尝试与服务器交互时抛出异常 5 | */ 6 | @SuppressWarnings("serial") 7 | public class IllegalPluginAccessException extends RuntimeException { 8 | 9 | /** 10 | * 创建一个没有细节信息的IllegalPluginAccessException实例. 11 | */ 12 | public IllegalPluginAccessException() {} 13 | 14 | /** 15 | * 创建一个有错误细节的IllegalPluginAccessException实例. 16 | * 17 | * @param msg 细节信息 18 | */ 19 | public IllegalPluginAccessException(String msg) { 20 | super(msg); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/PluginAwareness.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin; 2 | 3 | import java.util.Set; 4 | 5 | /** 6 | * Represents a concept that a plugin is aware of. 7 | *

8 | * The internal representation may be singleton, or be a parameterized 9 | * instance, but must be immutable. 10 | */ 11 | public interface PluginAwareness { 12 | /** 13 | * Each entry here represents a particular plugin's awareness. These can 14 | * be checked by using {@link PluginDescriptionFile#getAwareness()}.{@link 15 | * Set#contains(Object) contains(flag)}. 16 | */ 17 | public enum Flags implements PluginAwareness { 18 | /** 19 | * This specifies that all (text) resources stored in a plugin's jar 20 | * use UTF-8 encoding. 21 | * 22 | * @deprecated all plugins are now assumed to be UTF-8 aware. 23 | */ 24 | @Deprecated 25 | UTF8, 26 | ; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/PluginDescriptionResolver.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin; 2 | 3 | import org.yaml.snakeyaml.nodes.Tag; 4 | import org.yaml.snakeyaml.resolver.Resolver; 5 | 6 | final class PluginDescriptionResolver extends Resolver { 7 | 8 | @Override 9 | protected void addImplicitResolvers() { 10 | addImplicitResolver(Tag.BOOL, BOOL, "yYnNtTfFoO"); 11 | // addImplicitResolver(Tag.FLOAT, FLOAT, "-+0123456789."); // Don't resolve floats. Preserve strings - SPIGOT-7370 12 | addImplicitResolver(Tag.INT, INT, "-+0123456789"); 13 | addImplicitResolver(Tag.MERGE, MERGE, "<"); 14 | addImplicitResolver(Tag.NULL, NULL, "~nN\0"); 15 | addImplicitResolver(Tag.NULL, EMPTY, null); 16 | addImplicitResolver(Tag.TIMESTAMP, TIMESTAMP, "0123456789"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/PluginLoadOrder.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin; 2 | 3 | /** 4 | * 代表插件应被初始化并启用的时机. 5 | */ 6 | public enum PluginLoadOrder { 7 | 8 | /** 9 | * 表示插件会在服务器启动时加载 10 | */ 11 | STARTUP, 12 | /** 13 | * 表示插件会在第一个/默认世界被创建/加载后加载 14 | */ 15 | POSTWORLD 16 | } 17 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/ServicePriority.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin; 2 | 3 | /** 4 | * Represents various priorities of a provider. 5 | */ 6 | public enum ServicePriority { 7 | Lowest, 8 | Low, 9 | Normal, 10 | High, 11 | Highest 12 | } 13 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/java/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用Java编写的处理{@link org.bukkit.plugin.Plugin 插件}的类. 3 | */ 4 | package org.bukkit.plugin.java; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/messaging/ChannelNameTooLongException.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin.messaging; 2 | 3 | /** 4 | * 如果插件通道(Plugin Channel)过长则抛出此异常。 5 | */ 6 | @SuppressWarnings("serial") 7 | public class ChannelNameTooLongException extends RuntimeException { 8 | public ChannelNameTooLongException() { 9 | super("Attempted to send a Plugin Message to a channel that was too large. The maximum length a channel may be is " + Messenger.MAX_CHANNEL_SIZE + " chars."); 10 | } 11 | 12 | public ChannelNameTooLongException(String channel) { 13 | super("Attempted to send a Plugin Message to a channel that was too large. The maximum length a channel may be is " + Messenger.MAX_CHANNEL_SIZE + " chars (attempted " + channel.length() + " - '" + channel + "."); 14 | } 15 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/messaging/ChannelNotRegisteredException.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin.messaging; 2 | 3 | /** 4 | * 如果插件尝试向未注册的通道发消息则抛出此异常。 5 | */ 6 | @SuppressWarnings("serial") 7 | public class ChannelNotRegisteredException extends RuntimeException { 8 | public ChannelNotRegisteredException() { 9 | this("Attempted to send a plugin message through an unregistered channel."); 10 | } 11 | 12 | public ChannelNotRegisteredException(String channel) { 13 | super("Attempted to send a plugin message through the unregistered channel `" + channel + "'."); 14 | } 15 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/messaging/PluginChannelDirection.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin.messaging; 2 | 3 | /** 4 | * 代表插件通道的不同指向。 5 | */ 6 | public enum PluginChannelDirection { 7 | 8 | /** 9 | * 插件通道正在从客户端发往服务器(正在接收). 10 | */ 11 | INCOMING, 12 | 13 | /** 14 | * 插件通道正在从服务器发往客户端(正在发送). 15 | */ 16 | OUTGOING 17 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/messaging/PluginMessageListener.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin.messaging; 2 | 3 | import org.bukkit.entity.Player; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | /** 7 | * 一个指定通道的一个监听器,将接收从客户端发送的消息的通知. 8 | */ 9 | public interface PluginMessageListener { 10 | 11 | /** 12 | * 当PluginMessageSource(插件消息源)在已注册的通道上发送了插件消息调用此方法. 13 | *

14 | * 原文:A method that will be thrown when a PluginMessageSource sends a plugin 15 | * message on a registered channel. 16 | * 17 | * @param channel 发送消息通过的通道 18 | * @param player 消息来源 19 | * @param message 发送的原始消息 20 | */ 21 | public void onPluginMessageReceived(@NotNull String channel, @NotNull Player player, @NotNull byte[] message); 22 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/messaging/ReservedChannelException.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.plugin.messaging; 2 | 3 | /** 4 | * 如果插件尝试去注册一个预留通道则抛出此异常(例如"REGISTER通道")。 5 | */ 6 | @SuppressWarnings("serial") 7 | public class ReservedChannelException extends RuntimeException { 8 | public ReservedChannelException() { 9 | this("Attempted to register for a reserved channel name."); 10 | } 11 | 12 | public ReservedChannelException(String name) { 13 | super("Attempted to register for a reserved channel name ('" + name + "')"); 14 | } 15 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/messaging/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于设定插件至客户端的消息传输协议的类. 3 | */ 4 | package org.bukkit.plugin.messaging; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/plugin/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 专门用于在运行时加载软件模组(插件)的类. 3 | */ 4 | package org.bukkit.plugin; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/potion/PotionEffectTypeCategory.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.potion; 2 | 3 | /** 4 | * Represents a category of {@link PotionEffectType} and its effect on an entity. 5 | */ 6 | public enum PotionEffectTypeCategory { 7 | 8 | /** 9 | * Beneficial effects that positively impact an entity, such as Regeneration, 10 | * Absorption, or Fire Resistance. 11 | */ 12 | BENEFICIAL, 13 | /** 14 | * Harmful effects that negatively impact an entity, such as Blindness, Wither, 15 | * or Levitation. 16 | */ 17 | HARMFUL, 18 | /** 19 | * Neutral effects that have neither a positive nor negative effect on an 20 | * entity, such as Glowing or Bad Omen. 21 | */ 22 | NEUTRAL; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/potion/PotionEffectTypeWrapper.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.potion; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | 5 | /** 6 | * @deprecated 仅为保障向后兼容性, PotionEffectTypeWrapper 已不再使用. 7 | */ 8 | @Deprecated 9 | public abstract class PotionEffectTypeWrapper extends PotionEffectType { 10 | protected PotionEffectTypeWrapper() { 11 | } 12 | 13 | /** 14 | * 获取绑定到此包装类的药水效果类型. 15 | *

16 | * 原文:Get the potion type bound to this wrapper. 17 | * 18 | * @return 药水效果类型 19 | */ 20 | @NotNull 21 | public PotionEffectType getType() { 22 | return this; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/potion/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 代表每种{@link org.bukkit.Material#POTION 药水}属性和操作的类的集合. 3 | */ 4 | package org.bukkit.potion; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/profile/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 与玩家资料有关的类. 3 | */ 4 | package org.bukkit.profile; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/projectiles/BlockProjectileSource.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.projectiles; 2 | 3 | import org.bukkit.block.Block; 4 | import org.jetbrains.annotations.NotNull; 5 | 6 | public interface BlockProjectileSource extends ProjectileSource { 7 | 8 | /** 9 | * 获取这个抛射物所属的方块。 10 | *

11 | * 原文:Gets the block this projectile source belongs to. 12 | * 13 | * @return 抛射物所属方块 14 | */ 15 | @NotNull 16 | public Block getBlock(); 17 | } -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/projectiles/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 代表一个抛射物的抛射源的类的集合. 3 | */ 4 | package org.bukkit.projectiles; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/scheduler/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于使{@link org.bukkit.plugin.Plugin 插件}以指定时间间隔运行代码的类,包括线程安全. 3 | */ 4 | package org.bukkit.scheduler; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/scoreboard/Criterias.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.scoreboard; 2 | 3 | /** 4 | * 计分板部分准则名称的常量. 准则可触发计分项数据的修改 (生命、击杀信息、死亡次数等). 5 | * 6 | * @deprecated 应使用 {@link Criteria} 内定义的常量 7 | */ 8 | @Deprecated 9 | public final class Criterias { 10 | 11 | public static final String HEALTH = "health"; 12 | public static final String PLAYER_KILLS = "playerKillCount"; 13 | public static final String TOTAL_KILLS = "totalKillCount"; 14 | public static final String DEATHS = "deathCount"; 15 | 16 | private Criterias() {} 17 | } 18 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/scoreboard/DisplaySlot.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.scoreboard; 2 | 3 | /** 4 | * 计分项显示的位置. 5 | */ 6 | public enum DisplaySlot { 7 | BELOW_NAME, 8 | PLAYER_LIST, 9 | SIDEBAR, 10 | SIDEBAR_BLACK, 11 | SIDEBAR_DARK_BLUE, 12 | SIDEBAR_DARK_GREEN, 13 | SIDEBAR_DARK_AQUA, 14 | SIDEBAR_DARK_RED, 15 | SIDEBAR_DARK_PURPLE, 16 | SIDEBAR_GOLD, 17 | SIDEBAR_GRAY, 18 | SIDEBAR_DARK_GRAY, 19 | SIDEBAR_BLUE, 20 | SIDEBAR_GREEN, 21 | SIDEBAR_AQUA, 22 | SIDEBAR_RED, 23 | SIDEBAR_LIGHT_PURPLE, 24 | SIDEBAR_YELLOW, 25 | SIDEBAR_WHITE; 26 | } 27 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/scoreboard/NameTagVisibility.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.scoreboard; 2 | 3 | /** 4 | * @deprecated 被 {@link Team.OptionStatus} 取代 5 | */ 6 | @Deprecated 7 | public enum NameTagVisibility { 8 | 9 | /** 10 | * 一直显示玩家名称. 11 | *

12 | * 原文: 13 | * Always show the player's nametag. 14 | */ 15 | ALWAYS, 16 | /** 17 | * 不显示玩家名称. 18 | *

19 | * 原文: 20 | * Never show the player's nametag. 21 | */ 22 | NEVER, 23 | /** 24 | * 玩家名仅显示给同队队友. 25 | *

26 | * 原文: 27 | * Show the player's nametag only to his own team members. 28 | */ 29 | HIDE_FOR_OTHER_TEAMS, 30 | /** 31 | * 玩家名仅显示给其他队伍的成员. 32 | *

33 | * 原文: 34 | * Show the player's nametag only to members of other teams. 35 | */ 36 | HIDE_FOR_OWN_TEAM; 37 | } 38 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/scoreboard/RenderType.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.scoreboard; 2 | 3 | /** 4 | * 控制{@link Objective 计分项}在客户端的渲染方式. 5 | */ 6 | public enum RenderType { 7 | 8 | /** 9 | * 显示为整数值. 10 | */ 11 | INTEGER, 12 | /** 13 | * 显示为对应数量的红心. 14 | */ 15 | HEARTS; 16 | } 17 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/scoreboard/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于管理客户端计分板显示系统的类. 3 | */ 4 | package org.bukkit.scoreboard; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/spawner/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Classes related to entity spawners. 3 | */ 4 | package org.bukkit.spawner; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/structure/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Classes related to creating or using {@link org.bukkit.structure.Structure 3 | * structures} without creating {@link org.bukkit.block.Structure Structure 4 | * blocks} in the world. 5 | */ 6 | package org.bukkit.structure; 7 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/util/BiomeSearchResult.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.util; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.World; 5 | import org.bukkit.block.Biome; 6 | import org.jetbrains.annotations.NotNull; 7 | 8 | /** 9 | * Holds the result of searching for a biome. 10 | * 11 | * @see World#locateNearestBiome(Location, int, Biome...) 12 | * @see World#locateNearestBiome(Location, int, int, int, Biome...) 13 | */ 14 | public interface BiomeSearchResult { 15 | 16 | /** 17 | * Return the biome which was found. 18 | * 19 | * @return the found biome. 20 | */ 21 | @NotNull 22 | Biome getBiome(); 23 | 24 | /** 25 | * Return the location of the biome. 26 | * 27 | * @return the location the biome was found. 28 | */ 29 | @NotNull 30 | Location getLocation(); 31 | } 32 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/util/CachedServerIcon.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.util; 2 | 3 | import org.bukkit.Server; 4 | import org.bukkit.event.server.ServerListPingEvent; 5 | 6 | /** 7 | * 这表示一个缓存版的服务器图标。这只是内部表示,还未实现。 8 | *

9 | * 原文:This is a cached version of a server-icon. It's internal representation 10 | * and implementation is undefined. 11 | * 12 | * @see Server#getServerIcon() 13 | * @see Server#loadServerIcon(java.awt.image.BufferedImage) 14 | * @see Server#loadServerIcon(java.io.File) 15 | * @see ServerListPingEvent#setServerIcon(CachedServerIcon) 16 | */ 17 | public interface CachedServerIcon {} -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/util/Consumer.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.util; 2 | 3 | /** 4 | * 表示接受一个输入参数且没有返回值的操作. 5 | *

6 | * 原文:Represents an operation that accepts a single input argument and returns no 7 | * result. 8 | * 9 | * @param 输入参数类型 10 | * @deprecated 请使用 {@link java.util.function.Consumer} 11 | */ 12 | // Bukkit developer note (NOT plugin developers): 13 | // NEVER use this consumer in the API. 14 | // API methods which use this consumer will be remapped to Java's consumer at runtime, resulting in an error. 15 | @Deprecated 16 | public interface Consumer extends java.util.function.Consumer { 17 | 18 | /** 19 | * 使用给定的参数执行操作. 20 | *

21 | * 原文:Performs this operation on the given argument. 22 | * 23 | * @param t 输入参数 24 | */ 25 | @Override 26 | void accept(T t); 27 | } 28 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/util/StructureSearchResult.java: -------------------------------------------------------------------------------- 1 | package org.bukkit.util; 2 | 3 | import org.bukkit.Location; 4 | import org.bukkit.World; 5 | import org.bukkit.generator.structure.Structure; 6 | import org.bukkit.generator.structure.StructureType; 7 | import org.jetbrains.annotations.NotNull; 8 | 9 | /** 10 | * Holds the result of searching for a structure. 11 | * 12 | * @see World#locateNearestStructure(Location, Structure, int, boolean) 13 | * @see World#locateNearestStructure(Location, StructureType, int, boolean) 14 | */ 15 | public interface StructureSearchResult { 16 | 17 | /** 18 | * Return the structure which was found. 19 | * 20 | * @return the found structure. 21 | */ 22 | @NotNull 23 | Structure getStructure(); 24 | 25 | /** 26 | * Return the location of the structure. 27 | * 28 | * @return the location the structure was found. 29 | */ 30 | @NotNull 31 | Location getLocation(); 32 | } 33 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/util/io/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 用于处理Bukkit对象流的相关类. 3 | */ 4 | package org.bukkit.util.io; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/util/noise/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 噪声相关工具. 3 | */ 4 | package org.bukkit.util.noise; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/util/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 提供多种目的和单一目的的类以简化各种编程概念. 3 | */ 4 | package org.bukkit.util; 5 | 6 | -------------------------------------------------------------------------------- /BukkitApi/org/bukkit/util/permissions/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 为{@link org.bukkit.permissions.Permission 3 | * permission}杂项功能提供的静态方法. 4 | */ 5 | package org.bukkit.util.permissions; 6 | 7 | -------------------------------------------------------------------------------- /BukkitApi/org/spigotmc/event/player/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Spigot特有的玩家事件. 3 | */ 4 | package org.spigotmc.event.player; 5 | -------------------------------------------------------------------------------- /BukkitApi/org/spigotmc/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Spigot特有的类. 3 | */ 4 | package org.spigotmc; 5 | -------------------------------------------------------------------------------- /Chinese_BukkitAPI.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BukkitAPI-Translation-Group/Chinese_BukkitAPI/1980c0479ff802a5cee0a18321adba275bf4d2d0/Chinese_BukkitAPI.png -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 1.21 -------------------------------------------------------------------------------- /bungee-chat-api/net/md_5/bungee/api/ChatMessageType.java: -------------------------------------------------------------------------------- 1 | package net.md_5.bungee.api; 2 | 3 | /** 4 | * 代表消息在屏幕出现的位置(直接理解为消息类型即可) 5 | */ 6 | public enum ChatMessageType 7 | { 8 | 9 | 10 | CHAT, 11 | SYSTEM, 12 | ACTION_BAR 13 | } 14 | -------------------------------------------------------------------------------- /bungee-chat-api/net/md_5/bungee/api/chat/hover/content/Item.java: -------------------------------------------------------------------------------- 1 | package net.md_5.bungee.api.chat.hover.content; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.EqualsAndHashCode; 6 | import lombok.ToString; 7 | import net.md_5.bungee.api.chat.HoverEvent; 8 | import net.md_5.bungee.api.chat.ItemTag; 9 | 10 | @Data 11 | @AllArgsConstructor 12 | @ToString 13 | @EqualsAndHashCode(callSuper = false) 14 | public class Item extends Content 15 | { 16 | 17 | /** 18 | * Namespaced item ID. Will use 'minecraft:air' if null. 19 | */ 20 | private String id; 21 | /** 22 | * Optional. Size of the item stack. 23 | */ 24 | private int count = -1; 25 | /** 26 | * Optional. Item tag. 27 | */ 28 | private ItemTag tag; 29 | 30 | @Override 31 | public HoverEvent.Action requiredAction() 32 | { 33 | return HoverEvent.Action.SHOW_ITEM; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /javadoc/annotations/element-list: -------------------------------------------------------------------------------- 1 | org.intellij.lang.annotations 2 | org.jetbrains.annotations 3 | -------------------------------------------------------------------------------- /javadoc/guava/element-list: -------------------------------------------------------------------------------- 1 | com.google.common.annotations 2 | com.google.common.base 3 | com.google.common.cache 4 | com.google.common.collect 5 | com.google.common.escape 6 | com.google.common.eventbus 7 | com.google.common.graph 8 | com.google.common.hash 9 | com.google.common.html 10 | com.google.common.io 11 | com.google.common.math 12 | com.google.common.net 13 | com.google.common.primitives 14 | com.google.common.reflect 15 | com.google.common.util.concurrent 16 | com.google.common.xml 17 | -------------------------------------------------------------------------------- /javadoc/snakeyaml/element-list: -------------------------------------------------------------------------------- 1 | org.yaml.snakeyaml 2 | org.yaml.snakeyaml.comments 3 | org.yaml.snakeyaml.composer 4 | org.yaml.snakeyaml.constructor 5 | org.yaml.snakeyaml.emitter 6 | org.yaml.snakeyaml.env 7 | org.yaml.snakeyaml.error 8 | org.yaml.snakeyaml.events 9 | org.yaml.snakeyaml.extensions.compactnotation 10 | org.yaml.snakeyaml.introspector 11 | org.yaml.snakeyaml.nodes 12 | org.yaml.snakeyaml.parser 13 | org.yaml.snakeyaml.reader 14 | org.yaml.snakeyaml.representer 15 | org.yaml.snakeyaml.resolver 16 | org.yaml.snakeyaml.scanner 17 | org.yaml.snakeyaml.serializer 18 | org.yaml.snakeyaml.tokens 19 | org.yaml.snakeyaml.util 20 | -------------------------------------------------------------------------------- /l10n-patch-standard.properties: -------------------------------------------------------------------------------- 1 | # Javadoc 缺失译文补丁 2 | # 插桩程序可利用此文本添加对应的译文 3 | # 为了使用便捷, 插桩程序使用 UTF-8 编码读取此文本, 这样就不需要转 Unicode 了. 4 | # 本补丁作用于 jdk.javadoc.internal.doclets.formats.html.resources.standard_zh_CN 5 | 6 | doclet.help.navigation.head=导航栏 7 | doclet.navPages=页面 8 | doclet.navClassesAndInterfaces=类和接口 9 | doclet.help.all_classes.head=所有类和接口 10 | doclet.Package_Sub_Nav=程序包: 11 | doclet.navNavigation=导航栏 12 | doclet.navDescription=说明 13 | doclet.help.page_kinds.head=页面 14 | doclet.help.all_packages.head=所有程序包 15 | doclet.Help_Sub_Nav=帮助: --------------------------------------------------------------------------------