├── src ├── test │ └── resources │ │ ├── test.txt │ │ ├── zippables │ │ ├── test.txt │ │ └── inner │ │ │ └── test.txt │ │ ├── test.zip │ │ ├── testNested.zip │ │ └── unbalancedRTLSource.ms ├── main │ ├── resources │ │ ├── local_packages │ │ │ ├── CHMarquee │ │ │ │ ├── test │ │ │ │ │ └── test.txt │ │ │ │ └── main.ms │ │ │ └── CGIBin │ │ │ │ └── styles.css │ │ ├── templates │ │ │ └── new-type-templates │ │ │ │ ├── enum.ms │ │ │ │ ├── class.ms │ │ │ │ ├── interface.ms │ │ │ │ ├── annotation.ms │ │ │ │ ├── all.ms │ │ │ │ └── native-all.ms │ │ ├── function_impl │ │ │ ├── string_contains.ms │ │ │ ├── string_contains_ic.ms │ │ │ ├── array_push_all.ms │ │ │ └── hypot.ms │ │ ├── interpreter-helpers │ │ │ ├── modules │ │ │ ├── csharp │ │ │ │ ├── setup.exe │ │ │ │ └── Application Files │ │ │ │ │ └── mscript_0_0_0_1 │ │ │ │ │ ├── mscript.exe.deploy │ │ │ │ │ ├── commandhelper_icon.ico.deploy │ │ │ │ │ └── mscript.exe.config.deploy │ │ │ ├── windows │ │ │ │ └── mscript.exe │ │ │ └── sample.ms │ │ ├── siteDeploy │ │ │ ├── resources │ │ │ │ ├── images │ │ │ │ │ ├── banner.jpg │ │ │ │ │ ├── gears.gif │ │ │ │ │ ├── pic05.jpg │ │ │ │ │ ├── pic06.jpg │ │ │ │ │ ├── pic07.jpg │ │ │ │ │ ├── pic08.jpg │ │ │ │ │ ├── pic09.jpg │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── ParseTree.png │ │ │ │ │ ├── clipboard.png │ │ │ │ │ ├── search-icon.png │ │ │ │ │ ├── CommandHelper_Icon.bmp │ │ │ │ │ ├── CommandHelper_Icon.png │ │ │ │ │ ├── commandhelper_icon.ico │ │ │ │ │ ├── CommandHelper_Logo_New.png │ │ │ │ │ ├── CommandHelper_IconAnimated.gif │ │ │ │ │ ├── CommandHelper_IconHighRes.png │ │ │ │ │ ├── CommandHelper_Logo_Sprite.bmp │ │ │ │ │ ├── CommandHelper_IconHighRes_Sprite.bmp │ │ │ │ │ └── Developer_Environment │ │ │ │ │ │ ├── ScreenshotAutoComplete.png │ │ │ │ │ │ └── ScreenshotErrorDetection.png │ │ │ │ ├── css │ │ │ │ │ ├── images │ │ │ │ │ │ └── overlay.png │ │ │ │ │ ├── style-xlarge.css │ │ │ │ │ ├── ie │ │ │ │ │ │ └── v8.css │ │ │ │ │ └── style-large.css │ │ │ │ └── fonts │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ └── fontawesome-webfont.woff │ │ │ ├── FrontPage │ │ │ └── DocDirectory │ │ ├── com │ │ │ └── laytonsmith │ │ │ │ └── tools │ │ │ │ ├── pnviewer │ │ │ │ └── GearIcon.png │ │ │ │ └── docgen │ │ │ │ └── localization │ │ │ │ ├── GearIcon.png │ │ │ │ ├── git_icon16x16.png │ │ │ │ ├── help_icon16x16.png │ │ │ │ ├── github_icon16x16.png │ │ │ │ ├── cognitive_services_logo16x16.png │ │ │ │ └── AboutDialog.html │ │ ├── samp_persistence_network.txt │ │ ├── time_names.txt │ │ ├── apps.methodscript.com │ │ │ ├── README.md │ │ │ └── package.json │ │ ├── docs │ │ │ ├── Optimizer │ │ │ └── Help │ │ └── samp_profiles.xml │ ├── java │ │ └── com │ │ │ └── laytonsmith │ │ │ ├── abstraction │ │ │ ├── MCComplexRecipe.java │ │ │ ├── blocks │ │ │ │ ├── MCChest.java │ │ │ │ ├── MCDropper.java │ │ │ │ ├── MCContainer.java │ │ │ │ ├── MCBlockData.java │ │ │ │ ├── MCBlockProjectileSource.java │ │ │ │ ├── MCLectern.java │ │ │ │ ├── MCCommandBlock.java │ │ │ │ ├── MCDispenser.java │ │ │ │ ├── MCBeehive.java │ │ │ │ ├── MCFurnace.java │ │ │ │ ├── MCBrewingStand.java │ │ │ │ ├── MCEndGateway.java │ │ │ │ ├── MCBanner.java │ │ │ │ ├── MCBeacon.java │ │ │ │ ├── MCDecoratedPot.java │ │ │ │ └── MCBlockState.java │ │ │ ├── entities │ │ │ │ ├── MCHusk.java │ │ │ │ ├── MCBogged.java │ │ │ │ ├── MCDrowned.java │ │ │ │ ├── MCMule.java │ │ │ │ ├── MCSniffer.java │ │ │ │ ├── MCStray.java │ │ │ │ ├── MCZoglin.java │ │ │ │ ├── MCDonkey.java │ │ │ │ ├── MCHoglin.java │ │ │ │ ├── MCOcelot.java │ │ │ │ ├── MCFishHook.java │ │ │ │ ├── MCLlamaSpit.java │ │ │ │ ├── MCMagmaCube.java │ │ │ │ ├── MCElderGuardian.java │ │ │ │ ├── MCWanderingTrader.java │ │ │ │ ├── MCWitherSkeleton.java │ │ │ │ ├── MCZombieHorse.java │ │ │ │ ├── MCGlowItemFrame.java │ │ │ │ ├── MCSkeletonHorse.java │ │ │ │ ├── MCEnderDragonPart.java │ │ │ │ ├── MCPufferfish.java │ │ │ │ ├── MCEvoker.java │ │ │ │ ├── MCGoat.java │ │ │ │ ├── MCTadpole.java │ │ │ │ ├── MCWarden.java │ │ │ │ ├── MCWitch.java │ │ │ │ ├── MCAllay.java │ │ │ │ ├── MCCamel.java │ │ │ │ ├── MCGuardian.java │ │ │ │ ├── MCSkeleton.java │ │ │ │ ├── MCVindicator.java │ │ │ │ ├── MCPillager.java │ │ │ │ ├── MCStrider.java │ │ │ │ ├── MCPig.java │ │ │ │ ├── MCPiglinBrute.java │ │ │ │ ├── MCChestBoat.java │ │ │ │ ├── MCWitherSkull.java │ │ │ │ ├── MCPiglin.java │ │ │ │ ├── MCVehicle.java │ │ │ │ ├── MCZombie.java │ │ │ │ ├── MCLightningStrike.java │ │ │ │ ├── MCHopperMinecart.java │ │ │ │ ├── MCStorageMinecart.java │ │ │ │ ├── MCChestedHorse.java │ │ │ │ ├── MCPhantom.java │ │ │ │ ├── MCComplexEntityPart.java │ │ │ │ ├── MCVex.java │ │ │ │ ├── MCSlime.java │ │ │ │ ├── MCMannequin.java │ │ │ │ ├── MCSnowman.java │ │ │ │ ├── MCExperienceOrb.java │ │ │ │ ├── MCPigZombie.java │ │ │ │ ├── MCFireball.java │ │ │ │ ├── MCThrownPotion.java │ │ │ │ ├── MCMushroomCow.java │ │ │ │ ├── MCRabbit.java │ │ │ │ ├── MCShulkerBullet.java │ │ │ │ ├── MCBreedable.java │ │ │ │ ├── MCAnimal.java │ │ │ │ ├── MCBlockDisplay.java │ │ │ │ ├── MCComplexLivingEntity.java │ │ │ │ ├── MCIronGolem.java │ │ │ │ ├── MCTrader.java │ │ │ │ ├── MCPainting.java │ │ │ │ ├── MCZombieVillager.java │ │ │ │ ├── MCEnderDragon.java │ │ │ │ ├── MCEvokerFangs.java │ │ │ │ ├── MCTNT.java │ │ │ │ ├── MCBoat.java │ │ │ │ ├── MCShulker.java │ │ │ │ ├── MCItemProjectile.java │ │ │ │ ├── MCSheep.java │ │ │ │ ├── MCTameable.java │ │ │ │ ├── MCSalmon.java │ │ │ │ ├── MCTrident.java │ │ │ │ ├── MCAxolotl.java │ │ │ │ ├── MCParrot.java │ │ │ │ ├── MCAgeable.java │ │ │ │ ├── MCCommandMinecart.java │ │ │ │ ├── MCFox.java │ │ │ │ ├── MCLlama.java │ │ │ │ ├── MCVillager.java │ │ │ │ ├── MCOminousItemSpawner.java │ │ │ │ ├── MCFirework.java │ │ │ │ ├── MCHanging.java │ │ │ │ ├── MCEnderCrystal.java │ │ │ │ ├── MCFallingBlock.java │ │ │ │ ├── MCSpectralArrow.java │ │ │ │ ├── MCCreeper.java │ │ │ │ ├── MCTransformation.java │ │ │ │ ├── MCCat.java │ │ │ │ ├── MCFrog.java │ │ │ │ ├── MCProjectile.java │ │ │ │ └── MCBee.java │ │ │ ├── enums │ │ │ │ ├── MCWeather.java │ │ │ │ ├── MCResult.java │ │ │ │ ├── MCPotionAction.java │ │ │ │ ├── MCEquipmentSlotGroup.java │ │ │ │ ├── MCPigType.java │ │ │ │ ├── MCAction.java │ │ │ │ ├── MCZombieType.java │ │ │ │ ├── MCCreeperType.java │ │ │ │ ├── MCUnleashReason.java │ │ │ │ ├── MCFoxType.java │ │ │ │ ├── MCDragType.java │ │ │ │ ├── MCCollisionType.java │ │ │ │ ├── MCMushroomCowType.java │ │ │ │ ├── MCTone.java │ │ │ │ ├── MCRegainReason.java │ │ │ │ ├── MCItemRarity.java │ │ │ │ ├── MCAxolotlType.java │ │ │ │ ├── MCGameMode.java │ │ │ │ ├── MCParrotType.java │ │ │ │ ├── MCWorldType.java │ │ │ │ ├── MCOption.java │ │ │ │ ├── MCFireworkType.java │ │ │ │ ├── MCOptionStatus.java │ │ │ │ ├── MCWorldEnvironment.java │ │ │ │ ├── MCBarColor.java │ │ │ │ ├── MCRemoveCause.java │ │ │ │ ├── MCBarStyle.java │ │ │ │ ├── MCRabbitType.java │ │ │ │ ├── MCEquipmentSlot.java │ │ │ │ ├── MCIgniteCause.java │ │ │ │ ├── MCFishingState.java │ │ │ │ ├── MCTreeSpecies.java │ │ │ │ ├── MCRotation.java │ │ │ │ ├── MCCatType.java │ │ │ │ ├── MCEnderDragonPhase.java │ │ │ │ ├── MCRecipeType.java │ │ │ │ ├── MCSoundCategory.java │ │ │ │ ├── MCEnterBedResult.java │ │ │ │ ├── MCResourcePackStatus.java │ │ │ │ ├── MCTeleportCause.java │ │ │ │ ├── MCDyeColor.java │ │ │ │ ├── MCDifficulty.java │ │ │ │ └── MCPose.java │ │ │ ├── MCNamespacedKey.java │ │ │ ├── MCConsoleCommandSender.java │ │ │ ├── events │ │ │ │ ├── MCWorldLoadEvent.java │ │ │ │ ├── MCWorldSaveEvent.java │ │ │ │ ├── MCWorldUnloadEvent.java │ │ │ │ ├── MCPlayerBucketEmptyEvent.java │ │ │ │ ├── MCPlayerBucketFillEvent.java │ │ │ │ ├── MCBlockPistonExtendEvent.java │ │ │ │ ├── MCBlockPistonRetractEvent.java │ │ │ │ ├── MCThunderChangeEvent.java │ │ │ │ ├── MCWeatherChangeEvent.java │ │ │ │ ├── MCEntityToggleSwimEvent.java │ │ │ │ ├── MCItemHeldEvent.java │ │ │ │ ├── MCExpChangeEvent.java │ │ │ │ ├── MCPlayerQuitEvent.java │ │ │ │ ├── MCPlayerJoinEvent.java │ │ │ │ ├── MCBlockFadeEvent.java │ │ │ │ ├── MCBlockFormEvent.java │ │ │ │ ├── MCPlayerLeaveBedEvent.java │ │ │ │ ├── MCVehicleDestroyEvent.java │ │ │ │ ├── MCVehicleEnterExitEvent.java │ │ │ │ ├── MCInventoryOpenEvent.java │ │ │ │ ├── MCInventoryCloseEvent.java │ │ │ │ ├── MCEntityDamageByEntityEvent.java │ │ │ │ ├── MCVehicleBlockCollideEvent.java │ │ │ │ ├── MCVehicleCollideEvent.java │ │ │ │ ├── MCWorldChangedEvent.java │ │ │ │ ├── MCPlayerInteractAtEntityEvent.java │ │ │ │ ├── MCPlayerStopUsingItemEvent.java │ │ │ │ ├── MCPlayerToggleFlightEvent.java │ │ │ │ ├── MCPlayerToggleSneakEvent.java │ │ │ │ ├── MCPlayerToggleSprintEvent.java │ │ │ │ ├── MCWorldEvent.java │ │ │ │ ├── MCBlockEvent.java │ │ │ │ ├── MCPlayerEvent.java │ │ │ │ ├── MCVehicleEvent.java │ │ │ │ ├── MCWeatherEvent.java │ │ │ │ ├── MCPlayerAdvancementDoneEvent.java │ │ │ │ ├── MCPlayerCommandEvent.java │ │ │ │ ├── MCFireworkExplodeEvent.java │ │ │ │ ├── MCNotePlayEvent.java │ │ │ │ ├── MCPlayerResourcePackEvent.java │ │ │ │ ├── MCBlockBurnEvent.java │ │ │ │ ├── MCPrepareAnvilEvent.java │ │ │ │ ├── MCRedstoneChangedEvent.java │ │ │ │ ├── MCPlayerEnterBedEvent.java │ │ │ │ ├── MCPrepareSmithingEvent.java │ │ │ │ ├── MCPrepareGrindstoneEvent.java │ │ │ │ ├── MCBlockGrowEvent.java │ │ │ │ ├── MCPluginIncomingMessageEvent.java │ │ │ │ ├── MCEntityEvent.java │ │ │ │ ├── MCItemSpawnEvent.java │ │ │ │ ├── MCPlayerKickEvent.java │ │ │ │ ├── MCPlayerMoveEvent.java │ │ │ │ ├── MCVehicleMoveEvent.java │ │ │ │ ├── MCItemDespawnEvent.java │ │ │ │ ├── MCItemSwapEvent.java │ │ │ │ ├── MCEntityEnterPortalEvent.java │ │ │ │ ├── MCServerCommandEvent.java │ │ │ │ ├── MCEntityUnleashEvent.java │ │ │ │ ├── MCGamemodeChangeEvent.java │ │ │ │ ├── MCPlayerItemConsumeEvent.java │ │ │ │ ├── MCBlockExplodeEvent.java │ │ │ │ ├── MCPlayerPortalEvent.java │ │ │ │ ├── MCProjectileLaunchEvent.java │ │ │ │ ├── MCPlayerLoginEvent.java │ │ │ │ ├── MCEntityToggleGlideEvent.java │ │ │ │ ├── MCPlayerDropItemEvent.java │ │ │ │ ├── MCPlayerInteractEntityEvent.java │ │ │ │ ├── MCPlayerEditBookEvent.java │ │ │ │ ├── MCVehicleEntityCollideEvent.java │ │ │ │ ├── MCLightningStrikeEvent.java │ │ │ │ ├── MCPlayerPickupItemEvent.java │ │ │ │ ├── MCEntityInteractEvent.java │ │ │ │ ├── MCPlayerChatEvent.java │ │ │ │ ├── MCPrepareItemCraftEvent.java │ │ │ │ ├── MCEntityRegainHealthEvent.java │ │ │ │ ├── MCHangingBreakEvent.java │ │ │ │ ├── MCInventoryInteractEvent.java │ │ │ │ ├── MCPlayerRespawnEvent.java │ │ │ │ ├── MCBlockDispenseEvent.java │ │ │ │ ├── MCEntityDamageEvent.java │ │ │ │ ├── MCBlockFromToEvent.java │ │ │ │ ├── MCBlockIgniteEvent.java │ │ │ │ └── MCInventoryEvent.java │ │ │ ├── MCColorableArmorMeta.java │ │ │ ├── MCDoubleChest.java │ │ │ ├── MCVirtualInventoryHolder.java │ │ │ ├── MCInventoryHolder.java │ │ │ ├── pluginmessages │ │ │ │ ├── MCPluginMessageListenerRegistration.java │ │ │ │ └── MCMessenger.java │ │ │ ├── MCRemoteCommandSender.java │ │ │ ├── MCLeashable.java │ │ │ ├── MCMusicInstrumentMeta.java │ │ │ ├── MCBundleMeta.java │ │ │ ├── MCOminousBottleMeta.java │ │ │ ├── MCAnimalTamer.java │ │ │ ├── MCBlockCommandSender.java │ │ │ ├── MCPlugin.java │ │ │ ├── MCChunk.java │ │ │ ├── MCScore.java │ │ │ ├── MCSmithingRecipe.java │ │ │ ├── MCPluginManager.java │ │ │ ├── MCNote.java │ │ │ ├── MCFireworkEffectMeta.java │ │ │ ├── MCPlayerInput.java │ │ │ ├── MCCooldownComponent.java │ │ │ ├── MCMapMeta.java │ │ │ ├── MCPotionData.java │ │ │ ├── MCAxolotlBucketMeta.java │ │ │ ├── MCCrossbowMeta.java │ │ │ ├── MCKnowledgeBookMeta.java │ │ │ ├── MCCompassMeta.java │ │ │ ├── MCPattern.java │ │ │ ├── MCRecipe.java │ │ │ ├── MCCraftingInventory.java │ │ │ ├── bukkit │ │ │ │ ├── entities │ │ │ │ │ ├── BukkitMCHoglin.java │ │ │ │ │ ├── BukkitMCMule.java │ │ │ │ │ ├── BukkitMCHusk.java │ │ │ │ │ ├── BukkitMCDonkey.java │ │ │ │ │ ├── BukkitMCWitch.java │ │ │ │ │ ├── BukkitMCEvoker.java │ │ │ │ │ ├── BukkitMCStray.java │ │ │ │ │ ├── BukkitMCTrader.java │ │ │ │ │ ├── BukkitMCBogged.java │ │ │ │ │ ├── BukkitMCDrowned.java │ │ │ │ │ ├── BukkitMCVindicator.java │ │ │ │ │ ├── BukkitMCZombieHorse.java │ │ │ │ │ ├── BukkitMCElderGuardian.java │ │ │ │ │ ├── BukkitMCGlowItemFrame.java │ │ │ │ │ ├── BukkitMCSkeletonHorse.java │ │ │ │ │ ├── BukkitMCWitherSkeleton.java │ │ │ │ │ ├── BukkitMCSniffer.java │ │ │ │ │ ├── BukkitMCVehicle.java │ │ │ │ │ ├── BukkitMCFishHook.java │ │ │ │ │ ├── BukkitMCGuardian.java │ │ │ │ │ ├── BukkitMCLlamaSpit.java │ │ │ │ │ └── BukkitMCZoglin.java │ │ │ │ └── BukkitMCConsoleCommandSender.java │ │ │ ├── MCFoodComponent.java │ │ │ ├── MCStonecuttingRecipe.java │ │ │ ├── MCGrindstoneInventory.java │ │ │ ├── MCMerchant.java │ │ │ ├── MCFireworkMeta.java │ │ │ ├── MCBlockStateMeta.java │ │ │ ├── MCPlayerProfile.java │ │ │ ├── MCArmorMeta.java │ │ │ ├── MCEnchantmentOffer.java │ │ │ ├── MCFireworkEffect.java │ │ │ ├── MCShapelessRecipe.java │ │ │ ├── MCMetadatable.java │ │ │ ├── MCLeatherArmorMeta.java │ │ │ ├── MCFurnaceInventory.java │ │ │ ├── MCMetadataValue.java │ │ │ ├── MCProjectileSource.java │ │ │ ├── MCCookingRecipe.java │ │ │ ├── MCBannerMeta.java │ │ │ ├── MCCommandSender.java │ │ │ ├── MCSmithingInventory.java │ │ │ ├── MCMerchantRecipe.java │ │ │ ├── MCShapedRecipe.java │ │ │ └── MCSkullMeta.java │ │ │ ├── core │ │ │ ├── arguments │ │ │ │ ├── ArgumentBuilder.java │ │ │ │ ├── Argument.java │ │ │ │ └── Signature.java │ │ │ ├── webserver │ │ │ │ └── ServerNotRunningException.java │ │ │ ├── telemetry │ │ │ │ ├── LogTelemetryValue.java │ │ │ │ └── MetricTelemetryValue.java │ │ │ ├── asm │ │ │ │ ├── IRReturnCategory.java │ │ │ │ └── AsmCommonLib.java │ │ │ ├── MainSandbox.java │ │ │ ├── GenericTreeTraversalOrderEnum.java │ │ │ ├── NotInitializedYetException.java │ │ │ ├── mobjects │ │ │ │ └── MObject.java │ │ │ ├── natives │ │ │ │ └── interfaces │ │ │ │ │ ├── MList.java │ │ │ │ │ ├── MMap.java │ │ │ │ │ ├── MAnnotation.java │ │ │ │ │ ├── Commentable.java │ │ │ │ │ └── AbstractMixedClass.java │ │ │ ├── constructs │ │ │ │ └── Auto.java │ │ │ ├── exceptions │ │ │ │ ├── LoopBreakException.java │ │ │ │ ├── LoopContinueException.java │ │ │ │ ├── CancelCommandException.java │ │ │ │ └── FunctionReturnException.java │ │ │ ├── functions │ │ │ │ └── CompiledFunction.java │ │ │ ├── events │ │ │ │ ├── AbstractEvent.java │ │ │ │ ├── CancellableEvent.java │ │ │ │ └── BindableEvent.java │ │ │ ├── compiler │ │ │ │ ├── analysis │ │ │ │ │ └── Namespace.java │ │ │ │ └── KeywordDocumentation.java │ │ │ ├── MethodScriptComplete.java │ │ │ ├── extensions │ │ │ │ └── MSExtension.java │ │ │ └── taskmanager │ │ │ │ └── TaskStateChangeListener.java │ │ │ ├── PureUtilities │ │ │ ├── Web │ │ │ │ └── HTTPMethod.java │ │ │ ├── MSP │ │ │ │ └── MSPUtil.java │ │ │ └── VirtualFS │ │ │ │ └── PermissionException.java │ │ │ └── tools │ │ │ └── docgen │ │ │ ├── localization │ │ │ ├── TextDirection.java │ │ │ └── ResultType.java │ │ │ └── templates │ │ │ ├── SQL.java │ │ │ ├── Arrays.java │ │ │ ├── Loops.java │ │ │ ├── Closures.java │ │ │ ├── Profiles.java │ │ │ ├── Variables.java │ │ │ ├── Exceptions.java │ │ │ ├── Logic.java │ │ │ ├── ArrayIteration.java │ │ │ └── PersistenceNetwork.java │ └── methodscript │ │ ├── native_sources.code-workspace │ │ └── ms │ │ └── lang │ │ ├── Iterable.ms │ │ ├── validators │ │ ├── Positive.ms │ │ ├── Negative.ms │ │ ├── NonZero.ms │ │ ├── NonNegative.ms │ │ ├── NonPositive.ms │ │ └── MinLength.ms │ │ ├── JsonSerializer │ │ ├── Required.ms │ │ └── Recommended.ms │ │ ├── Equals.ms │ │ └── Sizeable.ms └── installer │ └── Windows │ ├── MethodScriptInstaller.exe │ └── README.md ├── mustacheTemplates ├── settings.gradle.mustache ├── gradle.properties.mustache ├── beanValidationQueryParams.mustache ├── libraries │ ├── retrofit │ │ ├── cookieParams.mustache │ │ ├── bodyParams.mustache │ │ ├── pathParams.mustache │ │ ├── queryParams.mustache │ │ ├── headerParams.mustache │ │ └── formParams.mustache │ ├── retrofit2 │ │ ├── cookieParams.mustache │ │ ├── bodyParams.mustache │ │ ├── pathParams.mustache │ │ ├── queryParams.mustache │ │ ├── headerParams.mustache │ │ └── formParams.mustache │ └── resttemplate │ │ └── auth │ │ └── OAuthFlow.mustache ├── gradle-wrapper.jar ├── manifest.mustache ├── model_doc.mustache ├── generatedAnnotation.mustache ├── interface.mustache ├── auth │ ├── OAuthFlow.mustache │ └── Authentication.mustache ├── enum_outer_doc.mustache ├── gradle-wrapper.properties.mustache ├── beanValidation.mustache ├── gitignore.mustache ├── licenseInfo.mustache ├── travis.mustache ├── xmlAnnotation.mustache └── typeInfoAnnotation.mustache ├── LLVMFunctionTracking.xlsx ├── WindowsLauncher ├── commandhelper_icon.ico └── App.config ├── pom.properties ├── .idea └── codeStyles │ └── codeStyleConfig.xml ├── update-apps-api.cmd ├── .vscode ├── extensions.json └── settings.json └── .gitattributes /src/test/resources/test.txt: -------------------------------------------------------------------------------- 1 | Hello World! -------------------------------------------------------------------------------- /src/test/resources/zippables/test.txt: -------------------------------------------------------------------------------- 1 | Hello World! -------------------------------------------------------------------------------- /src/main/resources/local_packages/CHMarquee/test/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/test/resources/zippables/inner/test.txt: -------------------------------------------------------------------------------- 1 | Hello World! -------------------------------------------------------------------------------- /mustacheTemplates/settings.gradle.mustache: -------------------------------------------------------------------------------- 1 | rootProject.name = "{{artifactId}}" -------------------------------------------------------------------------------- /src/main/resources/templates/new-type-templates/enum.ms: -------------------------------------------------------------------------------- 1 | public enum %s { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /src/main/resources/templates/new-type-templates/class.ms: -------------------------------------------------------------------------------- 1 | public class %s { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /mustacheTemplates/gradle.properties.mustache: -------------------------------------------------------------------------------- 1 | # Uncomment to build for Android 2 | #target = android -------------------------------------------------------------------------------- /src/main/resources/templates/new-type-templates/interface.ms: -------------------------------------------------------------------------------- 1 | public interface %s { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /LLVMFunctionTracking.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/LLVMFunctionTracking.xlsx -------------------------------------------------------------------------------- /mustacheTemplates/beanValidationQueryParams.mustache: -------------------------------------------------------------------------------- 1 | {{#required}} @NotNull{{/required}}{{>beanValidationCore}} -------------------------------------------------------------------------------- /src/test/resources/test.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/test/resources/test.zip -------------------------------------------------------------------------------- /src/main/resources/function_impl/string_contains.ms: -------------------------------------------------------------------------------- 1 | return(string_position(@arguments[0], @arguments[1]) != -1); 2 | -------------------------------------------------------------------------------- /src/main/resources/templates/new-type-templates/annotation.ms: -------------------------------------------------------------------------------- 1 | @{Target()} 2 | public annotation %s { 3 | 4 | } 5 | -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit/cookieParams.mustache: -------------------------------------------------------------------------------- 1 | {{~#is this 'cookie-param'}}{{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit2/cookieParams.mustache: -------------------------------------------------------------------------------- 1 | {{~#is this 'cookie-param'}}{{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /src/test/resources/testNested.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/test/resources/testNested.zip -------------------------------------------------------------------------------- /mustacheTemplates/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/mustacheTemplates/gradle-wrapper.jar -------------------------------------------------------------------------------- /WindowsLauncher/commandhelper_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/WindowsLauncher/commandhelper_icon.ico -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit/bodyParams.mustache: -------------------------------------------------------------------------------- 1 | {{~#is this 'body-param'}}@retrofit.http.Body {{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit2/bodyParams.mustache: -------------------------------------------------------------------------------- 1 | {{#is this 'body-param'}}@retrofit2.http.Body {{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /src/main/resources/function_impl/string_contains_ic.ms: -------------------------------------------------------------------------------- 1 | return(string_position(to_lower(@arguments[0]), to_lower(@arguments[1])) != -1); -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit/pathParams.mustache: -------------------------------------------------------------------------------- 1 | {{~#is this 'path-param'}}@retrofit.http.Path("{{baseName}}") {{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Wed Jun 09 13:49:55 CEST 2021 3 | groupId=com.sk89q 4 | artifactId=commandhelper 5 | version=3.3.5-SNAPSHOT 6 | -------------------------------------------------------------------------------- /src/installer/Windows/MethodScriptInstaller.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/installer/Windows/MethodScriptInstaller.exe -------------------------------------------------------------------------------- /src/main/resources/interpreter-helpers/modules: -------------------------------------------------------------------------------- 1 | java.base/java.lang.reflect 2 | java.base/java.lang 3 | java.base/java.util 4 | java.prefs/java.util.prefs -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit/queryParams.mustache: -------------------------------------------------------------------------------- 1 | {{~#is this 'query-param'}}@retrofit.http.Query("{{baseName}}") {{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit2/pathParams.mustache: -------------------------------------------------------------------------------- 1 | {{#is this 'path-param'}}@retrofit2.http.Path("{{baseName}}") {{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit2/queryParams.mustache: -------------------------------------------------------------------------------- 1 | {{#is this 'query-param'}}@retrofit2.http.Query("{{baseName}}") {{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit/headerParams.mustache: -------------------------------------------------------------------------------- 1 | {{~#is this 'header-param'}}@retrofit.http.Header("{{baseName}}") {{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit2/headerParams.mustache: -------------------------------------------------------------------------------- 1 | {{#is this 'header-param'}}@retrofit2.http.Header("{{baseName}}") {{{dataType}}} {{paramName}}{{/is}} -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCComplexRecipe.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCComplexRecipe extends MCRecipe { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCChest.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | public interface MCChest extends MCContainer { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCHusk.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCHusk extends MCZombie { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/resources/interpreter-helpers/csharp/setup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/interpreter-helpers/csharp/setup.exe -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/banner.jpg -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/gears.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/gears.gif -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/pic05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/pic05.jpg -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/pic06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/pic06.jpg -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/pic07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/pic07.jpg -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/pic08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/pic08.jpg -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/pic09.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/pic09.jpg -------------------------------------------------------------------------------- /mustacheTemplates/manifest.mustache: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCBogged.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCBogged extends MCSkeleton { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCDrowned.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCDrowned extends MCZombie { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCMule.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCMule extends MCChestedHorse { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCSniffer.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCSniffer extends MCAnimal { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCStray.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCStray extends MCSkeleton { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCZoglin.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCZoglin extends MCAgeable { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCWeather.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | public enum MCWeather { 4 | CLEAR, 5 | DOWNFALL 6 | } 7 | -------------------------------------------------------------------------------- /src/main/resources/interpreter-helpers/windows/mscript.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/interpreter-helpers/windows/mscript.exe -------------------------------------------------------------------------------- /src/main/resources/local_packages/CHMarquee/main.ms: -------------------------------------------------------------------------------- 1 | console('Starting up the marquees') 2 | foreach(get_value('chmarquee.list'), @marquee, 3 | _start_marquee(@marquee) 4 | ) -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/favicon.ico -------------------------------------------------------------------------------- /mustacheTemplates/model_doc.mustache: -------------------------------------------------------------------------------- 1 | {{#models}}{{#model}} 2 | {{#is this 'enum'}}{{>enum_outer_doc}}{{/is}}{{#isNot this 'enum'}}{{>pojo_doc}}{{/isNot}} 3 | {{/model}}{{/models}} 4 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCNamespacedKey.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCNamespacedKey extends AbstractionObject { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCDonkey.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCDonkey extends MCChestedHorse { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCHoglin.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCHoglin extends MCAnimal { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCOcelot.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCOcelot extends MCAnimal { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCResult.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | public enum MCResult { 4 | ALLOW, 5 | DENY, 6 | DEFAULT 7 | } 8 | -------------------------------------------------------------------------------- /src/main/resources/com/laytonsmith/tools/pnviewer/GearIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/com/laytonsmith/tools/pnviewer/GearIcon.png -------------------------------------------------------------------------------- /src/main/resources/function_impl/array_push_all.ms: -------------------------------------------------------------------------------- 1 | @destination = @arguments[0]; 2 | @input = @arguments[1]; 3 | 4 | foreach(@item in @input) { 5 | @destination[] = @item; 6 | } 7 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/css/images/overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/css/images/overlay.png -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/ParseTree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/ParseTree.png -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/clipboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/clipboard.png -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/search-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/search-icon.png -------------------------------------------------------------------------------- /mustacheTemplates/generatedAnnotation.mustache: -------------------------------------------------------------------------------- 1 | {{^hideGenerationTimestamp}}@javax.annotation.Generated(value = "{{generatorClass}}", date = "{{generatedDate}}"){{/hideGenerationTimestamp}} -------------------------------------------------------------------------------- /mustacheTemplates/libraries/resttemplate/auth/OAuthFlow.mustache: -------------------------------------------------------------------------------- 1 | package {{invokerPackage}}.auth; 2 | 3 | public enum OAuthFlow { 4 | accessCode, implicit, password, application 5 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCFishHook.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCFishHook extends MCProjectile { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCLlamaSpit.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCLlamaSpit extends MCProjectile { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCMagmaCube.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCMagmaCube extends MCSlime { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/arguments/ArgumentBuilder.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.arguments; 2 | 3 | /** 4 | * 5 | * 6 | */ 7 | public class ArgumentBuilder { 8 | } 9 | -------------------------------------------------------------------------------- /mustacheTemplates/interface.mustache: -------------------------------------------------------------------------------- 1 | /** 2 | * {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}} 3 | */ 4 | public interface {{{classname}}} { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCConsoleCommandSender.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCConsoleCommandSender extends MCCommandSender { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCDropper.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | public interface MCDropper extends MCContainer { 4 | void drop(); 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCElderGuardian.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCElderGuardian extends MCGuardian { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCWanderingTrader.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCWanderingTrader extends MCTrader { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCWitherSkeleton.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCWitherSkeleton extends MCSkeleton { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCZombieHorse.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCZombieHorse extends MCAbstractHorse { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCWorldLoadEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCWorldLoadEvent extends MCWorldEvent { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCWorldSaveEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCWorldSaveEvent extends MCWorldEvent { 4 | } 5 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /mustacheTemplates/auth/OAuthFlow.mustache: -------------------------------------------------------------------------------- 1 | {{>licenseInfo}} 2 | 3 | package {{invokerPackage}}.auth; 4 | 5 | public enum OAuthFlow { 6 | accessCode, implicit, password, application 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCGlowItemFrame.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCGlowItemFrame extends MCItemFrame { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCSkeletonHorse.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCSkeletonHorse extends MCAbstractHorse { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCWorldUnloadEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCWorldUnloadEvent extends MCWorldEvent { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/CommandHelper_Icon.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/CommandHelper_Icon.bmp -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/CommandHelper_Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/CommandHelper_Icon.png -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/commandhelper_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/commandhelper_icon.ico -------------------------------------------------------------------------------- /mustacheTemplates/enum_outer_doc.mustache: -------------------------------------------------------------------------------- 1 | # {{classname}} 2 | 3 | ## Enum 4 | 5 | {{#allowableValues}}{{#enumVars}} 6 | * `{{name}}` (value: `{{{value}}}`) 7 | {{/enumVars}}{{/allowableValues}} 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCColorableArmorMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCColorableArmorMeta extends MCLeatherArmorMeta, MCArmorMeta { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCDoubleChest.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCDoubleChest extends MCInventoryHolder { 4 | MCLocation getLocation(); 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCEnderDragonPart.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCEnderDragonPart extends MCComplexEntityPart { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerBucketEmptyEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerBucketEmptyEvent extends MCPlayerEvent { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerBucketFillEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerBucketFillEvent extends MCPlayerEvent { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/resources/com/laytonsmith/tools/docgen/localization/GearIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/com/laytonsmith/tools/docgen/localization/GearIcon.png -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/CommandHelper_Logo_New.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/CommandHelper_Logo_New.png -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCPotionAction.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | public enum MCPotionAction { 4 | ADDED, 5 | CHANGED, 6 | CLEARED, 7 | REMOVED 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockPistonExtendEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCBlockPistonExtendEvent extends MCBlockPistonEvent { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/CommandHelper_IconAnimated.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/CommandHelper_IconAnimated.gif -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/CommandHelper_IconHighRes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/CommandHelper_IconHighRes.png -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/CommandHelper_Logo_Sprite.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/CommandHelper_Logo_Sprite.bmp -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCVirtualInventoryHolder.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCVirtualInventoryHolder extends MCInventoryHolder { 4 | String getID(); 5 | } 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockPistonRetractEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCBlockPistonRetractEvent extends MCBlockPistonEvent { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/resources/com/laytonsmith/tools/docgen/localization/git_icon16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/com/laytonsmith/tools/docgen/localization/git_icon16x16.png -------------------------------------------------------------------------------- /src/main/resources/com/laytonsmith/tools/docgen/localization/help_icon16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/com/laytonsmith/tools/docgen/localization/help_icon16x16.png -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCInventoryHolder.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCInventoryHolder extends AbstractionObject { 4 | 5 | MCInventory getInventory(); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/pluginmessages/MCPluginMessageListenerRegistration.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.pluginmessages; 2 | 3 | public interface MCPluginMessageListenerRegistration { 4 | } 5 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/webserver/ServerNotRunningException.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.webserver; 2 | 3 | /** 4 | * 5 | */ 6 | public class ServerNotRunningException extends Exception { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/com/laytonsmith/tools/docgen/localization/github_icon16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/com/laytonsmith/tools/docgen/localization/github_icon16x16.png -------------------------------------------------------------------------------- /src/main/resources/interpreter-helpers/sample.ms: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env /usr/local/bin/mscript 2 | 3 | sys_out('@arguments: ' @arguments) 4 | sys_out('$0:' $0) 5 | sys_out('$1:' $1) 6 | sys_out('$2:' $2) 7 | sys_out('$:' $) 8 | -------------------------------------------------------------------------------- /WindowsLauncher/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCRemoteCommandSender.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | /** 4 | * 5 | */ 6 | public interface MCRemoteCommandSender extends MCConsoleCommandSender { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCPufferfish.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCPufferfish { 4 | int getPuffState(); 5 | void setPuffState(int state); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/CommandHelper_IconHighRes_Sprite.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/CommandHelper_IconHighRes_Sprite.bmp -------------------------------------------------------------------------------- /src/main/resources/templates/new-type-templates/all.ms: -------------------------------------------------------------------------------- 1 | 8 | 9 | /** 10 | * 11 | */ 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCEquipmentSlotGroup.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | public enum MCEquipmentSlotGroup { 4 | ANY, 5 | HAND, 6 | ARMOR, 7 | BODY, 8 | SADDLE, 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCThunderChangeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCThunderChangeEvent extends MCWeatherEvent { 4 | 5 | boolean toThunderState(); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCWeatherChangeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCWeatherChangeEvent extends MCWeatherEvent { 4 | 5 | boolean toWeatherState(); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCLeashable.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | public interface MCLeashable { 3 | MCEntity getLeashHolder(); 4 | boolean isLeashed(); 5 | void setLeashHolder(MCEntity holder); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCEvoker.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCEvoker extends MCLivingEntity { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCGoat.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCGoat extends MCAnimal { 4 | boolean isScreaming(); 5 | void setScreaming(boolean screaming); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCTadpole.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCTadpole extends MCLivingEntity { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCWarden.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCWarden extends MCLivingEntity { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCWitch.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCWitch extends MCLivingEntity { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityToggleSwimEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | 4 | public interface MCEntityToggleSwimEvent extends MCEntityEvent { 5 | 6 | boolean isSwimming(); 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCAllay.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | 5 | public interface MCAllay extends MCInventoryHolder { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCCamel.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCCamel extends MCAbstractHorse { 4 | boolean isDashing(); 5 | void setDashing(boolean dashing); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCGuardian.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCGuardian extends MCLivingEntity { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCSkeleton.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCSkeleton extends MCLivingEntity { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCVindicator.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCVindicator extends MCLivingEntity { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/arguments/Argument.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.arguments; 2 | 3 | /** 4 | * 5 | * 6 | */ 7 | public class Argument { 8 | 9 | private boolean varargs; 10 | private Class clazz; 11 | } 12 | -------------------------------------------------------------------------------- /src/main/resources/com/laytonsmith/tools/docgen/localization/cognitive_services_logo16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/com/laytonsmith/tools/docgen/localization/cognitive_services_logo16x16.png -------------------------------------------------------------------------------- /src/main/resources/samp_persistence_network.txt: -------------------------------------------------------------------------------- 1 | # This file sets up the Persistence Network. 2 | # For more details, see the documentation at 3 | # https://methodscript.com/docs/3.3.5/Persistence_Network.html 4 | 5 | **=sqlite://persistence.db 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCPillager.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | 5 | public interface MCPillager extends MCInventoryHolder { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCStrider.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCStrider extends MCAnimal, MCVehicle { 4 | boolean isSaddled(); 5 | void setSaddled(boolean saddled); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCPigType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.PigType") 6 | public enum MCPigType { 7 | SADDLED 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCItemHeldEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCItemHeldEvent extends MCPlayerEvent { 4 | 5 | int getNewSlot(); 6 | 7 | int getPreviousSlot(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/telemetry/LogTelemetryValue.java: -------------------------------------------------------------------------------- 1 | 2 | package com.laytonsmith.core.telemetry; 3 | 4 | /** 5 | * 6 | * @author Cailin 7 | */ 8 | public interface LogTelemetryValue extends TelemetryValue { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/telemetry/MetricTelemetryValue.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.telemetry; 2 | 3 | /** 4 | * 5 | * @author Cailin 6 | */ 7 | public interface MetricTelemetryValue extends TelemetryValue { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/Developer_Environment/ScreenshotAutoComplete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/Developer_Environment/ScreenshotAutoComplete.png -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/images/Developer_Environment/ScreenshotErrorDetection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/siteDeploy/resources/images/Developer_Environment/ScreenshotErrorDetection.png -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCMusicInstrumentMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCMusicInstrumentMeta extends MCItemMeta { 4 | String getInstrument(); 5 | void setInstrument(String instrument); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCPig.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCPig extends MCAnimal, MCVehicle { 4 | 5 | boolean isSaddled(); 6 | 7 | void setSaddled(boolean saddled); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCPiglinBrute.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCPiglinBrute extends MCLivingEntity { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCExpChangeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCExpChangeEvent extends MCPlayerEvent { 4 | 5 | int getAmount(); 6 | 7 | void setAmount(int amount); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/interpreter-helpers/csharp/Application Files/mscript_0_0_0_1/mscript.exe.deploy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/interpreter-helpers/csharp/Application Files/mscript_0_0_0_1/mscript.exe.deploy -------------------------------------------------------------------------------- /src/main/resources/local_packages/CGIBin/styles.css: -------------------------------------------------------------------------------- 1 | 2 | th, td { 3 | padding: 10px; 4 | text-align: left; 5 | } 6 | 7 | tr:nth-child(even) { 8 | background-color: #f2f2f2; 9 | } 10 | 11 | body { 12 | font-family: Verdana,sans-serif; 13 | } -------------------------------------------------------------------------------- /src/main/resources/time_names.txt: -------------------------------------------------------------------------------- 1 | morning=0 2 | day=2000 3 | midday=6000 4 | noon=6000 5 | afternoon=8000 6 | evening=12000 7 | sunset=13000 8 | dusk=13500 9 | night=14000 10 | midnight=18000 11 | earlymorning=20000 12 | dawn=22500 13 | sunrise=23000 -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCContainer.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | 5 | public interface MCContainer extends MCBlockState, MCInventoryHolder { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCChestBoat.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | 5 | public interface MCChestBoat extends MCBoat, MCInventoryHolder { 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCWitherSkull.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCWitherSkull extends MCFireball { 4 | 5 | boolean isCharged(); 6 | 7 | void setCharged(boolean charged); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCAction.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | public enum MCAction { 4 | LEFT_CLICK_AIR, 5 | LEFT_CLICK_BLOCK, 6 | RIGHT_CLICK_BLOCK, 7 | RIGHT_CLICK_AIR, 8 | PHYSICAL 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCZombieType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.ZombieType") 6 | public enum MCZombieType { 7 | BABY, 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/apps.methodscript.com/README.md: -------------------------------------------------------------------------------- 1 | To generate the openapi spec from the TypeSpec, you must first install tsp. 2 | 3 | `npm install -g tsp` 4 | 5 | Then from this directory, run `npm install` then `tsp compile main.tsp --emit @typespec/openapi3`. -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCPiglin.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCPiglin extends MCAgeable { 4 | boolean isImmuneToZombification(); 5 | void setImmuneToZombification(boolean immune); 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCVehicle.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCVehicle extends MCEntity { 6 | // Look at ALL the functions! 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCZombie.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCZombie extends MCAgeable { 4 | 5 | boolean canBreakDoors(); 6 | 7 | void setCanBreakDoors(boolean canBreakDoors); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCCreeperType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.CreeperType") 6 | public enum MCCreeperType { 7 | POWERED 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCUnleashReason.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | public enum MCUnleashReason { 4 | HOLDER_GONE, 5 | PLAYER_UNLEASH, 6 | DISTANCE, 7 | SHEAR, 8 | FIREWORK, 9 | UNKNOWN 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerQuitEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerQuitEvent extends MCPlayerEvent { 4 | 5 | String getMessage(); 6 | 7 | void setMessage(String message); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/templates/new-type-templates/native-all.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * 12 | */ 13 | -------------------------------------------------------------------------------- /update-apps-api.cmd: -------------------------------------------------------------------------------- 1 | :; "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/scripts/bash/update-apps-api" $@; exit $?; 2 | @ECHO OFF 3 | powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0\scripts\windows\update-apps-api.ps1" %* 4 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCBundleMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCBundleMeta extends MCItemMeta { 6 | List getItems(); 7 | void addItem(MCItemStack item); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCOminousBottleMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCOminousBottleMeta extends MCItemMeta { 4 | boolean hasAmplifier(); 5 | int getAmplifier(); 6 | void setAmplifier(int value); 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCFoxType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.FoxType") 6 | public enum MCFoxType { 7 | RED, 8 | SNOW 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/PureUtilities/Web/HTTPMethod.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.PureUtilities.Web; 2 | 3 | /** 4 | * This enum contains all the valid HTTP methods. 5 | */ 6 | public enum HTTPMethod { 7 | POST, GET, HEAD, OPTIONS, PUT, DELETE, TRACE, PATCH; 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCAnimalTamer.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.UUID; 4 | 5 | public interface MCAnimalTamer extends AbstractionObject { 6 | 7 | String getName(); 8 | 9 | UUID getUniqueID(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCBlockCommandSender.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | 5 | public interface MCBlockCommandSender extends MCCommandSender { 6 | 7 | MCBlock getBlock(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCPlugin.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCPlugin extends AbstractionObject { 4 | 5 | boolean isEnabled(); 6 | 7 | boolean isInstanceOf(Class c); 8 | 9 | String getName(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCLightningStrike.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCLightningStrike extends MCEntity { 6 | 7 | boolean isEffect(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCDragType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.DragType") 6 | public enum MCDragType { 7 | SINGLE, 8 | EVEN 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerJoinEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerJoinEvent extends MCPlayerEvent { 4 | 5 | String getJoinMessage(); 6 | 7 | void setJoinMessage(String message); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/asm/IRReturnCategory.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.asm; 2 | 3 | /** 4 | * 5 | */ 6 | public enum IRReturnCategory { 7 | UNREACHABLE, 8 | VOID, 9 | STATEMENT, 10 | CONSTANT, 11 | PRECOMPILEBLOCK, 12 | NORMAL; 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/interpreter-helpers/csharp/Application Files/mscript_0_0_0_1/commandhelper_icon.ico.deploy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EngineHub/CommandHelper/HEAD/src/main/resources/interpreter-helpers/csharp/Application Files/mscript_0_0_0_1/commandhelper_icon.ico.deploy -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCHopperMinecart.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | 5 | public interface MCHopperMinecart extends MCMinecart, MCInventoryHolder { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCStorageMinecart.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | 5 | public interface MCStorageMinecart extends MCMinecart, MCInventoryHolder { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/MainSandbox.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core; 2 | 3 | /** 4 | * This class is for testing concepts 5 | */ 6 | public class MainSandbox { 7 | 8 | public static void main(String[] args) throws Exception { 9 | 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/localization/TextDirection.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.localization; 2 | 3 | /** 4 | * An enum representing the text direction of a language. 5 | */ 6 | public enum TextDirection { 7 | LTR, RTL; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCChunk.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCChunk extends AbstractionObject { 4 | 5 | int getX(); 6 | 7 | int getZ(); 8 | 9 | MCWorld getWorld(); 10 | 11 | MCEntity[] getEntities(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCChestedHorse.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCChestedHorse extends MCAbstractHorse { 4 | 5 | boolean hasChest(); 6 | 7 | void setHasChest(boolean hasChest); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/SQL.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class SQL extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "SQL"; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCScore.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCScore { 4 | 5 | MCObjective getObjective(); 6 | 7 | int getScore(); 8 | 9 | MCScoreboard getScoreboard(); 10 | 11 | void setScore(int score); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCPhantom.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCPhantom extends MCLivingEntity { 6 | int getSize(); 7 | void setSize(int size); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCCollisionType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.CollisionType") 6 | public enum MCCollisionType { 7 | BLOCK, 8 | ENTITY 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockFadeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlockState; 4 | 5 | public interface MCBlockFadeEvent extends MCBlockEvent { 6 | 7 | MCBlockState getNewState(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockFormEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlockState; 4 | 5 | public interface MCBlockFormEvent extends MCBlockEvent { 6 | 7 | MCBlockState getNewState(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerLeaveBedEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | 5 | public interface MCPlayerLeaveBedEvent extends MCPlayerEvent { 6 | 7 | MCBlock getBed(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCVehicleDestroyEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCVehicleDestroyEvent extends MCVehicleEvent { 6 | 7 | MCEntity getAttacker(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCVehicleEnterExitEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCVehicleEnterExitEvent extends MCVehicleEvent { 6 | 7 | MCEntity getEntity(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/Arrays.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class Arrays extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "Arrays"; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/Loops.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class Loops extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "Loops"; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCSmithingRecipe.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCMaterial; 4 | 5 | public interface MCSmithingRecipe extends MCRecipe { 6 | MCMaterial[] getBase(); 7 | MCMaterial[] getAddition(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCComplexEntityPart.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCComplexEntityPart extends MCEntity { 6 | 7 | MCComplexLivingEntity getParent(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCMushroomCowType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.MushroomCowType") 6 | public enum MCMushroomCowType { 7 | RED, 8 | BROWN 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCInventoryOpenEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCHumanEntity; 4 | 5 | public interface MCInventoryOpenEvent extends MCInventoryEvent { 6 | 7 | MCHumanEntity getPlayer(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/docs/Optimizer: -------------------------------------------------------------------------------- 1 | MethodScript has the ability to apply different optimization techniques, both at compile time and runtime. 2 | Due to the architecture of the engine, it is fairly straightforward to tag functions with various optimizations. 3 | 4 | %%OPTIMIZATION_EXPLANATIONS%% -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCVex.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCVex extends MCLivingEntity { 6 | boolean isCharging(); 7 | void setCharging(boolean charging); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCTone.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.Tone") 6 | public enum MCTone { 7 | G, 8 | A, 9 | B, 10 | C, 11 | D, 12 | E, 13 | F 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCInventoryCloseEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCHumanEntity; 4 | 5 | public interface MCInventoryCloseEvent extends MCInventoryEvent { 6 | 7 | MCHumanEntity getPlayer(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/Closures.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class Closures extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "Closures"; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/Profiles.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class Profiles extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "Profiles"; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/Variables.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class Variables extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "Variables"; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /mustacheTemplates/gradle-wrapper.properties.mustache: -------------------------------------------------------------------------------- 1 | #Tue May 17 23:08:05 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip 7 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCPluginManager.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCPluginManager extends AbstractionObject { 6 | 7 | MCPlugin getPlugin(String name); 8 | 9 | List getPlugins(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCBlockData.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.AbstractionObject; 4 | 5 | public interface MCBlockData extends AbstractionObject { 6 | MCMaterial getMaterial(); 7 | String getAsString(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCBlockProjectileSource.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCProjectileSource; 4 | 5 | public interface MCBlockProjectileSource extends MCProjectileSource { 6 | 7 | MCBlock getBlock(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCLectern.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | 5 | public interface MCLectern extends MCBlockState, MCInventoryHolder { 6 | int getPage(); 7 | void setPage(int page); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCSlime.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCSlime extends MCLivingEntity { 6 | 7 | int getSize(); 8 | 9 | void setSize(int size); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCRegainReason.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | public enum MCRegainReason { 4 | REGEN, 5 | SATIATED, 6 | EATING, 7 | ENDER_CRYSTAL, 8 | MAGIC, 9 | MAGIC_REGEN, 10 | WITHER_SPAWN, 11 | WITHER, 12 | CUSTOM 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityDamageByEntityEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCEntityDamageByEntityEvent extends MCEntityDamageEvent { 6 | 7 | MCEntity getDamager(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/GenericTreeTraversalOrderEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010 Vivin Suresh Paliath 3 | * Distributed under the BSD License 4 | */ 5 | package com.laytonsmith.core; 6 | 7 | public enum GenericTreeTraversalOrderEnum { 8 | PRE_ORDER, 9 | POST_ORDER 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/NotInitializedYetException.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core; 2 | 3 | /** 4 | * 5 | * 6 | */ 7 | public class NotInitializedYetException extends RuntimeException { 8 | 9 | public NotInitializedYetException(String msg) { 10 | super(msg); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/Exceptions.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class Exceptions extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "Exceptions"; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/interpreter-helpers/csharp/Application Files/mscript_0_0_0_1/mscript.exe.config.deploy: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCItemRarity.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.ItemRarity") 6 | public enum MCItemRarity { 7 | COMMON, 8 | UNCOMMON, 9 | RARE, 10 | EPIC 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCVehicleBlockCollideEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | 5 | public interface MCVehicleBlockCollideEvent extends MCVehicleCollideEvent { 6 | 7 | MCBlock getBlock(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/Logic.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | * @author cailin 6 | */ 7 | public class Logic extends Template { 8 | 9 | @Override 10 | public String getName() { 11 | return "Logic"; 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/main/resources/function_impl/hypot.ms: -------------------------------------------------------------------------------- 1 | number @a = double(@arguments[0]); 2 | number @b = double(@arguments[1]); 3 | 4 | if(@a <= 0 || @b <= 0) { 5 | throw(RangeException, 'The arguments passed to hypot may not be negative or zero.'); 6 | } 7 | 8 | return( 9 | sqrt(@a ** 2 + @b ** 2) 10 | ); -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCNote.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.enums.MCTone; 4 | 5 | public interface MCNote extends AbstractionObject { 6 | 7 | MCTone getTone(); 8 | 9 | int getOctave(); 10 | 11 | boolean isSharped(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCMannequin.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCMannequin extends MCLivingEntity { 6 | boolean isImmovable(); 7 | void setImmovable(boolean immovable); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCAxolotlType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.AxolotlType") 6 | public enum MCAxolotlType { 7 | BLUE, 8 | CYAN, 9 | GOLD, 10 | LUCY, 11 | WILD 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCGameMode.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.GameMode") 6 | public enum MCGameMode { 7 | SURVIVAL, 8 | CREATIVE, 9 | ADVENTURE, 10 | SPECTATOR 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCParrotType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.ParrotType") 6 | public enum MCParrotType { 7 | RED, 8 | BLUE, 9 | GREEN, 10 | CYAN, 11 | GRAY 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCWorldType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.WorldType") 6 | public enum MCWorldType { 7 | NORMAL, 8 | FLAT, 9 | LARGE_BIOMES, 10 | AMPLIFIED 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCVehicleCollideEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.enums.MCCollisionType; 4 | 5 | public interface MCVehicleCollideEvent extends MCVehicleEvent { 6 | 7 | MCCollisionType getCollisionType(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCWorldChangedEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCWorld; 4 | 5 | public interface MCWorldChangedEvent extends MCPlayerEvent { 6 | 7 | MCWorld getFrom(); 8 | 9 | MCWorld getTo(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCFireworkEffectMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCFireworkEffectMeta extends MCItemMeta { 4 | 5 | boolean hasEffect(); 6 | 7 | MCFireworkEffect getEffect(); 8 | 9 | void setEffect(MCFireworkEffect effect); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCPlayerInput.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCPlayerInput { 4 | boolean forward(); 5 | boolean backward(); 6 | boolean left(); 7 | boolean right(); 8 | boolean jump(); 9 | boolean sneak(); 10 | boolean sprint(); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCSnowman.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCSnowman extends MCLivingEntity { 6 | 7 | void setDerp(boolean derp); 8 | 9 | boolean isDerp(); 10 | } 11 | -------------------------------------------------------------------------------- /src/test/resources/unbalancedRTLSource.ms: -------------------------------------------------------------------------------- 1 | @access_level = "user" 2 | if(@access_level != 'none‮⁦'){ # Check if admin ⁩⁦' && @access_level != 'user 3 | console("You are an admin1.\n"); 4 | } 5 | 6 | if(@access_level != 'none' && @access_level != 'user'){ # Check if admin 7 | console("You are an admin2"); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCExperienceOrb.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCExperienceOrb extends MCEntity { 6 | 7 | int getExperience(); 8 | 9 | void setExperience(int amount); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCPigZombie.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCPigZombie extends MCZombie { 4 | 5 | int getAnger(); 6 | 7 | void setAnger(int anger); 8 | 9 | boolean isAngry(); 10 | 11 | void setAngry(boolean isAngry); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCOption.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.Option") 6 | public enum MCOption { 7 | COLLISION_RULE, 8 | DEATH_MESSAGE_VISIBILITY, 9 | NAME_TAG_VISIBILITY 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerInteractAtEntityEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.PureUtilities.Vector3D; 4 | 5 | public interface MCPlayerInteractAtEntityEvent extends MCPlayerInteractEntityEvent { 6 | 7 | Vector3D getClickedPosition(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerStopUsingItemEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCItemStack; 4 | 5 | public interface MCPlayerStopUsingItemEvent extends MCPlayerEvent { 6 | MCItemStack getItem(); 7 | int getTicksHeldFor(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerToggleFlightEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerToggleFlightEvent extends MCPlayerEvent { 4 | 5 | boolean isFlying(); 6 | 7 | void setCancelled(boolean state); 8 | 9 | boolean isCancelled(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerToggleSneakEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerToggleSneakEvent extends MCPlayerEvent { 4 | 5 | boolean isSneaking(); 6 | 7 | void setCancelled(boolean state); 8 | 9 | boolean isCancelled(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCCooldownComponent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCCooldownComponent extends AbstractionObject { 4 | float getSeconds(); 5 | void setSeconds(float seconds); 6 | String getCooldownGroup(); 7 | void setCooldownGroup(String cooldownGroup); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCFireball.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.PureUtilities.Vector3D; 4 | 5 | public interface MCFireball extends MCProjectile { 6 | 7 | Vector3D getDirection(); 8 | 9 | void setDirection(Vector3D vector); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCThrownPotion.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCItemStack; 4 | 5 | public interface MCThrownPotion extends MCProjectile { 6 | 7 | MCItemStack getItem(); 8 | 9 | void setItem(MCItemStack item); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCFireworkType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.FireworkType") 6 | public enum MCFireworkType { 7 | BALL, 8 | BALL_LARGE, 9 | STAR, 10 | BURST, 11 | CREEPER 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCOptionStatus.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.OptionStatus") 6 | public enum MCOptionStatus { 7 | ALWAYS, 8 | FOR_OTHER_TEAMS, 9 | FOR_OWN_TEAM, 10 | NEVER 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCWorldEnvironment.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.WorldEnvironment") 6 | public enum MCWorldEnvironment { 7 | NORMAL, 8 | NETHER, 9 | THE_END, 10 | CUSTOM 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerToggleSprintEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerToggleSprintEvent extends MCPlayerEvent { 4 | 5 | boolean isSprinting(); 6 | 7 | void setCancelled(boolean state); 8 | 9 | boolean isCancelled(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCWorldEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCWorld; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCWorldEvent extends BindableEvent { 7 | 8 | MCWorld getWorld(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/arguments/Signature.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.arguments; 2 | 3 | /** 4 | * 5 | * 6 | */ 7 | public class Signature { 8 | 9 | private final ArgumentBuilder outer; 10 | 11 | public Signature(final ArgumentBuilder outer) { 12 | this.outer = outer; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/css/style-xlarge.css: -------------------------------------------------------------------------------- 1 | /* 2 | Interphase by TEMPLATED 3 | templated.co @templatedco 4 | Released for free under the Creative Commons Attribution 3.0 license (templated.co/license) 5 | */ 6 | 7 | /* Basic */ 8 | 9 | body, input, select, textarea { 10 | font-size: 13pt; 11 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCCommandBlock.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | public interface MCCommandBlock extends MCBlockState { 4 | 5 | String getCommand(); 6 | 7 | String getName(); 8 | 9 | void setCommand(String command); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCMushroomCow.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCMushroomCowType; 4 | 5 | public interface MCMushroomCow extends MCAnimal { 6 | MCMushroomCowType getVariant(); 7 | void setVariant(MCMushroomCowType type); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCRabbit.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCRabbitType; 4 | 5 | public interface MCRabbit extends MCAnimal { 6 | 7 | MCRabbitType getRabbitType(); 8 | 9 | void setRabbitType(MCRabbitType type); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCShulkerBullet.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCShulkerBullet extends MCProjectile { 6 | 7 | void setTarget(MCEntity entity); 8 | 9 | MCEntity getTarget(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCBarColor.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.BarColor") 6 | public enum MCBarColor { 7 | PINK, 8 | BLUE, 9 | RED, 10 | GREEN, 11 | YELLOW, 12 | PURPLE, 13 | WHITE 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCRemoveCause.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.RemoveCause") 6 | public enum MCRemoveCause { 7 | DEFAULT, 8 | ENTITY, 9 | EXPLOSION, 10 | OBSTRUCTION, 11 | PHYSICS 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCBlockEvent extends BindableEvent { 7 | 8 | MCBlock getBlock(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCPlayer; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCPlayerEvent extends BindableEvent { 7 | 8 | MCPlayer getPlayer(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCVehicleEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCVehicleEvent extends BindableEvent { 7 | 8 | MCEntity getVehicle(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCWeatherEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCWorld; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCWeatherEvent extends BindableEvent { 7 | 8 | MCWorld getWorld(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCMapMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCMapMeta extends MCItemMeta { 4 | 5 | boolean hasMapId(); 6 | 7 | int getMapId(); 8 | 9 | void setMapId(int id); 10 | 11 | MCColor getColor(); 12 | 13 | void setColor(MCColor color); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCBreedable.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCBreedable extends MCAgeable { 4 | 5 | boolean getCanBreed(); 6 | 7 | void setCanBreed(boolean breed); 8 | 9 | boolean getAgeLock(); 10 | 11 | void setAgeLock(boolean lock); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCBarStyle.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.BarStyle") 6 | public enum MCBarStyle { 7 | SOLID, 8 | SEGMENTED_6, 9 | SEGMENTED_10, 10 | SEGMENTED_12, 11 | SEGMENTED_20 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerAdvancementDoneEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCNamespacedKey; 4 | 5 | public interface MCPlayerAdvancementDoneEvent extends MCPlayerEvent { 6 | MCNamespacedKey getAdvancementKey(); 7 | String getTitle(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerCommandEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerCommandEvent extends MCPlayerEvent { 4 | 5 | String getCommand(); 6 | 7 | void cancel(); 8 | 9 | void setCommand(String val); 10 | 11 | boolean isCancelled(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/mobjects/MObject.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.mobjects; 2 | 3 | import com.laytonsmith.annotations.mobject; 4 | 5 | /** 6 | * 7 | */ 8 | @mobject("Object") 9 | public class MObject { 10 | 11 | @Override 12 | public String toString() { 13 | return super.toString(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCPotionData.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.enums.MCPotionType; 4 | 5 | public interface MCPotionData extends AbstractionObject { 6 | 7 | MCPotionType getType(); 8 | 9 | boolean isExtended(); 10 | 11 | boolean isUpgraded(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCDispenser.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | 5 | public interface MCDispenser extends MCBlockState, MCInventoryHolder { 6 | boolean dispense(); 7 | MCBlockProjectileSource getBlockProjectileSource(); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCAnimal.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import java.util.UUID; 4 | 5 | public interface MCAnimal extends MCBreedable { 6 | int getLoveTicks(); 7 | void setLoveTicks(int ticks); 8 | UUID getBreedCause(); 9 | void setBreedCause(UUID cause); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCBlockDisplay.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlockData; 4 | 5 | public interface MCBlockDisplay extends MCDisplay { 6 | 7 | MCBlockData getBlockData(); 8 | 9 | void setBlockData(MCBlockData data); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCComplexLivingEntity.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | import java.util.Set; 5 | 6 | public interface MCComplexLivingEntity extends MCLivingEntity { 7 | 8 | Set getParts(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCIronGolem.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCIronGolem extends MCLivingEntity { 6 | 7 | boolean isPlayerCreated(); 8 | 9 | void setPlayerCreated(boolean playerCreated); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/natives/interfaces/MList.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.natives.interfaces; 2 | 3 | import java.util.ArrayList; 4 | 5 | /** 6 | * A list that extends ArrayList>Object>, to ensure compliance when using MObject. 7 | * 8 | */ 9 | public class MList extends ArrayList { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "redhat.java", 4 | "shengchen.vscode-checkstyle", 5 | "vscjava.vscode-java-debug", 6 | "vscjava.vscode-java-dependency", 7 | "vscjava.vscode-java-pack", 8 | "vscjava.vscode-java-test", 9 | "vscjava.vscode-maven", 10 | ], 11 | "unwantedRecommendations": [ 12 | 13 | ] 14 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCAxolotlBucketMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.enums.MCAxolotlType; 4 | 5 | public interface MCAxolotlBucketMeta extends MCItemMeta { 6 | 7 | MCAxolotlType getAxolotlType(); 8 | 9 | void setAxolotlType(MCAxolotlType type); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCTrader.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCInventoryHolder; 4 | import com.laytonsmith.abstraction.MCMerchant; 5 | 6 | public interface MCTrader extends MCBreedable, MCInventoryHolder { 7 | 8 | MCMerchant asMerchant(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCCrossbowMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCCrossbowMeta extends MCItemMeta { 6 | boolean hasChargedProjectiles(); 7 | List getChargedProjectiles(); 8 | void setChargedProjectiles(List projectiles); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/methodscript/native_sources.code-workspace: -------------------------------------------------------------------------------- 1 | { 2 | "folders": [ 3 | { 4 | "path": "." 5 | }, 6 | { 7 | "path": "../ms-resources" 8 | } 9 | ], 10 | "settings": { 11 | "editor.rulers": [120], 12 | "editor.insertSpaces": false, 13 | "editor.detectIndentation": false, 14 | "files.trimTrailingWhitespace": true 15 | } 16 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCKnowledgeBookMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCKnowledgeBookMeta extends MCItemMeta { 6 | 7 | boolean hasRecipes(); 8 | 9 | List getRecipes(); 10 | 11 | void setRecipes(List recipes); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCPainting.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCArt; 4 | 5 | public interface MCPainting extends MCHanging { 6 | 7 | MCArt getArt(); 8 | 9 | boolean setArt(MCArt art); 10 | 11 | boolean setArt(MCArt art, boolean force); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCZombieVillager.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCProfession; 4 | 5 | public interface MCZombieVillager extends MCZombie { 6 | 7 | MCProfession getProfession(); 8 | 9 | void setProfession(MCProfession profession); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCFireworkExplodeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.entities.MCFirework; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCFireworkExplodeEvent extends BindableEvent { 7 | 8 | MCFirework getEntity(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCNotePlayEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCNote; 4 | import com.laytonsmith.abstraction.enums.MCInstrument; 5 | 6 | public interface MCNotePlayEvent extends MCBlockEvent { 7 | MCNote getNote(); 8 | MCInstrument getInstrument(); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCCompassMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCCompassMeta extends MCItemMeta { 4 | 5 | MCLocation getTargetLocation(); 6 | 7 | void setTargetLocation(MCLocation location); 8 | 9 | boolean isLodestoneTracked(); 10 | 11 | void setLodestoneTracked(boolean tracked); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCPattern.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.enums.MCDyeColor; 4 | import com.laytonsmith.abstraction.enums.MCPatternShape; 5 | 6 | public interface MCPattern extends AbstractionObject { 7 | 8 | MCDyeColor getColor(); 9 | 10 | MCPatternShape getShape(); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/constructs/Auto.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.constructs; 2 | 3 | /** 4 | * Auto is not a real type, but we need a placeholder for a few meta things, such as the CClassType for it. 5 | * 6 | * @author cailin 7 | */ 8 | public class Auto { 9 | 10 | public static final CClassType TYPE = CClassType.AUTO; 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCEnderDragon.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCEnderDragonPhase; 4 | 5 | public interface MCEnderDragon extends MCComplexLivingEntity { 6 | 7 | MCEnderDragonPhase getPhase(); 8 | 9 | void setPhase(MCEnderDragonPhase phase); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCEvokerFangs.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.MCLivingEntity; 5 | 6 | public interface MCEvokerFangs extends MCEntity { 7 | MCLivingEntity getOwner(); 8 | void setOwner(MCLivingEntity owner); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCRabbitType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.RabbitType") 6 | public enum MCRabbitType { 7 | BROWN, 8 | WHITE, 9 | BLACK, 10 | BLACK_AND_WHITE, 11 | GOLD, 12 | SALT_AND_PEPPER, 13 | THE_KILLER_BUNNY 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCBeehive.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCLocation; 4 | 5 | public interface MCBeehive extends MCBlockState { 6 | MCLocation getFlowerLocation(); 7 | void setFlowerLocation(MCLocation loc); 8 | void addBees(int count); 9 | int getEntityCount(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCTNT.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCTNT extends MCEntity { 6 | 7 | MCEntity getSource(); 8 | 9 | void setSource(MCEntity source); 10 | 11 | int getFuseTicks(); 12 | 13 | void setFuseTicks(int ticks); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCEquipmentSlot.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.EquipmentSlot") 6 | public enum MCEquipmentSlot { 7 | WEAPON, 8 | OFF_HAND, 9 | BOOTS, 10 | LEGGINGS, 11 | CHESTPLATE, 12 | HELMET, 13 | BODY, 14 | SADDLE, 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerResourcePackEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.enums.MCResourcePackStatus; 4 | 5 | import java.util.UUID; 6 | 7 | public interface MCPlayerResourcePackEvent extends MCPlayerEvent { 8 | MCResourcePackStatus getStatus(); 9 | UUID getId(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/natives/interfaces/MMap.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.natives.interfaces; 2 | 3 | import java.util.HashMap; 4 | 5 | /** 6 | * An extension of HashMap<String, Object>, which is meant to ensure generic type compliance when using MObjects. 7 | * 8 | */ 9 | public class MMap extends HashMap { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCRecipe.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.enums.MCRecipeType; 4 | 5 | public interface MCRecipe extends AbstractionObject { 6 | MCItemStack getResult(); 7 | MCRecipeType getRecipeType(); 8 | String getKey(); 9 | String getGroup(); 10 | void setGroup(String group); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCBoat.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLeashable; 4 | import com.laytonsmith.abstraction.enums.MCTreeSpecies; 5 | 6 | public interface MCBoat extends MCVehicle, MCLeashable { 7 | MCTreeSpecies getWoodType(); 8 | void setWoodType(MCTreeSpecies type); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCShulker.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | import com.laytonsmith.abstraction.enums.MCDyeColor; 5 | 6 | public interface MCShulker extends MCLivingEntity { 7 | 8 | MCDyeColor getColor(); 9 | void setColor(MCDyeColor color); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockBurnEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCBlockBurnEvent extends BindableEvent { 7 | 8 | MCBlock getBlock(); 9 | 10 | MCBlock getFireBlock(); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPrepareAnvilEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCPlayer; 4 | import com.laytonsmith.abstraction.MCItemStack; 5 | 6 | public interface MCPrepareAnvilEvent extends MCInventoryEvent { 7 | MCPlayer getPlayer(); 8 | 9 | void setResult(MCItemStack i); 10 | } 11 | -------------------------------------------------------------------------------- /mustacheTemplates/beanValidation.mustache: -------------------------------------------------------------------------------- 1 | {{#required}} 2 | @NotNull 3 | {{/required}} 4 | {{#is this 'container'}} 5 | {{#isNot this 'primitive-type'}} 6 | {{#isNot this 'enum'}} 7 | @Valid 8 | {{/isNot}} 9 | {{/isNot}} 10 | {{/is}} 11 | {{#isNot this 'container'}} 12 | {{#isNot this 'primitive-type'}} 13 | @Valid 14 | {{/isNot}} 15 | {{/isNot}} 16 | {{>beanValidationCore}} -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCIgniteCause.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.IgniteCause") 6 | public enum MCIgniteCause { 7 | LAVA, 8 | FLINT_AND_STEEL, 9 | SPREAD, 10 | LIGHTNING, 11 | FIREBALL, 12 | ENDER_CRYSTAL, 13 | EXPLOSION, 14 | ARROW 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCRedstoneChangedEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCLocation; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCRedstoneChangedEvent extends BindableEvent { 7 | 8 | boolean isActive(); 9 | 10 | MCLocation getLocation(); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCCraftingInventory.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCCraftingInventory extends MCInventory { 4 | 5 | MCItemStack[] getMatrix(); 6 | 7 | MCRecipe getRecipe(); 8 | 9 | MCItemStack getResult(); 10 | 11 | void setMatrix(MCItemStack[] contents); 12 | 13 | void setResult(MCItemStack result); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCItemProjectile.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCItemStack; 4 | import com.laytonsmith.abstraction.MCMetadatable; 5 | 6 | public interface MCItemProjectile extends MCProjectile, MCMetadatable { 7 | MCItemStack getItem(); 8 | void setItem(MCItemStack item); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCSheep.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCDyeColor; 4 | 5 | public interface MCSheep extends MCAnimal { 6 | 7 | MCDyeColor getColor(); 8 | 9 | void setColor(MCDyeColor color); 10 | 11 | boolean isSheared(); 12 | 13 | void setSheared(boolean shear); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCTameable.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCAnimalTamer; 4 | 5 | public interface MCTameable extends MCAnimal { 6 | 7 | boolean isTamed(); 8 | 9 | void setTamed(boolean bln); 10 | 11 | MCAnimalTamer getOwner(); 12 | 13 | void setOwner(MCAnimalTamer at); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCFishingState.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.FishingState") 6 | public enum MCFishingState { 7 | CAUGHT_ENTITY, 8 | CAUGHT_FISH, 9 | FAILED_ATTEMPT, 10 | FISHING, 11 | IN_GROUND, 12 | BITE, 13 | REEL_IN, 14 | LURED 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCTreeSpecies.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.WoodType") 6 | public enum MCTreeSpecies { 7 | ACACIA, 8 | BAMBOO, 9 | BIRCH, 10 | CHERRY, 11 | DARK_OAK, 12 | JUNGLE, 13 | MANGROVE, 14 | OAK, 15 | PALE_OAK, 16 | SPRUCE, 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerEnterBedEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | import com.laytonsmith.abstraction.enums.MCEnterBedResult; 5 | 6 | public interface MCPlayerEnterBedEvent extends MCPlayerEvent { 7 | 8 | MCBlock getBed(); 9 | MCEnterBedResult getResult(); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPrepareSmithingEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCItemStack; 4 | import com.laytonsmith.abstraction.MCPlayer; 5 | 6 | public interface MCPrepareSmithingEvent extends MCInventoryEvent { 7 | MCPlayer getPlayer(); 8 | 9 | void setResult(MCItemStack stack); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/exceptions/LoopBreakException.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.exceptions; 2 | 3 | import com.laytonsmith.core.constructs.Target; 4 | 5 | /** 6 | * 7 | * 8 | */ 9 | public class LoopBreakException extends LoopManipulationException { 10 | 11 | public LoopBreakException(int times, Target t) { 12 | super(times, "break", t); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/FrontPage: -------------------------------------------------------------------------------- 1 | Welcome to the official site for %%branding%%! For docs, click here. 2 | 3 | For the docs for the latest version, see here. 4 | 5 | 9 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCHoglin.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCHoglin; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCHoglin extends BukkitMCAnimal implements MCHoglin { 7 | 8 | public BukkitMCHoglin(Entity be) { 9 | super(be); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCMule.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCMule; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCMule extends BukkitMCChestedHorse implements MCMule { 7 | 8 | public BukkitMCMule(Entity t) { 9 | super(t); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCSalmon.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCSalmon extends MCLivingEntity { 6 | 7 | Variant getVariant(); 8 | void setVariant(Variant size); 9 | 10 | enum Variant { 11 | SMALL, 12 | MEDIUM, 13 | LARGE 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCTrident.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCTrident extends MCProjectile { 4 | int getKnockbackStrength(); 5 | void setKnockbackStrength(int strength); 6 | boolean isCritical(); 7 | void setCritical(boolean critical); 8 | double getDamage(); 9 | void setDamage(double damage); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPrepareGrindstoneEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCItemStack; 4 | import com.laytonsmith.abstraction.MCPlayer; 5 | 6 | public interface MCPrepareGrindstoneEvent extends MCInventoryEvent { 7 | MCPlayer getPlayer(); 8 | 9 | void setResult(MCItemStack stack); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCFoodComponent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCFoodComponent extends AbstractionObject { 4 | int getNutrition(); 5 | void setNutrition(int nutrition); 6 | float getSaturation(); 7 | void setSaturation(float saturation); 8 | boolean getCanAlwaysEat(); 9 | void setCanAlwaysEat(boolean canAlwaysEat); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCStonecuttingRecipe.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCMaterial; 4 | 5 | public interface MCStonecuttingRecipe extends MCRecipe { 6 | MCRecipeChoice getInput(); 7 | void setInput(MCItemStack input); 8 | void setInput(MCMaterial mat); 9 | void setInput(MCRecipeChoice choice); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCHusk.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCHusk; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCHusk extends BukkitMCZombie implements MCHusk { 7 | 8 | public BukkitMCHusk(Entity zombie) { 9 | super(zombie); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCRotation.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.Rotation") 6 | public enum MCRotation { 7 | CLOCKWISE, 8 | CLOCKWISE_135, 9 | CLOCKWISE_45, 10 | COUNTER_CLOCKWISE, 11 | COUNTER_CLOCKWISE_45, 12 | FLIPPED, 13 | FLIPPED_45, 14 | NONE 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockGrowEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | import com.laytonsmith.abstraction.blocks.MCBlockState; 5 | 6 | public interface MCBlockGrowEvent extends MCBlockEvent { 7 | 8 | @Override 9 | MCBlock getBlock(); 10 | 11 | MCBlockState getNewState(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/exceptions/LoopContinueException.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.exceptions; 2 | 3 | import com.laytonsmith.core.constructs.Target; 4 | 5 | /** 6 | * 7 | * 8 | */ 9 | public class LoopContinueException extends LoopManipulationException { 10 | 11 | public LoopContinueException(int times, Target t) { 12 | super(times, "continue", t); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/functions/CompiledFunction.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.functions; 2 | 3 | import com.laytonsmith.core.constructs.Target; 4 | 5 | /** 6 | * This interface should be extended to let the static compiler know how to "execute" a function. 7 | */ 8 | public interface CompiledFunction { 9 | 10 | public String compile(Target t, String... args); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCGrindstoneInventory.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCGrindstoneInventory extends MCInventory { 4 | MCItemStack getUpperItem(); 5 | MCItemStack getLowerItem(); 6 | MCItemStack getResult(); 7 | 8 | void setUpperItem(MCItemStack i); 9 | void setLowerItem(MCItemStack i); 10 | void setResult(MCItemStack i); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCDonkey.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCDonkey; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCDonkey extends BukkitMCChestedHorse implements MCDonkey { 7 | 8 | public BukkitMCDonkey(Entity t) { 9 | super(t); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCWitch.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCWitch; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCWitch extends BukkitMCLivingEntity implements MCWitch { 7 | 8 | public BukkitMCWitch(Entity ent) { 9 | super(ent); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCAxolotl.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCAxolotlType; 4 | 5 | public interface MCAxolotl extends MCAnimal { 6 | boolean isPlayingDead(); 7 | void setPlayingDead(boolean playingDead); 8 | MCAxolotlType getAxolotlType(); 9 | void setAxolotlType(MCAxolotlType type); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCCatType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.CatType") 6 | public enum MCCatType { 7 | ALL_BLACK, 8 | BLACK, 9 | BRITISH_SHORTHAIR, 10 | CALICO, 11 | JELLIE, 12 | PERSIAN, 13 | RAGDOLL, 14 | RED, 15 | SIAMESE, 16 | TABBY, 17 | WHITE 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCEnderDragonPhase.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | public enum MCEnderDragonPhase { 4 | 5 | BREATH_ATTACK, 6 | CHARGE_PLAYER, 7 | CIRCLING, 8 | DYING, 9 | FLY_TO_PORTAL, 10 | HOVER, 11 | LAND_ON_PORTAL, 12 | LEAVE_PORTAL, 13 | ROAR_BEFORE_ATTACK, 14 | SEARCH_FOR_BREATH_ATTACK_TARGET, 15 | STRAFING 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/events/AbstractEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.events; 2 | 3 | /** 4 | * This class is deprecated, and events should extend AbstractGenericEvent directly instead. 5 | * @deprecated Use {@link AbstractGenericEvent} instead. 6 | */ 7 | @Deprecated 8 | public abstract class AbstractEvent 9 | extends AbstractGenericEvent { 10 | 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCEvoker.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCEvoker; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCEvoker extends BukkitMCLivingEntity implements MCEvoker { 7 | 8 | public BukkitMCEvoker(Entity ent) { 9 | super(ent); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCStray.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCStray; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCStray extends BukkitMCSkeleton implements MCStray { 7 | 8 | public BukkitMCStray(Entity skeleton) { 9 | super(skeleton); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCTrader.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCTrader; 4 | import org.bukkit.entity.Entity; 5 | 6 | public abstract class BukkitMCTrader extends BukkitMCBreedable implements MCTrader { 7 | 8 | public BukkitMCTrader(Entity be) { 9 | super(be); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCParrot.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCParrotType; 4 | 5 | public interface MCParrot extends MCTameable { 6 | 7 | boolean isSitting(); 8 | 9 | void setSitting(boolean sitting); 10 | 11 | MCParrotType getVariant(); 12 | 13 | void setVariant(MCParrotType variant); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCRecipeType.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.RecipeType") 6 | public enum MCRecipeType { 7 | BLASTING, 8 | CAMPFIRE, 9 | COMPLEX, 10 | FURNACE, 11 | MERCHANT, 12 | SHAPED, 13 | SHAPELESS, 14 | SMITHING, 15 | SMOKING, 16 | STONECUTTING 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCSoundCategory.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.SoundCategory") 6 | public enum MCSoundCategory { 7 | MASTER, 8 | MUSIC, 9 | RECORDS, 10 | WEATHER, 11 | BLOCKS, 12 | HOSTILE, 13 | NEUTRAL, 14 | PLAYERS, 15 | AMBIENT, 16 | VOICE, 17 | UI 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCMerchant.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCMerchant extends AbstractionObject { 6 | 7 | boolean isTrading(); 8 | 9 | MCHumanEntity getTrader(); 10 | 11 | List getRecipes(); 12 | 13 | void setRecipes(List recipes); 14 | 15 | String getTitle(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCBogged.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCBogged; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCBogged extends BukkitMCSkeleton implements MCBogged { 7 | 8 | public BukkitMCBogged(Entity skeleton) { 9 | super(skeleton); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCDrowned.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCDrowned; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCDrowned extends BukkitMCZombie implements MCDrowned { 7 | 8 | public BukkitMCDrowned(Entity zombie) { 9 | super(zombie); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/ArrayIteration.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class ArrayIteration extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "Array_Iteration"; 11 | } 12 | 13 | @Override 14 | public String getDisplayName() { 15 | return "Array Iteration"; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/resources/apps.methodscript.com/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "apps.methodscript.com", 3 | "version": "1.0.0", 4 | "type": "module", 5 | "dependencies": { 6 | "@typespec/compiler": "latest", 7 | "@typespec/http": "^0.55.0", 8 | "@typespec/openapi": "^0.55.0", 9 | "@typespec/openapi3": "^0.55.0", 10 | "@typespec/versioning": "^0.55.0" 11 | }, 12 | "private": true 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/css/ie/v8.css: -------------------------------------------------------------------------------- 1 | /* 2 | Interphase by TEMPLATED 3 | templated.co @templatedco 4 | Released for free under the Creative Commons Attribution 3.0 license (templated.co/license) 5 | */ 6 | 7 | /* Banner */ 8 | 9 | #banner { 10 | background: url("../../images/banner.jpg"); 11 | background-size: cover; 12 | -ms-behavior: url("css/ie/backgroundsize.min.htc"); 13 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCFireworkMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCFireworkMeta extends MCItemMeta { 6 | 7 | int getStrength(); 8 | 9 | void setStrength(int strength); 10 | 11 | List getEffects(); 12 | 13 | void addEffect(MCFireworkEffect effect); 14 | 15 | void clearEffects(); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCAgeable.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLivingEntity; 4 | 5 | public interface MCAgeable extends MCLivingEntity { 6 | 7 | int getAge(); 8 | 9 | void setAge(int age); 10 | 11 | boolean isAdult(); 12 | 13 | void setAdult(); 14 | 15 | boolean isBaby(); 16 | 17 | void setBaby(); 18 | } 19 | -------------------------------------------------------------------------------- /mustacheTemplates/gitignore.mustache: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # exclude jar for gradle wrapper 12 | !gradle/wrapper/*.jar 13 | 14 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 15 | hs_err_pid* 16 | 17 | # build files 18 | **/target 19 | target 20 | .gradle 21 | build 22 | -------------------------------------------------------------------------------- /mustacheTemplates/licenseInfo.mustache: -------------------------------------------------------------------------------- 1 | /* 2 | * {{{appName}}} 3 | * {{{appDescription}}} 4 | * 5 | * {{#version}}OpenAPI spec version: {{{version}}}{{/version}} 6 | * {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}} 7 | * 8 | * NOTE: This class is auto generated by the swagger code generator program. 9 | * https://github.com/swagger-api/swagger-codegen.git 10 | * Do not edit the class manually. 11 | */ 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPluginIncomingMessageEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCPlayer; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCPluginIncomingMessageEvent extends BindableEvent { 7 | 8 | String getChannel(); 9 | 10 | byte[] getBytes(); 11 | 12 | MCPlayer getPlayer(); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCBlockStateMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlockState; 4 | 5 | public interface MCBlockStateMeta extends MCItemMeta { 6 | 7 | boolean hasBlockState(); 8 | 9 | MCBlockState getBlockState(); 10 | 11 | MCBlockState getBlockState(boolean copy); 12 | 13 | void setBlockState(MCBlockState state); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCFurnace.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCFurnaceInventory; 4 | 5 | public interface MCFurnace extends MCContainer { 6 | short getBurnTime(); 7 | void setBurnTime(short burnTime); 8 | short getCookTime(); 9 | void setCookTime(short cookTime); 10 | @Override 11 | MCFurnaceInventory getInventory(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCVindicator.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCVindicator; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCVindicator extends BukkitMCLivingEntity implements MCVindicator { 7 | 8 | public BukkitMCVindicator(Entity ent) { 9 | super(ent); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCCommandMinecart.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCCommandSender; 4 | 5 | public interface MCCommandMinecart extends MCMinecart, MCCommandSender { 6 | 7 | @Override 8 | String getName(); 9 | 10 | void setName(String cmd); 11 | 12 | String getCommand(); 13 | 14 | void setCommand(String cmd); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCEnterBedResult.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.EnterBedResult") 6 | public enum MCEnterBedResult { 7 | NOT_POSSIBLE_HERE, 8 | NOT_POSSIBLE_NOW, 9 | NOT_SAFE, 10 | OK, 11 | OTHER_PROBLEM, 12 | TOO_FAR_AWAY, 13 | OBSTRUCTED, // Paper 14 | EXPLOSION, // Paper 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCResourcePackStatus.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.ResourcePackStatus") 6 | public enum MCResourcePackStatus { 7 | ACCEPTED, 8 | DECLINED, 9 | DISCARDED, 10 | DOWNLOADED, 11 | FAILED_DOWNLOAD, 12 | FAILED_RELOAD, 13 | INVALID_URL, 14 | SUCCESSFULLY_LOADED 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.enums.MCEntityType; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCEntityEvent extends BindableEvent { 8 | 9 | MCEntity getEntity(); 10 | 11 | MCEntityType getEntityType(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCItemSpawnEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.entities.MCItem; 4 | import com.laytonsmith.abstraction.MCLocation; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCItemSpawnEvent extends BindableEvent { 8 | 9 | MCItem getEntity(); 10 | 11 | MCLocation getLocation(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerKickEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerKickEvent extends MCPlayerEvent { 4 | 5 | String getMessage(); 6 | 7 | void setMessage(String message); 8 | 9 | String getReason(); 10 | 11 | void setReason(String message); 12 | 13 | boolean isCancelled(); 14 | 15 | void setCancelled(boolean cancelled); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerMoveEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCLocation; 4 | 5 | public interface MCPlayerMoveEvent extends MCPlayerEvent { 6 | 7 | int getThreshold(); 8 | 9 | MCLocation getFrom(); 10 | 11 | MCLocation getTo(); 12 | 13 | void setCancelled(boolean state); 14 | 15 | boolean isCancelled(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCVehicleMoveEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCLocation; 4 | 5 | public interface MCVehicleMoveEvent extends MCVehicleEvent { 6 | 7 | int getThreshold(); 8 | 9 | MCLocation getFrom(); 10 | 11 | MCLocation getTo(); 12 | 13 | void setCancelled(boolean state); 14 | 15 | boolean isCancelled(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/compiler/analysis/Namespace.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.compiler.analysis; 2 | 3 | /** 4 | * Represents the namespace of declarations and references in a scope graph. 5 | * @author P.J.S. Kools 6 | */ 7 | public enum Namespace { 8 | VARIABLE, 9 | IVARIABLE, 10 | IVARIABLE_ASSIGN, 11 | PROCEDURE, 12 | INCLUDE, 13 | RETURNABLE, 14 | BREAKABLE, 15 | CONTINUABLE 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/templates/PersistenceNetwork.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.tools.docgen.templates; 2 | 3 | /** 4 | * 5 | */ 6 | public class PersistenceNetwork extends Template { 7 | 8 | @Override 9 | public String getName() { 10 | return "Persistence_Network"; 11 | } 12 | 13 | @Override 14 | public String getDisplayName() { 15 | return "Persistence Network"; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCPlayerProfile.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.UUID; 4 | 5 | public interface MCPlayerProfile extends AbstractionObject { 6 | 7 | String getName(); 8 | 9 | UUID getId(); 10 | 11 | MCProfileProperty getProperty(String key); 12 | 13 | void setProperty(MCProfileProperty property); 14 | 15 | boolean removeProperty(String key); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCBrewingStand.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCBrewerInventory; 4 | 5 | public interface MCBrewingStand extends MCContainer { 6 | int getBrewingTime(); 7 | int getFuelLevel(); 8 | @Override 9 | MCBrewerInventory getInventory(); 10 | void setBrewingTime(int brewTime); 11 | void setFuelLevel(int level); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCZombieHorse.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCZombieHorse; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCZombieHorse extends BukkitMCAbstractHorse implements MCZombieHorse { 7 | 8 | public BukkitMCZombieHorse(Entity t) { 9 | super(t); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCItemDespawnEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.entities.MCItem; 4 | import com.laytonsmith.abstraction.MCLocation; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCItemDespawnEvent extends BindableEvent { 8 | 9 | MCItem getEntity(); 10 | 11 | MCLocation getLocation(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCItemSwapEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCItemStack; 4 | 5 | public interface MCItemSwapEvent extends MCPlayerEvent { 6 | 7 | MCItemStack getMainHandItem(); 8 | 9 | MCItemStack getOffHandItem(); 10 | 11 | void setMainHandItem(MCItemStack item); 12 | 13 | void setOffHandItem(MCItemStack item); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/PureUtilities/MSP/MSPUtil.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.PureUtilities.MSP; 2 | 3 | /** 4 | * Contains static utility methods for the MSP package. 5 | * 6 | */ 7 | public final class MSPUtil { 8 | 9 | private MSPUtil() { 10 | } 11 | 12 | public static String getCapabilityName(CapabilityList.Capability capability) { 13 | return capability.namespace() + "." + capability.name(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCElderGuardian.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCElderGuardian; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCElderGuardian extends BukkitMCGuardian implements MCElderGuardian { 7 | 8 | public BukkitMCElderGuardian(Entity ent) { 9 | super(ent); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCFox.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCFoxType; 4 | 5 | public interface MCFox extends MCAnimal { 6 | MCFoxType getVariant(); 7 | void setVariant(MCFoxType type); 8 | boolean isCrouching(); 9 | void setCrouching(boolean crouching); 10 | boolean isSitting(); 11 | void setSitting(boolean sitting); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityEnterPortalEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.MCLocation; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCEntityEnterPortalEvent extends BindableEvent { 8 | 9 | MCEntity getEntity(); 10 | 11 | MCLocation getLocation(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCServerCommandEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCCommandSender; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCServerCommandEvent extends BindableEvent { 7 | 8 | String getCommand(); 9 | 10 | void setCommand(String command); 11 | 12 | MCCommandSender getCommandSender(); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCGlowItemFrame.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCGlowItemFrame; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCGlowItemFrame extends BukkitMCItemFrame implements MCGlowItemFrame { 7 | 8 | public BukkitMCGlowItemFrame(Entity frame) { 9 | super(frame); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCSkeletonHorse.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCSkeletonHorse; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCSkeletonHorse extends BukkitMCAbstractHorse implements MCSkeletonHorse { 7 | 8 | public BukkitMCSkeletonHorse(Entity t) { 9 | super(t); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCLlama.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | public interface MCLlama extends MCChestedHorse { 6 | 7 | @MEnum("com.commandhelper.LlamaColor") 8 | enum MCLlamaColor { 9 | CREAMY, WHITE, BROWN, GRAY 10 | } 11 | 12 | MCLlamaColor getLlamaColor(); 13 | 14 | void setLlamaColor(MCLlamaColor color); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCTeleportCause.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.TeleportCause") 6 | public enum MCTeleportCause { 7 | COMMAND, 8 | END_PORTAL, 9 | ENDER_PEARL, 10 | NETHER_PORTAL, 11 | PLUGIN, 12 | SPECTATE, 13 | END_GATEWAY, 14 | CHORUS_FRUIT, 15 | DISMOUNT, 16 | EXIT_BED, 17 | UNKNOWN 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityUnleashEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | import com.laytonsmith.abstraction.MCEntity; 3 | import com.laytonsmith.abstraction.enums.MCUnleashReason; 4 | import com.laytonsmith.core.events.BindableEvent; 5 | 6 | public interface MCEntityUnleashEvent extends BindableEvent { 7 | 8 | MCEntity getEntity(); 9 | 10 | MCUnleashReason getReason(); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCGamemodeChangeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCPlayer; 4 | import com.laytonsmith.abstraction.enums.MCGameMode; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCGamemodeChangeEvent extends BindableEvent { 8 | 9 | MCPlayer getPlayer(); 10 | 11 | MCGameMode getNewGameMode(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/asm/AsmCommonLib.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.asm; 2 | 3 | import com.laytonsmith.core.environments.Environment; 4 | 5 | /** 6 | * This utility class is used to wrap retrieval of common utility libraries, which need to be included for various 7 | * core things. 8 | */ 9 | public final class AsmCommonLib { 10 | 11 | public void includeLib(String libName, Environment env) { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/docs/Help: -------------------------------------------------------------------------------- 1 | 2 | 3 | Need more help? 4 | 5 | Chat with us on on [https://discord.gg/Z7jpHed Discord], the 6 | [https://github.com/EngineHub/CommandHelper/issues issue tracker], IRC in #CommandHelper on irc.esper.net, 7 | or just use the IRC widget below: 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCVillager.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCProfession; 4 | 5 | public interface MCVillager extends MCTrader { 6 | 7 | MCProfession getProfession(); 8 | void setProfession(MCProfession profession); 9 | int getLevel(); 10 | void setLevel(int level); 11 | int getExperience(); 12 | void setExperience(int exp); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerItemConsumeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCItemStack; 4 | import com.laytonsmith.abstraction.enums.MCEquipmentSlot; 5 | 6 | public interface MCPlayerItemConsumeEvent extends MCPlayerEvent { 7 | 8 | MCItemStack getItem(); 9 | 10 | void setItem(MCItemStack item); 11 | 12 | MCEquipmentSlot getHand(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/natives/interfaces/MAnnotation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com.laytonsmith.core.natives.interfaces; 7 | 8 | /** 9 | * Represents a MethodScript annotation. 10 | */ 11 | public class MAnnotation { 12 | // TODO 13 | } 14 | -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit/formParams.mustache: -------------------------------------------------------------------------------- 1 | {{~#is this 'form-param'}}{{#isNot this 'binary'}}{{#is ../this 'multipart'}}@retrofit.http.Part{{/is}}{{#isNot ../this 'multipart'}}@retrofit.http.Field{{/isNot}}("{{baseName}}") {{{dataType}}} {{paramName}}{{/isNot}}{{#is this 'binary'}}{{#is ../this 'multipart'}}@retrofit.http.Part{{/is}}{{#isNot ../this 'multipart'}}@retrofit.http.Field{{/isNot}}("{{baseName}}") TypedFile {{paramName}}{{/is}}{{/is}} -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCEndGateway.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCLocation; 4 | 5 | public interface MCEndGateway extends MCBlockState { 6 | MCLocation getExitLocation(); 7 | void setExitLocation(MCLocation location); 8 | boolean isExactTeleport(); 9 | void setExactTeleport(boolean isExact); 10 | long getAge(); 11 | void setAge(long age); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCWitherSkeleton.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCWitherSkeleton; 4 | import org.bukkit.entity.Entity; 5 | 6 | public class BukkitMCWitherSkeleton extends BukkitMCSkeleton implements MCWitherSkeleton { 7 | 8 | public BukkitMCWitherSkeleton(Entity skeleton) { 9 | super(skeleton); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCOminousItemSpawner.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.MCItemStack; 5 | 6 | public interface MCOminousItemSpawner extends MCEntity { 7 | 8 | MCItemStack getItem(); 9 | 10 | void setItem(MCItemStack item); 11 | 12 | long getDelay(); 13 | 14 | void setDelay(long delay); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockExplodeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | 5 | import java.util.List; 6 | 7 | public interface MCBlockExplodeEvent extends MCBlockEvent { 8 | 9 | List getBlocks(); 10 | 11 | void setBlocks(List blocks); 12 | 13 | float getYield(); 14 | 15 | void setYield(float power); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCFirework.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCFireworkMeta; 4 | 5 | public interface MCFirework extends MCProjectile { 6 | 7 | MCFireworkMeta getFireWorkMeta(); 8 | 9 | void setFireWorkMeta(MCFireworkMeta fm); 10 | 11 | boolean isShotAtAngle(); 12 | 13 | void setShotAtAngle(boolean shotAtAngle); 14 | 15 | void detonate(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCDyeColor.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.DyeColor") 6 | public enum MCDyeColor { 7 | WHITE, 8 | ORANGE, 9 | MAGENTA, 10 | LIGHT_BLUE, 11 | YELLOW, 12 | LIME, 13 | PINK, 14 | GRAY, 15 | LIGHT_GRAY, 16 | CYAN, 17 | PURPLE, 18 | BLUE, 19 | BROWN, 20 | GREEN, 21 | RED, 22 | BLACK 23 | } 24 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/DocDirectory: -------------------------------------------------------------------------------- 1 | Please choose the version of %%branding%% you wish to view: 2 | 3 | 9 | 10 | 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCArmorMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.enums.MCTrimMaterial; 4 | import com.laytonsmith.abstraction.enums.MCTrimPattern; 5 | 6 | public interface MCArmorMeta extends MCItemMeta { 7 | boolean hasTrim(); 8 | void setTrim(MCTrimPattern pattern, MCTrimMaterial material); 9 | MCTrimPattern getTrimPattern(); 10 | MCTrimMaterial getTrimMaterial(); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCHanging.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.blocks.MCBlockFace; 5 | 6 | public interface MCHanging extends MCEntity { 7 | 8 | MCBlockFace getFacing(); 9 | 10 | void setFacingDirection(MCBlockFace direction); 11 | 12 | boolean setFacingDirection(MCBlockFace direction, boolean force); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerPortalEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerPortalEvent extends MCPlayerTeleportEvent { 4 | 5 | int getSearchRadius(); 6 | 7 | void setSearchRadius(int radius); 8 | 9 | int getCreationRadius(); 10 | 11 | void setCreationRadius(int radius); 12 | 13 | boolean canCreatePortal(); 14 | 15 | void setCanCreatePortal(boolean canCreate); 16 | } 17 | -------------------------------------------------------------------------------- /mustacheTemplates/travis.mustache: -------------------------------------------------------------------------------- 1 | # 2 | # Generated by: https://github.com/swagger-api/swagger-codegen.git 3 | # 4 | language: java 5 | jdk: 6 | - oraclejdk8 7 | - oraclejdk7 8 | before_install: 9 | # ensure gradlew has proper permission 10 | - chmod a+x ./gradlew 11 | script: 12 | # test using maven 13 | - mvn test 14 | # uncomment below to test using gradle 15 | # - gradle test 16 | # uncomment below to test using sbt 17 | # - sbt test 18 | -------------------------------------------------------------------------------- /mustacheTemplates/xmlAnnotation.mustache: -------------------------------------------------------------------------------- 1 | {{#withXml}} 2 | @XmlRootElement({{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}name = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}") 3 | @XmlAccessorType(XmlAccessType.FIELD) 4 | {{#jackson}}@JacksonXmlRootElement({{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{classname}}{{/xmlName}}"){{/jackson}}{{/withXml}} -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCEnchantmentOffer.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.enums.MCEnchantment; 4 | 5 | public interface MCEnchantmentOffer { 6 | MCEnchantment getEnchantment(); 7 | 8 | void setEnchantment(MCEnchantment enchant); 9 | 10 | int getEnchantmentLevel(); 11 | 12 | void setEnchantmentLevel(int level); 13 | 14 | int getCost(); 15 | 16 | void setCost(int cost); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCProjectileLaunchEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.entities.MCProjectile; 4 | import com.laytonsmith.abstraction.enums.MCEntityType; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCProjectileLaunchEvent extends BindableEvent { 8 | 9 | MCProjectile getEntity(); 10 | 11 | MCEntityType getEntityType(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/tools/docgen/localization/ResultType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com.laytonsmith.tools.docgen.localization; 7 | 8 | /** 9 | * 10 | */ 11 | public enum ResultType { 12 | FUNCTION, 13 | EVENT, 14 | OBJECT, 15 | ARTICLE, 16 | API 17 | } 18 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/Iterable.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * An object that is iterable is one that can be iterated. It must implement both ArrayAccess and Sizeable. 12 | */ 13 | public native interface ms.lang.Iterable implements ArrayAccess, Sizeable { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCFireworkEffect.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.enums.MCFireworkType; 4 | 5 | import java.util.List; 6 | 7 | public interface MCFireworkEffect extends AbstractionObject { 8 | 9 | boolean hasFlicker(); 10 | 11 | boolean hasTrail(); 12 | 13 | List getColors(); 14 | 15 | List getFadeColors(); 16 | 17 | MCFireworkType getType(); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCShapelessRecipe.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCMaterial; 4 | 5 | import java.util.List; 6 | 7 | public interface MCShapelessRecipe extends MCRecipe { 8 | void addIngredient(MCMaterial ingredient, int amount); 9 | void addIngredient(MCMaterial ingredient); 10 | void addIngredient(MCRecipeChoice choice); 11 | List getIngredients(); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCEnderCrystal.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.MCLocation; 5 | 6 | public interface MCEnderCrystal extends MCEntity { 7 | 8 | boolean isShowingBottom(); 9 | 10 | void setShowingBottom(boolean showing); 11 | 12 | MCLocation getBeamTarget(); 13 | 14 | void setBeamTarget(MCLocation target); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCFallingBlock.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.blocks.MCMaterial; 5 | 6 | public interface MCFallingBlock extends MCEntity { 7 | boolean getDropItem(); 8 | MCMaterial getMaterial(); 9 | void setDropItem(boolean drop); 10 | boolean canHurtEntities(); 11 | void setHurtEntities(boolean hurt); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCSpectralArrow.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCSpectralArrow extends MCProjectile { 4 | int getKnockbackStrength(); 5 | void setKnockbackStrength(int strength); 6 | boolean isCritical(); 7 | void setCritical(boolean critical); 8 | double getDamage(); 9 | void setDamage(double damage); 10 | int getGlowingTicks(); 11 | void setGlowingTicks(int ticks); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerLoginEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | public interface MCPlayerLoginEvent extends MCPlayerEvent { 4 | 5 | String getName(); 6 | 7 | String getUniqueId(); 8 | 9 | String getKickMessage(); 10 | 11 | void setKickMessage(String msg); 12 | 13 | String getResult(); 14 | 15 | void setResult(String rst); 16 | 17 | String getIP(); 18 | 19 | String getHostname(); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/validators/Positive.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * Indicates that the value is not allowed to be negative, or zero. 12 | */ 13 | @{Target(value: DECLARATION, type: number)} 14 | public annotation ms.lang.validators.Positive { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCCreeper.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | public interface MCCreeper { 4 | 5 | boolean isPowered(); 6 | 7 | void setPowered(boolean powered); 8 | 9 | int getMaxFuseTicks(); 10 | 11 | void setMaxFuseTicks(int ticks); 12 | 13 | int getFuseTicks(); 14 | 15 | void setFuseTicks(int ticks); 16 | 17 | int getExplosionRadius(); 18 | 19 | void setExplosionRadius(int radius); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/events/CancellableEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.events; 2 | 3 | /** 4 | * Some events may have a custom "cancel" option, even though the underlying event isn't cancellable. If so, it should 5 | * implement this interface. 6 | */ 7 | public interface CancellableEvent { 8 | 9 | /** 10 | * If the state is true, cancels the underlying event. 11 | * 12 | * @param state 13 | */ 14 | void cancel(boolean state); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCTransformation.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import org.joml.Quaternionf; 4 | import org.joml.Vector3f; 5 | 6 | /** 7 | * 8 | * @author Cailin 9 | */ 10 | public interface MCTransformation { 11 | 12 | public Vector3f getTranslation(); 13 | 14 | public Quaternionf getLeftRotation(); 15 | 16 | public Vector3f getScale(); 17 | 18 | public Quaternionf getRightRotation(); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityToggleGlideEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.enums.MCEntityType; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCEntityToggleGlideEvent extends BindableEvent { 8 | 9 | boolean isGliding(); 10 | 11 | MCEntity getEntity(); 12 | 13 | MCEntityType getEntityType(); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerDropItemEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.entities.MCItem; 4 | import com.laytonsmith.abstraction.MCItemStack; 5 | 6 | public interface MCPlayerDropItemEvent extends MCPlayerEvent { 7 | 8 | MCItem getItemDrop(); 9 | 10 | void setItemStack(MCItemStack stack); 11 | 12 | boolean isCancelled(); 13 | 14 | void setCancelled(boolean cancelled); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/natives/interfaces/Commentable.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.natives.interfaces; 2 | 3 | import com.laytonsmith.PureUtilities.SmartComment; 4 | 5 | /** 6 | * If an element is Commentable, it must be able to be associated with a {@link SmartComment} block. 7 | */ 8 | public interface Commentable { 9 | 10 | /** 11 | * Returns the comment on this element. 12 | * @return 13 | */ 14 | SmartComment getElementComment(); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCMetadatable.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCMetadatable extends AbstractionObject { 6 | 7 | List getMetadata(String metadataKey); 8 | 9 | boolean hasMetadata(String metadataKey); 10 | 11 | void removeMetadata(String metadataKey, MCPlugin owningPlugin); 12 | 13 | void setMetadata(String metadataKey, MCMetadataValue newMetadataValue); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerInteractEntityEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.enums.MCEquipmentSlot; 5 | 6 | public interface MCPlayerInteractEntityEvent extends MCPlayerEvent { 7 | 8 | MCEntity getEntity(); 9 | 10 | boolean isCancelled(); 11 | 12 | void setCancelled(boolean cancelled); 13 | 14 | MCEquipmentSlot getHand(); 15 | } 16 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "java.compile.nullAnalysis.mode": "automatic", 3 | "java.checkstyle.configuration": "${workspaceFolder}/checkstyle.xml", 4 | "java.checkstyle.properties": { 5 | "config_loc": "${workspaceFolder}", 6 | }, 7 | "java.checkstyle.autocheck": true, 8 | "java.format.settings.url": ".vscode/java-formatter.xml", 9 | "[java]": { 10 | "editor.insertSpaces": false 11 | }, 12 | "files.trimTrailingWhitespace": true, 13 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCLeatherArmorMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCLeatherArmorMeta extends MCItemMeta { 4 | 5 | /** 6 | * Gets the color of the armor. 7 | * 8 | * @return the color of the armor, never null 9 | */ 10 | MCColor getColor(); 11 | 12 | /** 13 | * Sets the color of the armor. 14 | * 15 | * @param color the color to set or default if null. 16 | */ 17 | void setColor(MCColor color); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCSniffer.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCSniffer; 4 | import org.bukkit.entity.Entity; 5 | import org.bukkit.entity.Sniffer; 6 | 7 | public class BukkitMCSniffer extends BukkitMCAnimal implements MCSniffer { 8 | 9 | Sniffer s; 10 | 11 | public BukkitMCSniffer(Entity e) { 12 | super(e); 13 | this.s = (Sniffer) e; 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCVehicle.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCVehicle; 4 | import org.bukkit.entity.Entity; 5 | import org.bukkit.entity.Vehicle; 6 | 7 | public class BukkitMCVehicle extends BukkitMCEntity implements MCVehicle { 8 | 9 | Vehicle v; 10 | 11 | public BukkitMCVehicle(Entity e) { 12 | super(e); 13 | this.v = (Vehicle) e; 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCDifficulty.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.Difficulty") 6 | public enum MCDifficulty { 7 | PEACEFUL(0), 8 | EASY(1), 9 | NORMAL(2), 10 | HARD(3); 11 | 12 | private final int value; 13 | 14 | MCDifficulty(int value) { 15 | this.value = value; 16 | } 17 | 18 | public int getValue() { 19 | return this.value; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/compiler/KeywordDocumentation.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.compiler; 2 | 3 | import com.laytonsmith.core.Documentation; 4 | 5 | /** 6 | * A wrapper interface for reflective access among all keywords, normal, late, and early binding. 7 | */ 8 | public interface KeywordDocumentation extends Documentation { 9 | 10 | /** 11 | * Returns the name of the keyword as used in code. 12 | * @return 13 | */ 14 | public String getKeywordName(); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/validators/Negative.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * Added to a number, indicates that the value must be negative. (Zero is not allowed either.) 12 | */ 13 | @{Target(value: DECLARATION, type: number)} 14 | public annotation ms.lang.validators.Negative { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCFurnaceInventory.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCFurnace; 4 | 5 | public interface MCFurnaceInventory extends MCInventory { 6 | MCItemStack getResult(); 7 | MCItemStack getFuel(); 8 | MCItemStack getSmelting(); 9 | void setFuel(MCItemStack stack); 10 | void setResult(MCItemStack stack); 11 | void setSmelting(MCItemStack stack); 12 | @Override 13 | MCFurnace getHolder(); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCFishHook.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCFishHook; 4 | import org.bukkit.entity.Entity; 5 | import org.bukkit.entity.FishHook; 6 | 7 | public class BukkitMCFishHook extends BukkitMCProjectile implements MCFishHook { 8 | 9 | FishHook f; 10 | 11 | public BukkitMCFishHook(Entity e) { 12 | super(e); 13 | f = (FishHook) e; 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCGuardian.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCGuardian; 4 | import org.bukkit.entity.Entity; 5 | import org.bukkit.entity.Guardian; 6 | 7 | public class BukkitMCGuardian extends BukkitMCLivingEntity implements MCGuardian { 8 | 9 | Guardian e; 10 | 11 | public BukkitMCGuardian(Entity ent) { 12 | super(ent); 13 | e = (Guardian) ent; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCCat.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.enums.MCCatType; 4 | import com.laytonsmith.abstraction.enums.MCDyeColor; 5 | 6 | public interface MCCat extends MCTameable { 7 | MCDyeColor getCollarColor(); 8 | void setCollarColor(MCDyeColor color); 9 | boolean isSitting(); 10 | void setSitting(boolean sitting); 11 | MCCatType getCatType(); 12 | void setCatType(MCCatType type); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerEditBookEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCBookMeta; 4 | 5 | public interface MCPlayerEditBookEvent extends MCPlayerEvent { 6 | 7 | MCBookMeta getNewBookMeta(); 8 | 9 | MCBookMeta getPreviousBookMeta(); 10 | 11 | void setNewBookMeta(MCBookMeta bookMeta); 12 | 13 | int getSlot(); 14 | 15 | boolean isSigning(); 16 | 17 | void setSigning(boolean isSigning); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCVehicleEntityCollideEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | 5 | public interface MCVehicleEntityCollideEvent extends MCVehicleCollideEvent { 6 | 7 | MCEntity getEntity(); 8 | 9 | boolean isCollisionCancelled(); 10 | 11 | boolean isPickupCancelled(); 12 | 13 | void setCollisionCancelled(boolean cancel); 14 | 15 | void setPickupCancelled(boolean cancel); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/JsonSerializer/Required.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * Use on a field to denote that it is required. It must be present in the json, or 12 | * it will trigger an error. 13 | */ 14 | @{Target(FIELD)} 15 | public annotation ms.lang.JsonSerializer.Required { 16 | 17 | } -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/validators/NonZero.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * Indicates that the value may be either positive or negative, but is not allowed 12 | * to be zero. 13 | */ 14 | @{Target(value: DECLARATION, type: number)} 15 | public annotation ms.lang.validators.NonZero { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set default behavior, in case users don't have core.autocrlf set. 2 | * text=auto 3 | *.bat text eol=crlf 4 | *.cmd text eol=crlf 5 | *.psm1 text eol=crlf 6 | *.psd1 text eol=crlf 7 | 8 | #Make the textual files have the text setting, so things never have the wrong line endings. 9 | *.java text 10 | *.xml text 11 | *.txt text 12 | *.yml text 13 | *.ms text 14 | *.msa text 15 | *.md text 16 | *.html text 17 | *.js text 18 | 19 | *.png binary 20 | *.jpg binary 21 | *.jpeg binary 22 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCMetadataValue.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCMetadataValue { 4 | 5 | boolean asBoolean(); 6 | 7 | byte asByte(); 8 | 9 | double asDouble(); 10 | 11 | float asFloat(); 12 | 13 | int asInt(); 14 | 15 | long asLong(); 16 | 17 | short asShort(); 18 | 19 | String asString(); 20 | 21 | MCPlugin getOwningPlugin(); 22 | 23 | void invalidate(); 24 | 25 | Object value(); 26 | 27 | Object getHandle(); 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCProjectileSource.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.PureUtilities.Vector3D; 4 | import com.laytonsmith.abstraction.entities.MCProjectile; 5 | import com.laytonsmith.abstraction.enums.MCEntityType; 6 | 7 | public interface MCProjectileSource extends AbstractionObject { 8 | 9 | MCProjectile launchProjectile(MCEntityType projectile); 10 | 11 | MCProjectile launchProjectile(MCEntityType projectile, Vector3D init); 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCLightningStrikeEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.entities.MCLightningStrike; 4 | 5 | public interface MCLightningStrikeEvent extends MCWeatherEvent { 6 | 7 | MCLightningStrike getLightning(); 8 | 9 | Cause getCause(); 10 | 11 | enum Cause { 12 | COMMAND, 13 | CUSTOM, 14 | ENCHANTMENT, 15 | SPAWNER, 16 | TRIDENT, 17 | TRAP, 18 | WEATHER, 19 | UNKNOWN 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerPickupItemEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.entities.MCItem; 4 | import com.laytonsmith.abstraction.MCItemStack; 5 | 6 | public interface MCPlayerPickupItemEvent extends MCPlayerEvent { 7 | 8 | int getRemaining(); 9 | 10 | MCItem getItem(); 11 | 12 | void setItemStack(MCItemStack stack); 13 | 14 | boolean isCancelled(); 15 | 16 | void setCancelled(boolean cancelled); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/pluginmessages/MCMessenger.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.pluginmessages; 2 | 3 | import java.util.Set; 4 | 5 | public interface MCMessenger { 6 | 7 | MCPluginMessageListenerRegistration registerIncomingPluginChannel(String channel); 8 | 9 | boolean isIncomingChannelRegistered(String channel); 10 | 11 | void unregisterIncomingPluginChannel(String channel); 12 | 13 | Set getIncomingChannels(); 14 | 15 | void closeAllChannels(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCCookingRecipe.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCMaterial; 4 | 5 | public interface MCCookingRecipe extends MCRecipe { 6 | MCRecipeChoice getInput(); 7 | void setInput(MCItemStack input); 8 | void setInput(MCMaterial mat); 9 | void setInput(MCRecipeChoice choice); 10 | int getCookingTime(); 11 | void setCookingTime(int ticks); 12 | float getExperience(); 13 | void setExperience(float exp); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCLlamaSpit.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCLlamaSpit; 4 | import org.bukkit.entity.Entity; 5 | import org.bukkit.entity.LlamaSpit; 6 | 7 | public class BukkitMCLlamaSpit extends BukkitMCProjectile implements MCLlamaSpit { 8 | 9 | LlamaSpit ls; 10 | 11 | public BukkitMCLlamaSpit(Entity ent) { 12 | super(ent); 13 | ls = (LlamaSpit) ent; 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityInteractEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.blocks.MCBlock; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCEntityInteractEvent extends BindableEvent { 8 | 9 | MCEntity getEntity(); 10 | 11 | MCBlock getBlock(); 12 | 13 | boolean isCancelled(); 14 | 15 | void setCancelled(boolean cancelled); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/MethodScriptComplete.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core; 2 | 3 | /** 4 | * 5 | * 6 | */ 7 | public interface MethodScriptComplete { 8 | 9 | /** 10 | * This function is called when the MethodScript has finished. Any output generated by the script is sent here. If 11 | * the script generated an error, null is sent. If the script ran successfully, but did not return any output, an 12 | * empty string is sent. 13 | */ 14 | public void done(String output); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/validators/NonNegative.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * Indicates that a value assigned to this number may not be 12 | * negative. Zero is allowed, however. 13 | */ 14 | @{Target(value: DECLARATION, type: number)} 15 | public annotation ms.lang.validators.NonNegative { 16 | 17 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCBannerMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCBannerMeta extends MCItemMeta { 6 | 7 | void addPattern(MCPattern pattern); 8 | 9 | MCPattern getPattern(int i); 10 | 11 | List getPatterns(); 12 | 13 | int numberOfPatterns(); 14 | 15 | void removePattern(int i); 16 | 17 | void setPattern(int i, MCPattern pattern); 18 | 19 | void setPatterns(List patterns); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/enums/MCPose.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.enums; 2 | 3 | import com.laytonsmith.annotations.MEnum; 4 | 5 | @MEnum("com.commandhelper.Pose") 6 | public enum MCPose { 7 | CROAKING, 8 | DIGGING, 9 | DYING, 10 | EMERGING, 11 | FALL_FLYING, 12 | INHALING, 13 | LONG_JUMPING, 14 | ROARING, 15 | SHOOTING, 16 | SITTING, 17 | SLEEPING, 18 | SLIDING, 19 | SNEAKING, 20 | SNIFFING, 21 | SPIN_ATTACK, 22 | STANDING, 23 | SWIMMING, 24 | USING_TONGUE 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerChatEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCPlayer; 4 | import java.util.List; 5 | 6 | public interface MCPlayerChatEvent extends MCPlayerEvent { 7 | 8 | String getMessage(); 9 | 10 | void setMessage(String message); 11 | 12 | String getFormat(); 13 | 14 | void setFormat(String format); 15 | 16 | List getRecipients(); 17 | 18 | void setRecipients(List list); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/Equals.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * When tagged to a field within a class that is tagged with 12 | * the @{EqualsGenerator} annotation, the generated equals method 13 | * uses that field in the calculation of equality. 14 | */ 15 | @{Target(FIELD)} 16 | public annotation ms.lang.Equals { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/validators/NonPositive.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * Indicates that a value assigned to this number may not be positive. 12 | * Zero is allowed, however. 13 | */ 14 | @{Target(value: DECLARATION, type: number)} 15 | public annotation ms.lang.validators.NonPositive { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCCommandSender.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCCommandSender extends AbstractionObject { 6 | 7 | void sendMessage(String string); 8 | 9 | MCServer getServer(); 10 | 11 | String getName(); 12 | 13 | boolean isOp(); 14 | 15 | boolean hasPermission(String perm); 16 | 17 | boolean isPermissionSet(String perm); 18 | 19 | List getGroups(); 20 | 21 | boolean inGroup(String groupName); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPrepareItemCraftEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCCraftingInventory; 4 | import com.laytonsmith.abstraction.MCPlayer; 5 | import com.laytonsmith.abstraction.MCRecipe; 6 | 7 | public interface MCPrepareItemCraftEvent extends MCInventoryEvent { 8 | MCPlayer getPlayer(); 9 | 10 | MCRecipe getRecipe(); 11 | 12 | boolean isRepair(); 13 | 14 | @Override 15 | MCCraftingInventory getInventory(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/extensions/MSExtension.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.extensions; 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 | @Retention(RetentionPolicy.RUNTIME) 9 | @Target(ElementType.TYPE) 10 | public @interface MSExtension { 11 | 12 | /** 13 | * The name of the extension. 14 | * 15 | * @return String 16 | */ 17 | String value(); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/taskmanager/TaskStateChangeListener.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.taskmanager; 2 | 3 | /** 4 | * Fired when a task's state is changed 5 | */ 6 | public interface TaskStateChangeListener { 7 | 8 | /** 9 | * Fired when a task's state has changed. 10 | * 11 | * @param from The old state 12 | * @param task The TaskHandler for this task. The new state can be determined from this object. 13 | */ 14 | void taskStateChanged(TaskState from, TaskHandler task); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/JsonSerializer/Recommended.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * Denotes that a field is not strictly required, but is recommended. In strict mode, 12 | * this will cause a warning to be issued. 13 | */ 14 | @{Target(FIELD)} 15 | public annotation ms.lang.JsonSerializer.Recommended { 16 | 17 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCBanner.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCPattern; 4 | import com.laytonsmith.abstraction.enums.MCDyeColor; 5 | 6 | import java.util.List; 7 | 8 | public interface MCBanner extends MCBlockState { 9 | MCDyeColor getBaseColor(); 10 | void setBaseColor(MCDyeColor color); 11 | int numberOfPatterns(); 12 | List getPatterns(); 13 | void addPattern(MCPattern pattern); 14 | void clearPatterns(); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityRegainHealthEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.enums.MCRegainReason; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCEntityRegainHealthEvent extends BindableEvent { 8 | 9 | double getAmount(); 10 | 11 | void setAmount(double amount); 12 | 13 | MCEntity getEntity(); 14 | 15 | MCRegainReason getRegainReason(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCHangingBreakEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.entities.MCHanging; 5 | import com.laytonsmith.abstraction.enums.MCRemoveCause; 6 | import com.laytonsmith.core.events.BindableEvent; 7 | 8 | public interface MCHangingBreakEvent extends BindableEvent { 9 | 10 | MCHanging getEntity(); 11 | 12 | MCRemoveCause getCause(); 13 | 14 | MCEntity getRemover(); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCInventoryInteractEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCHumanEntity; 4 | import com.laytonsmith.abstraction.enums.MCResult; 5 | 6 | public interface MCInventoryInteractEvent extends MCInventoryEvent { 7 | 8 | MCHumanEntity getWhoClicked(); 9 | 10 | void setResult(MCResult newResult); 11 | 12 | MCResult getResult(); 13 | 14 | boolean isCancelled(); 15 | 16 | void setCancelled(boolean toCancel); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/events/BindableEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.events; 2 | 3 | /** 4 | * 5 | * 6 | */ 7 | public interface BindableEvent { 8 | 9 | /** 10 | * This returns the underlying event object, as needed by the abstraction layer implementation when dealing with 11 | * events generically. If this event represents a non-minecraft event, and nothing is wrapped, then this should 12 | * return null. 13 | * 14 | * @return 15 | */ 16 | public Object _GetObject(); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/resources/samp_profiles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 15 | 16 | -------------------------------------------------------------------------------- /src/installer/Windows/README.md: -------------------------------------------------------------------------------- 1 | This installer is written so that in general it shouldn't need updating. 2 | However, if it does need updating, you need the NSIS compiler. This can 3 | be found [here](https://sourceforge.net/projects/nsis/). You will also need the 4 | INetC plugin, found [here](http://nsis.sourceforge.net/Inetc_plug-in). Copy the 5 | dlls into C:\Program Files (x86)\NSIS\Plugins. 6 | 7 | Install and launch the compiler. Open the installer.nsi file in the compiler, and 8 | compile it. This will create the installer.exe file. -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCSmithingInventory.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCSmithingInventory extends MCInventory { 4 | MCItemStack getInputEquipment(); 5 | MCItemStack getInputMaterial(); 6 | MCItemStack getInputTemplate(); 7 | MCRecipe getRecipe(); 8 | MCItemStack getResult(); 9 | 10 | void setInputEquipment(MCItemStack stack); 11 | void setInputMaterial(MCItemStack stack); 12 | void setInputTemplate(MCItemStack stack); 13 | void setResult(MCItemStack stack); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCConsoleCommandSender.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit; 2 | 3 | import com.laytonsmith.abstraction.MCConsoleCommandSender; 4 | import org.bukkit.command.ConsoleCommandSender; 5 | 6 | public class BukkitMCConsoleCommandSender extends BukkitMCCommandSender implements MCConsoleCommandSender { 7 | 8 | ConsoleCommandSender ccs; 9 | 10 | public BukkitMCConsoleCommandSender(ConsoleCommandSender ccs) { 11 | super(ccs); 12 | this.ccs = ccs; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCFrog.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.annotations.MEnum; 5 | 6 | public interface MCFrog extends MCAnimal { 7 | 8 | @MEnum("com.commandhelper.FrogType") 9 | enum MCFrogType { 10 | TEMPERATE, WARM, COLD 11 | } 12 | 13 | MCFrogType getFrogType(); 14 | void setFrogType(MCFrogType type); 15 | MCEntity getTongueTarget(); 16 | void setTongueTarget(MCEntity target); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCPlayerRespawnEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCLocation; 4 | 5 | public interface MCPlayerRespawnEvent extends MCPlayerEvent { 6 | 7 | void setRespawnLocation(MCLocation location); 8 | 9 | MCLocation getRespawnLocation(); 10 | 11 | Boolean isBedSpawn(); 12 | 13 | boolean isAnchorSpawn(); 14 | 15 | Reason getReason(); 16 | 17 | enum Reason { 18 | DEATH, 19 | END_PORTAL, 20 | PLUGIN 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCMerchantRecipe.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import java.util.List; 4 | 5 | public interface MCMerchantRecipe extends MCRecipe { 6 | 7 | int getMaxUses(); 8 | 9 | void setMaxUses(int maxUses); 10 | 11 | int getUses(); 12 | 13 | void setUses(int uses); 14 | 15 | boolean hasExperienceReward(); 16 | 17 | void setHasExperienceReward(boolean flag); 18 | 19 | List getIngredients(); 20 | 21 | void setIngredients(List ingredients); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCBeacon.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import java.util.Collection; 4 | 5 | import com.laytonsmith.abstraction.MCLivingEntity; 6 | 7 | public interface MCBeacon extends MCBlockState { 8 | Collection getEntitiesInRange(); 9 | // MCPotionEffect getPrimaryEffect(); 10 | // MCPotionEffect getSecondaryEffect(); 11 | int getTier(); 12 | // void setPrimaryEffect(MCPotionEffect effect); 13 | // void setSecondaryEffect(MCPotionEffect effect); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCZoglin.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.bukkit.entities; 2 | 3 | import com.laytonsmith.abstraction.entities.MCZoglin; 4 | import org.bukkit.entity.Entity; 5 | import org.bukkit.entity.Zoglin; 6 | 7 | public class BukkitMCZoglin extends BukkitMCAgeable implements MCZoglin { 8 | 9 | public BukkitMCZoglin(Entity zombie) { 10 | super(zombie); 11 | } 12 | 13 | @Override 14 | public Zoglin getHandle() { 15 | return (Zoglin) super.getHandle(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCProjectile.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.MCMetadatable; 5 | import com.laytonsmith.abstraction.MCProjectileSource; 6 | 7 | public interface MCProjectile extends MCEntity, MCMetadatable { 8 | 9 | boolean doesBounce(); 10 | 11 | MCProjectileSource getShooter(); 12 | 13 | void setBounce(boolean doesBounce); 14 | 15 | void setShooter(MCProjectileSource shooter); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockDispenseEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.PureUtilities.Vector3D; 4 | import com.laytonsmith.abstraction.MCItemStack; 5 | 6 | public interface MCBlockDispenseEvent extends MCBlockEvent { 7 | 8 | MCItemStack getItem(); 9 | 10 | void setItem(MCItemStack item); 11 | 12 | Vector3D getVelocity(); 13 | 14 | void setVelocity(Vector3D vel); 15 | 16 | boolean isCancelled(); 17 | 18 | void setCancelled(boolean cancel); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCEntityDamageEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.enums.MCDamageCause; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCEntityDamageEvent extends BindableEvent { 8 | 9 | MCDamageCause getCause(); 10 | 11 | MCEntity getEntity(); 12 | 13 | double getFinalDamage(); 14 | 15 | double getDamage(); 16 | 17 | void setDamage(double damage); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/exceptions/CancelCommandException.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.exceptions; 2 | 3 | import com.laytonsmith.core.constructs.Target; 4 | 5 | /** 6 | * 7 | * 8 | */ 9 | public class CancelCommandException extends ProgramFlowManipulationException { 10 | 11 | String message; 12 | 13 | public CancelCommandException(String message, Target t) { 14 | super(t); 15 | this.message = message; 16 | } 17 | 18 | @Override 19 | public String getMessage() { 20 | return message; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCDecoratedPot.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCItemStack; 4 | 5 | import java.util.Map; 6 | 7 | public interface MCDecoratedPot extends MCBlockState { 8 | 9 | Map getSherds(); 10 | 11 | void setSherd(Side side, MCMaterial sherd); 12 | 13 | MCItemStack getItemStack(); 14 | 15 | void setItemStack(MCItemStack item); 16 | 17 | enum Side { 18 | BACK, 19 | FRONT, 20 | LEFT, 21 | RIGHT 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/natives/interfaces/AbstractMixedClass.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.natives.interfaces; 2 | 3 | import com.laytonsmith.core.objects.ObjectType; 4 | 5 | /** 6 | * Provides a basic implementation for Mixed. This assumes the object is a class, along with the additional assumptions 7 | * provided by AbstractMixed. 8 | */ 9 | public abstract class AbstractMixedClass extends AbstractMixed { 10 | 11 | @Override 12 | public ObjectType getObjectType() { 13 | return ObjectType.CLASS; 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /mustacheTemplates/libraries/retrofit2/formParams.mustache: -------------------------------------------------------------------------------- 1 | {{#is this 'form-param'}}{{#isNot this 'binary'}}{{#is this 'multipart'}}@retrofit2.http.Part{{/is}}{{#isNot this 'multipart'}}@retrofit2.http.Field{{/isNot}}("{{baseName}}") {{{dataType}}} {{paramName}}{{/isNot}}{{#is this 'binary'}}{{#is this 'multipart'}}@retrofit2.http.Part{{/is}}{{#isNot this 'multipart'}}@retrofit2.http.Field{{/isNot}}{{#usePlayWS}} okhttp3.MultipartBody.Part {{/usePlayWS}}{{^usePlayWS}}("{{baseName}}\"; filename=\"{{baseName}}") RequestBody {{/usePlayWS}}{{paramName}}{{/is}}{{/is}} -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockFromToEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCBlock; 4 | import com.laytonsmith.abstraction.blocks.MCBlockFace; 5 | import com.laytonsmith.core.events.BindableEvent; 6 | 7 | public interface MCBlockFromToEvent extends BindableEvent { 8 | 9 | MCBlock getBlock(); 10 | 11 | MCBlock getToBlock(); 12 | 13 | MCBlockFace getBlockFace(); 14 | 15 | boolean isCancelled(); 16 | 17 | void setCancelled(boolean cancelled); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/resources/siteDeploy/resources/css/style-large.css: -------------------------------------------------------------------------------- 1 | /* 2 | Interphase by TEMPLATED 3 | templated.co @templatedco 4 | Released for free under the Creative Commons Attribution 3.0 license (templated.co/license) 5 | */ 6 | 7 | /* Basic */ 8 | 9 | body, input, select, textarea { 10 | font-size: 13pt; 11 | } 12 | 13 | /* Banner */ 14 | 15 | #banner { 16 | padding: 12em 0em 10em; 17 | } 18 | 19 | #banner h2 { 20 | font-size: 3.5em; 21 | } 22 | 23 | /* Footer */ 24 | 25 | #footer .icons .rounded { 26 | font-size: 1em; 27 | } -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/blocks/MCBlockState.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.blocks; 2 | 3 | import com.laytonsmith.abstraction.MCLocation; 4 | import com.laytonsmith.abstraction.MCMetadatable; 5 | 6 | public interface MCBlockState extends MCMetadatable { 7 | 8 | MCMaterial getType(); 9 | 10 | MCBlock getBlock(); 11 | 12 | MCLocation getLocation(); 13 | 14 | void update(); 15 | 16 | boolean isLockable(); 17 | 18 | boolean isLocked(); 19 | 20 | String getLock(); 21 | 22 | void setLock(String key); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/core/exceptions/FunctionReturnException.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.core.exceptions; 2 | 3 | import com.laytonsmith.core.constructs.Target; 4 | import com.laytonsmith.core.natives.interfaces.Mixed; 5 | 6 | /** 7 | * 8 | * 9 | */ 10 | public class FunctionReturnException extends ProgramFlowManipulationException { 11 | 12 | Mixed ret; 13 | 14 | public FunctionReturnException(Mixed ret, Target t) { 15 | super(t); 16 | this.ret = ret; 17 | } 18 | 19 | public Mixed getReturn() { 20 | return ret; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/Sizeable.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * A Sizeable object is one that has a length, and can report that length. 12 | */ 13 | public native interface ms.lang.Sizeable { 14 | 15 | /** 16 | * Returns the size of this object. Depending on what this object is, that may represent slightly different things. 17 | */ 18 | int size(); 19 | } 20 | -------------------------------------------------------------------------------- /mustacheTemplates/auth/Authentication.mustache: -------------------------------------------------------------------------------- 1 | {{>licenseInfo}} 2 | 3 | package {{invokerPackage}}.auth; 4 | 5 | import {{invokerPackage}}.Pair; 6 | 7 | import java.util.Map; 8 | import java.util.List; 9 | 10 | public interface Authentication { 11 | /** 12 | * Apply authentication settings to header and query params. 13 | * 14 | * @param queryParams List of query parameters 15 | * @param headerParams Map of header parameters 16 | */ 17 | void applyToParams(List queryParams, Map headerParams); 18 | } 19 | -------------------------------------------------------------------------------- /mustacheTemplates/typeInfoAnnotation.mustache: -------------------------------------------------------------------------------- 1 | {{#jackson}} 2 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "{{discriminator.propertyName}}", visible = true ) 3 | @JsonSubTypes({ 4 | {{#children}} 5 | @JsonSubTypes.Type(value = {{classname}}.class, name = "{{^vendorExtensions.x-discriminator-value}}{{name}}{{/vendorExtensions.x-discriminator-value}}{{#vendorExtensions.x-discriminator-value}}{{{vendorExtensions.x-discriminator-value}}}{{/vendorExtensions.x-discriminator-value}}"), 6 | {{/children}} 7 | }){{/jackson}} 8 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCShapedRecipe.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | import com.laytonsmith.abstraction.blocks.MCMaterial; 4 | 5 | import java.util.Map; 6 | 7 | public interface MCShapedRecipe extends MCRecipe { 8 | Map getIngredientMap(); 9 | String[] getShape(); 10 | void setIngredient(char key, MCItemStack ingredient); 11 | void setIngredient(char key, MCRecipeChoice ingredient); 12 | void setIngredient(char key, MCMaterial ingredient); 13 | void setShape(String[] shape); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCBlockIgniteEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCEntity; 4 | import com.laytonsmith.abstraction.MCPlayer; 5 | import com.laytonsmith.abstraction.blocks.MCBlock; 6 | import com.laytonsmith.abstraction.enums.MCIgniteCause; 7 | 8 | public interface MCBlockIgniteEvent extends MCBlockEvent { 9 | 10 | MCIgniteCause getCause(); 11 | 12 | MCPlayer getPlayer(); 13 | 14 | MCEntity getIgnitingEntity(); 15 | 16 | MCBlock getIgnitingBlock(); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/events/MCInventoryEvent.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.events; 2 | 3 | import com.laytonsmith.abstraction.MCHumanEntity; 4 | import com.laytonsmith.abstraction.MCInventory; 5 | import com.laytonsmith.abstraction.MCInventoryView; 6 | import com.laytonsmith.core.events.BindableEvent; 7 | import java.util.List; 8 | 9 | public interface MCInventoryEvent extends BindableEvent { 10 | 11 | MCInventory getInventory(); 12 | 13 | MCInventoryView getView(); 14 | 15 | List getViewers(); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/methodscript/ms/lang/validators/MinLength.ms: -------------------------------------------------------------------------------- 1 | 9 | 10 | /** 11 | * Indicates that this field must have a minimum length specified. 12 | */ 13 | @{Target(value: DECLARATION, type: Sizeable)} 14 | public annotation ms.lang.validators.MinLength { 15 | /** 16 | * The minimum length of an element. 17 | */ 18 | @{NonNegative} 19 | int @value; 20 | } -------------------------------------------------------------------------------- /src/main/resources/com/laytonsmith/tools/docgen/localization/AboutDialog.html: -------------------------------------------------------------------------------- 1 |
2 |

Localization (L10N) UI

3 |

Based on %%implementation%% version %%version%%

4 |

Portions of this software are protected by the copyright of the MethodScript team. 5 | This software is distributed under the MIT license.

6 |

This tool allows for simplified and correct editing of the translation files that power the localization 7 | framework of the website.

8 |

9 | <3 10 |

11 |
-------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/PureUtilities/VirtualFS/PermissionException.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.PureUtilities.VirtualFS; 2 | 3 | /** 4 | * Thrown if a function failed due to a permissions issue 5 | * 6 | */ 7 | public class PermissionException extends SecurityException { 8 | 9 | public PermissionException(String s) { 10 | super(s); 11 | } 12 | 13 | public PermissionException(Throwable cause) { 14 | super(cause); 15 | } 16 | 17 | public PermissionException(String message, Throwable cause) { 18 | super(message, cause); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/MCSkullMeta.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction; 2 | 3 | public interface MCSkullMeta extends MCItemMeta { 4 | 5 | boolean hasOwner(); 6 | 7 | String getOwner(); 8 | 9 | MCOfflinePlayer getOwningPlayer(); 10 | 11 | boolean setOwner(String owner); 12 | 13 | void setOwningPlayer(MCOfflinePlayer player); 14 | 15 | MCPlayerProfile getProfile(); 16 | 17 | void setProfile(MCPlayerProfile profile); 18 | 19 | String getNoteBlockSound(); 20 | 21 | void setNoteBlockSound(String noteBlockSound); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/laytonsmith/abstraction/entities/MCBee.java: -------------------------------------------------------------------------------- 1 | package com.laytonsmith.abstraction.entities; 2 | 3 | import com.laytonsmith.abstraction.MCLocation; 4 | 5 | public interface MCBee extends MCAnimal { 6 | MCLocation getHiveLocation(); 7 | void setHiveLocation(MCLocation loc); 8 | MCLocation getFlowerLocation(); 9 | void setFlowerLocation(MCLocation loc); 10 | boolean hasNectar(); 11 | void setHasNectar(boolean nectar); 12 | boolean hasStung(); 13 | void setHasStung(boolean stung); 14 | int getAnger(); 15 | void setAnger(int ticks); 16 | } 17 | --------------------------------------------------------------------------------