diff --git a/docs/groovy-script/content/creative_tab.md b/docs/groovy-script/content/creative_tab.md index 1cc0756..dccbcaf 100644 --- a/docs/groovy-script/content/creative_tab.md +++ b/docs/groovy-script/content/creative_tab.md @@ -19,4 +19,4 @@ You can get a creative tab by using creativeTab(String tabName) ``` -A list of existing creative tab names can be obtained by running the `/gs creativeTabs` command. +A list of existing creative tab names can be obtained by running the [`/gs creativeTabs` command](../minecraft/commands/index.md#creative-tabs). diff --git a/docs/groovy-script/getting_started/editors.md b/docs/groovy-script/getting_started/editors.md index 460a863..4a0882c 100644 --- a/docs/groovy-script/getting_started/editors.md +++ b/docs/groovy-script/getting_started/editors.md @@ -15,7 +15,7 @@ There are two ways to start the language server. 1. Adding `-Dgroovyscript.run_ls=true` to the JVM arguments in your preferred launcher and start Minecraft with GroovyScript. You will be able to connect to the language server as soon as GroovyScript has been loaded in the `FMLInitializationEvent` load step. -2. By starting Minecraft and GroovyScript and running the `/grs runLS` command. +2. By starting Minecraft and GroovyScript and running the [`/grs runLS` command](../minecraft/commands/index.md#language-server). As commands can only be run in-game, you will obviously need to load into a world for that. You can check if the server started by checking for a `Starting Language server` message in the `groovy.log` file. diff --git a/docs/groovy-script/getting_started/groovy_log.md b/docs/groovy-script/getting_started/groovy_log.md index d35f122..5966f22 100644 --- a/docs/groovy-script/getting_started/groovy_log.md +++ b/docs/groovy-script/getting_started/groovy_log.md @@ -16,6 +16,14 @@ The file is always `[Minecraft instance path]/logs/groovy.log` for clients and `[Minecraft instance path]/logs/groovy_server.log` for servers. +## Clean Reloading + +When the [`/gs reload` command](../minecraft/commands/index.md#reload) is run to [reload](./reloading.md) +the `postInit` script files, you can pass `--clean` as an argument to remove the previously logged information. + +This can help improve readability of the log file, yet may hide errors that still have an impact on your game. + + ## Interacting diff --git a/docs/groovy-script/getting_started/object_mappers.md b/docs/groovy-script/getting_started/object_mappers.md index 3a9f860..128aed9 100644 --- a/docs/groovy-script/getting_started/object_mappers.md +++ b/docs/groovy-script/getting_started/object_mappers.md @@ -65,10 +65,4 @@ Currently, the best way to observe what Object Mappers will do is to use the Lan ::: -- [IIngredient](../minecraft/ingredient.md) - -- [ItemStack](../minecraft/item.md) - -- [OreDict](../minecraft/ore_dictionary.md) - -- [Resource Location](../minecraft/resource_location.md) +- [All Vanilla Object Mappers](../minecraft/vanilla_object_mappers.md) diff --git a/docs/groovy-script/getting_started/reloading.md b/docs/groovy-script/getting_started/reloading.md index 2d65bb2..6d7b1ac 100644 --- a/docs/groovy-script/getting_started/reloading.md +++ b/docs/groovy-script/getting_started/reloading.md @@ -16,10 +16,16 @@ Some compat may not properly implement reloading, and will not be reloaded prope To reload GroovyScript, either: -- Run the `/gs reload` command +- Run the [`/gs reload` command](../minecraft/commands/index.md#reload) - Use the keybind, by default bound to `CTRL+R` +## Command + +The [`/gs reload` command](../minecraft/commands/index.md#reload) can also be passed the argument `--clean`. +This will delete the existing text in the [`groovy.log`](./groovy_log.md) + + ## Class Caching For performance reasons, script classes are cached. diff --git a/docs/groovy-script/index.md b/docs/groovy-script/index.md index 878dae6..fc19cce 100644 --- a/docs/groovy-script/index.md +++ b/docs/groovy-script/index.md @@ -28,6 +28,7 @@ Are you not seeing what other see on this wiki? Try reloading it. GroovyScript can be downloaded on - [CurseForge](https://www.curseforge.com/minecraft/mc-mods/groovyscript) +- [Modrinth](https://modrinth.com/mod/groovyscript) - [GitHub](https://github.com/CleanroomMC/GroovyScript/releases) ## Features diff --git a/docs/groovy-script/minecraft/commands/index.md b/docs/groovy-script/minecraft/commands/index.md new file mode 100644 index 0000000..b29761f --- /dev/null +++ b/docs/groovy-script/minecraft/commands/index.md @@ -0,0 +1,138 @@ + +# Commands + +GroovyScript adds a large number of commands to aid in developing. + +Any of these commands can be run via using `/gs`, `/grs`, or `groovyscript` interchangeably. +`/gs` will typically be used as it is the shortest. + + +## Language Server + +- `/gs runLS` +- `/gs runLanguageServer` + +The [Language Server](../../getting_started/editors.md) can be started in multiple ways, one of which being this command. + + +## Reload + +- `/gs reload` + +You can [reload](../../getting_started/reloading.md) the GroovyScript `postInit` files +via this command or via a keybind. + +Running `/gs reload --clean` will clean up the [log](../../getting_started/groovy_log.md) file +and remove all prior text. + +This can make it more readable and easier to identify errors with the current script instead of seeing +all errors that have been experienced iin this minecraft session. +These errors will still impact the game. + +## Clean Log + +- `/gs cleanLog` + +Additionally, cleaning the [log](../../getting_started/groovy_log.md) file can be done directly. + + +## Check + +- `/gs check` + +Parses all script files to ensure the syntax is valid. +This will not identify dynamic errors, such as those from [Object Mappers](../../getting_started/object_mappers.md) or calling methods. + + +## [Info](./info.md) + +- [`/gs info`](./info.md#info) +- [`/gs hand`](./info.md#hand) +- [`/gs looking`](./info.md#looking) +- [`/gs self`](./info.md#self) + +There are a large number of possible arguments for each of these commands. + +The most important set of commands are the set of [Info Commands](./info.md), +which will help you get data from the game into a GroovyScript format. + + +## Log + +- `/gs log` + +Prints the location of the GroovyScript log file and Minecraft log file to the chat. +The locations are copyable. + + +## Wiki + +- `/gs wiki` +- `/gs doc` +- `/gs docs` +- `/gs documentation` + +Prints a link to this [wiki](../../index.md) to the chat. + + +## Packmode + +- `/gs packmode` + +If packmodes are enabled, you can pass in an argument setting the packmode. + + +## Generate Wiki + +- `/gs generateWiki` +- `/gs generateDoc` +- `/gs generateDocs` +- `/gs generateDocumentation` + +Generates the wiki files for all mods installed in the pack. + +These files will be generated from the source code of the mods, and so will be relevant and accurate to your pack, +regardless of any updates that happen afterwards. + +It will also print a link to the wiki folder to the chat. + + +## Generate Examples + +- `/gs generateExamples` + +::: info Warning {id="warning"} + +Currently, generating the example files can replace already existing files. +Ensure that you have your files backed up or in a subfolder to avoid this. + +::: + +Generates the examples files for all mods installed in the pack. + +This can be extremely useful for seeing actual examples of recipes being changed for the mods that you have installed. + +These files will be generated from the source code of the mods, and so will be relevant and accurate to your pack, +regardless of any updates that happen afterwards. + +It will also print a link to the examples folder to the chat. + + +## Creative Tabs + +- `/gs creativeTabs` + +This will print every Creative Tab that has been registered to the chat +and the the `groovy.log` file. + +It will also print the location of the GroovyScript log file to the chat. + + +## Delete Script Cache + +- `/gs deleteScriptCache` + +In order to improve the speed of loading scripts, GroovyScript [caches the script files](../../getting_started/reloading.md#class-caching). + +Sometimes this can error, and classes will not be reloaded properly. +In this situation, running this command will delete the cache and force it to be entirely re-evaluated. diff --git a/docs/groovy-script/minecraft/commands/info.md b/docs/groovy-script/minecraft/commands/info.md new file mode 100644 index 0000000..05f03cb --- /dev/null +++ b/docs/groovy-script/minecraft/commands/info.md @@ -0,0 +1,103 @@ + +# Info Commands + +GroovyScripts adds multiple commands to retrieve information from the game. + +The primary purpose is to convert components in the game into GroovyScript [Object Mappers](../../getting_started/object_mappers.md). + +Each command processes through information via the same steps: +- Collecting information from the world, which is done by the command directly and varies by command. +- Parsing this information via the `InfoParserRegistry` and all valid `InfoParser`s, + depending on arguments passed into the command. +- Printing the output information to the chat, or an error if nothing was found. + + +## Syntax + +Each type of info command can be used with different arguments + +There are two basic arguments: + +- `all`: Ignores any arguments allowing only a specific argument to be used. +- `pretty`: Some info types may have different ways in which they will be logged if pretty is true - + in particular, NBT Data will appear significantly differently when enabled. + +And there are a large and variable number of more complex arguments: + +Any `InfoParser` key can be used to filter the valid outputs. +This can be done in two ways, +- allow: using the key directly will cause the command to only print the `InfoParser`s matching the input keys. +- negate: using the key prefixed by a minus sign `-` will cause the command to skip matching `InfoParser`s. + + +::: info External Compat {id="note"} + +Note that `InfoParser`s do *not* have this filtering logic enforced, and may not implement this correctly. + +::: + +## Command Options + +### Info + +- `/gs info` + +Runs the info operation on the first valid type from Hand, Looking, or Self types. + + +### Hand + +- `/gs hand` + +Runs the info operation on the ItemStack in your hand. + +Particularly useful for getting the [`EntityEntry`](../vanilla_object_mappers.md#entity) or [`IBlockState`](../vanilla_object_mappers.md#blockstate) +Object Mappers. + +### Looking + +- `/gs looking` + +Runs the info operation on the Entity or Block you are looking at, prioritizing entities. + +Target must be in range to be detected. + +Particularly useful for getting the [`EntityEntry`](../vanilla_object_mappers.md#entity) or [`IBlockState`](../vanilla_object_mappers.md#blockstate) +Object Mappers. + +### Self + +- `/gs self` + +Runs the info operation on the player entity executing the command. + +Particularly useful for getting the [`Dimension`](../vanilla_object_mappers.md#dimension), [`Biome`](../vanilla_object_mappers.md#biome), +or [`Potion`](../vanilla_object_mappers.md#potion) Object Mappers. + + +## Vanilla Info Parsers + +- [`biome`](../vanilla_object_mappers.md#biome): Biome the the target is in. +- [`block`](../vanilla_object_mappers.md#block): Block being targeted or representing the held item. +- [`blockstate`](../vanilla_object_mappers.md#blockstate): IBlockState being looked at or representing the held item. +- [`creativetab`](../vanilla_object_mappers.md#creativetab): Creative Tab the targeted ItemStack is contained by, if any. +- [`dimension`](../vanilla_object_mappers.md#dimension): Dimension type the player is in. +- [`enchantment`](../vanilla_object_mappers.md#enchantment): Enchantments on the held ItemStack. +- [`entity`](../vanilla_object_mappers.md#entity): Entity being looked at. +- [`fluid`](../vanilla_object_mappers.md#liquid-and-fluid): Fluid being looked at in world or being contained in the item being held. +- [`item`](../vanilla_object_mappers.md#itemstack): ItemStack in the player's main hand, offhand, or representing the block being looked at. +- [`nbt`](../vanilla_object_mappers.md#nbt): NBT data of target, trimmed if it gets too long. +- [`oredict`](../vanilla_object_mappers.md#ore): Ore Dictionary values the held ItemStack is part of. +- `potioneffect`: Potion Effects for the held item, active potion effects for the entity being looked at, or active potion effects on the player. +- `translation`: Translation key for the target. +- [`villagercareer`](../vanilla_object_mappers.md#career): The Villager Career of the villager being targeted. +- [`villagerprofession`](../vanilla_object_mappers.md#profession): The Villager Profession of the villager being targeted. + + +## Creating Info Parsers + +In order to register an `InfoParser`, the only thing that needs to be done +is to implement the `InfoParser` interface and call `InfoParserRegistry#addInfoParser(InfoParser)`. + +However, the abstract class `GenericInfoParser` has a number of helpful methods already created +to make creating complex `InfoParser`s easy, so extending that should be preferred. diff --git a/docs/groovy-script/minecraft/crafting.md b/docs/groovy-script/minecraft/crafting.md deleted file mode 100644 index 7f070bd..0000000 --- a/docs/groovy-script/minecraft/crafting.md +++ /dev/null @@ -1,169 +0,0 @@ -# Crafting Table - -## Adding Recipes -There are 6 similar methods to add shaped and shapeless recipes. - -- Adds a shaped recipe in the format `output`, `input`. (Name is generated). The input is an up to 3x3 matrix of ingredients. - - ```groovy:no-line-numbers - crafting.addShaped(ItemStack, List>) - ``` - -- Adds a shaped recipe in the format `name`, `output`, `input` - - ```groovy:no-line-numbers - crafting.addShaped(String, ItemStack, List>) - ``` - -- Adds a shaped recipe in the format `name`, `output`, `input` - - ```groovy:no-line-numbers - crafting.addShaped(ResourceLocation, ItemStack, List>) - ``` - -- Adds a shapeless recipe in the format `output`, `input` (Name is generated). The input is a list of up to 9 ingredients. - - ```groovy:no-line-numbers - crafting.addShapeless(ItemStack, List) - ``` - -- Adds a shapeless recipe in the format `name`, `output`, `input` - - ```groovy:no-line-numbers - crafting.addShapeless(String, ItemStack, List) - ``` - -- Adds a shapeless recipe in the format `name`, `output`, `input` - - ```groovy:no-line-numbers - crafting.addShapeless(ResourceLocation, ItemStack, List) - ``` - -::: details Example {open id="example"} -```groovy -crafting.addShaped(item('minecraft:nether_star'), [ - [item('minecraft:clay_ball'), item('minecraft:gold_block'), item('minecraft:clay_ball')], - [item('minecraft:gold_block'), item('minecraft:diamond_block'), item('minecraft:gold_block')], - [item('minecraft:clay_ball'), item('minecraft:gold_block'), item('minecraft:clay_ball')] -]) -crafting.addShaped('custom_diamond', [ - [item('minecraft:clay_ball'), item('minecraft:gold_ingot')], - [item('minecraft:gold_ingot'), item('minecraft:clay_ball')] -]) -crafting.addShapeless('custom_netherstar', [item('minecraft:diamond'), item('minecraft:emerald'), item('minecraft:lapis')]) -``` -::: - -## Replace recipes -There are 6 similar methods that can replace existing recipes with a new one. -All of these methods have the same syntax as the addition methods, just with a different method name. - -::: details Tip {open id="tip"} - -You can view recipe names in JEI/HEI by hovering over the output with `F3+h` mode enabled. - -::: - -- Adds a shaped recipe in the format `output`, `input` and removes any existing recipe that matches the output (Name is generated). The input is an up to 3x3 matrix of ingredients. - - ```groovy:no-line-numbers - crafting.replaceShaped(ItemStack, List>) - ``` - -- Adds a shaped recipe in the format `name`, `output`, `input` and removes any existing recipe that matches the name. - - ```groovy:no-line-numbers - crafting.replaceShaped(String, ItemStack, List>) - ``` - -- Adds a shaped recipe in the format `name`, `output`, `input` and removes any existing recipe that matches the name. - - ```groovy:no-line-numbers - crafting.replaceShaped(ResourceLocation, ItemStack, List>) - ``` - -- Adds a shapeless recipe in the format `output`, `input` and removes any existing recipe that matches the output (Name is generated). The input is a list of up to 9 ingredients. - - ```groovy:no-line-numbers - crafting.replaceShapeless(ItemStack, List) - ``` - -- Adds a shapeless recipe in the format `name`, `output`, `input` and removes any existing recipe that matches the name. - - ```groovy:no-line-numbers - crafting.replaceShapeless(String, ItemStack, List) - ``` - -- Adds a shapeless recipe in the format `name`, `output`, `input` and removes any existing recipe that matches the name. - - ```groovy:no-line-numbers - crafting.replaceShapeless(ResourceLocation, ItemStack, List) - ``` - -## Removing Recipes - -::: details Tip {open id="tip"} - -You can view recipe names in JEI/HEI by hovering over the output with `F3+h` mode enabled. - -::: - -- Removes recipes in the format `mod:name`. - - ```groovy:no-line-numbers - crafting.remove(String) - ``` - -- Removes recipes in the format `name`. - - ```groovy:no-line-numbers - crafting.remove(ResourceLocation) - ``` - -- Removes recipes in the format `output`. Any recipe that matches the output will be removed. - - ```groovy:no-line-numbers - crafting.removeByOutput(IIngredient) - ``` - -- Removes recipes in the format `output`, `doLogFailure`. Any recipe that matches the output will be removed. If - `doLogFailure` is true, errors will not be logged. Only use this method if you know what you are doing. - - ```groovy:no-line-numbers - crafting.removeByOutput(IIngredient, boolean) - ``` - -- Removes recipes in the format `input`. Any recipe that matches any of its inputs with the given input gets removed - - ```groovy:no-line-numbers - crafting.removeByInput(IIngredient) - ``` - -- Removes recipes in the format `input`, `doLogFailure`. Any recipe that matches any of its inputs with the given input gets removed. - If `doLogFailure` is true, errors will not be logged. Only use this method if you know what you are doing. - - ```groovy:no-line-numbers - crafting.removeByInput(IIngredient, boolean) - ``` - -- Removes all existing crafting recipes. - - ```groovy:no-line-numbers - crafting.removeAll() - ``` - -::: details Example {open id="example"} - -```groovy:no-line-numbers -crafting.remove('minecraft:tnt') -crafting.removeByOutput(item('minecraft:tnt')) -``` -::: - -## Getting the value of recipes - -- Iterates through every entry in the registry, with the ability to call remove on any element to remove it: - - ```groovy:no-line-numbers - crafting.streamRecipes() - ``` diff --git a/docs/groovy-script/minecraft/crafting_builders.md b/docs/groovy-script/minecraft/crafting_builders.md deleted file mode 100644 index 5e2ea52..0000000 --- a/docs/groovy-script/minecraft/crafting_builders.md +++ /dev/null @@ -1,173 +0,0 @@ -# Crafting Recipes with RecipeBuilders - -## Adding Recipes with Builders - -Crafting also has a RecipeBuilder. -If you don't know what a builder is, check [this](https://groovyscript-docs.readthedocs.io/en/latest/groovy/builder/) out! - -You start the builder chain with either `shapedBuilder()` or `shapelessBuilder()`. This determines the kind of recipe you want to add. - -```groovy:no-line-numbers -crafting.shapedBuilder() -crafting.shapelessBuilder() -``` - -Then you call additional methods onto the builder (.name(), .replace(), etc), to build up the end result. See the examples below for a complete picture. - -Set the recipe name (optional): - -::: details name(String name) {id="quote"} - -If not provided, a recipe name will be autogenerated for you. - -::: - -Set the recipe output (required): - -```groovy:no-line-numbers -output(ItemStack item) -``` - -Set the recipe function (optional): - -::: details recipeFunction(Closure\ recipeFunction) {open id="quote"} - -See the [Recipe Function and Action page](./crafting.md) for more details. - -::: - -Set the recipe action (optional): - -::: details recipeFunction(Closure\ recipeAction) {id="quote"} - -See the [Recipe Function and Action page] for more details. - -::: info TODO {id="danger"} - -This page is not yet created! - -::: - -Set the recipe to replace others (optional): - -::: details replace() {id="quote"} - -See the [Crafting page](https://groovyscript-docs.readthedocs.io/en/latest/groovyscript/minecraft/crafting/) for details about these. - -::: - -Set the recipe to replace others by name (optional): - -::: details replaceByName() {id="quote"} - -See the [Crafting page](https://groovyscript-docs.readthedocs.io/en/latest/groovyscript/minecraft/crafting/) for details about these. -It functions the same as the one above, except that it matches the provided recipe name. - -::: - -Set the recipe to allow the grid to be mirrored (optional, shaped only): - -```groovy -mirrored() -mirrored(boolean mirrored) // (1)! -``` - -1. Choose whether the recipe is mirrored or not, default false - -Creating the recipe's layout (required, shaped only): - -```groovy -matrix(String... matrix) -shape(String... matrix) // does the same thing as matrix() - -// to input a matrix in the style of non-builder shaped addition -matrix(List> matrix) -shape(List> matrix) -``` - -Matching ingredients to the recipe layout (required, shaped only): - -```groovy -key(String c, IIngredient ingredient) // (1)! -``` - -1. Please see the examples below to better understand how this works - -Adding inputs to the recipe (required, shapeless only): - -```groovy -input(IIngredient ingredient) -input(IIngredient... ingredients) -input(Collection ingredients) -``` - -Registering the recipe (required): - -```groovy -register() -``` - -Reading the above makes this seem quite complicated. We promise it's not! - -### Shaped - -::: info Example {id="example"} - -```groovy -// Shaped Recipes -crafting.shapedBuilder() // create a new shaped recipe - .name('balanced_clay') // name the recipe 'balanced_clay' - .output(item('minecraft:clay') * 32) // output 32 clay - .matrix('NIN', // create the layout for the recipe - 'DSD', // each character represents a slot - 'NIN') - .key('N', item('minecraft:nether_star')) // everywhere there is an 'N' in the layout, use a nether star - .key('I', ore('ingotIron')) // all 'I' characters are iron ingots - .key('D', item('minecraft:diamond')) // all 'D' characters are diamonds - .key('S', ore('stone')) // all 'I' characters are stone - .register() // register the recipe -``` - -::: - -### Shapeless - -::: info Example {id="example"} - -```groovy -// Shapeless Recipes -crafting.shapelessBuilder() // add a new shapeless recipe - .name('balanced_clay_v3') // name the recipe 'balanced_clay_v3' - .output('minecraft:clay' * 2) // output 2 clay - .input('minecraft:iron_ingot') // add an iron ingot to the inputs - .input('minecraft:iron_ingot') // add a second iron ingot to the inputs - .input('minecraft:gold_nugget', 'minecraft:diamond') // add a gold nugget and a diamond to the inputs - .register() -``` -::: - - -## Empty Spaces - -:::: info {id="info"} -If you want the slot to be empty, don't use a key and null, but instead just use a space! - -::: info Example {id="example"} - -The matrix should look like this: - -```groovy -crafting.shapedBuilder() - .name('balanced_clay_v2') - .output(item('minecraft:clay') * 64) - .matrix(' B ', // use a space for an empty slot - 'X X') // (1)! - .key('B', item('minecraft:glass_bottle')) - .key('X', item('minecraft:gold_nugget')) - .register() -``` - -1. You can omit rows and columns for smaller recipes - this one's 3x2. Just make sure it's not jagged (different lengths for each row/col). - -::: -:::: diff --git a/docs/groovy-script/minecraft/events/advancement_event.md b/docs/groovy-script/minecraft/events/advancement_event.md index 3d8d1ca..b0d8be6 100644 --- a/docs/groovy-script/minecraft/events/advancement_event.md +++ b/docs/groovy-script/minecraft/events/advancement_event.md @@ -1,16 +1,16 @@ -# AdvancementEvent +# Advancement Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.AdvancementEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.advancements.Advancement getAdvancement() ``` diff --git a/docs/groovy-script/minecraft/events/animal_tame_event.md b/docs/groovy-script/minecraft/events/animal_tame_event.md index 9c73020..5de9942 100644 --- a/docs/groovy-script/minecraft/events/animal_tame_event.md +++ b/docs/groovy-script/minecraft/events/animal_tame_event.md @@ -1,19 +1,19 @@ -# AnimalTameEvent +# Animal Tame Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.AnimalTameEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getTamer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.passive.EntityAnimal getAnimal() ``` diff --git a/docs/groovy-script/minecraft/events/anvil_repair_event.md b/docs/groovy-script/minecraft/events/anvil_repair_event.md index fce947e..73a6028 100644 --- a/docs/groovy-script/minecraft/events/anvil_repair_event.md +++ b/docs/groovy-script/minecraft/events/anvil_repair_event.md @@ -1,37 +1,37 @@ -# AnvilRepairEvent +# Anvil Repair Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.AnvilRepairEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getOutput() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getRight() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getLeft() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemResult() ``` -```groovy +```groovy:no-line-numbers void setBreakChance(float arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemInput() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getIngredientInput() ``` -```groovy +```groovy:no-line-numbers float getBreakChance() ``` diff --git a/docs/groovy-script/minecraft/events/anvil_update_event.md b/docs/groovy-script/minecraft/events/anvil_update_event.md index 7b5c2a9..3f5027a 100644 --- a/docs/groovy-script/minecraft/events/anvil_update_event.md +++ b/docs/groovy-script/minecraft/events/anvil_update_event.md @@ -1,35 +1,35 @@ -# AnvilUpdateEvent +# Anvil Update Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.AnvilUpdateEvent ``` ## Methods -```groovy +```groovy:no-line-numbers java.lang.String getName() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getOutput() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getRight() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getLeft() ``` -```groovy +```groovy:no-line-numbers void setOutput(net.minecraft.item.ItemStack arg0) ``` -```groovy +```groovy:no-line-numbers void setCost(int arg0) ``` -```groovy +```groovy:no-line-numbers void setMaterialCost(int arg0) ``` -```groovy +```groovy:no-line-numbers int getCost() ``` -```groovy +```groovy:no-line-numbers int getMaterialCost() ``` diff --git a/docs/groovy-script/minecraft/events/arrow_loose_event.md b/docs/groovy-script/minecraft/events/arrow_loose_event.md index 9a6fe9f..c930e8d 100644 --- a/docs/groovy-script/minecraft/events/arrow_loose_event.md +++ b/docs/groovy-script/minecraft/events/arrow_loose_event.md @@ -1,31 +1,31 @@ -# ArrowLooseEvent +# Arrow Loose Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.ArrowLooseEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers boolean hasAmmo() ``` -```groovy +```groovy:no-line-numbers int getCharge() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getBow() ``` -```groovy +```groovy:no-line-numbers void setCharge(int arg0) ``` diff --git a/docs/groovy-script/minecraft/events/arrow_nock_event.md b/docs/groovy-script/minecraft/events/arrow_nock_event.md index 6dcbc9b..058fb24 100644 --- a/docs/groovy-script/minecraft/events/arrow_nock_event.md +++ b/docs/groovy-script/minecraft/events/arrow_nock_event.md @@ -1,38 +1,38 @@ -# ArrowNockEvent +# Arrow Nock Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.ArrowNockEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers boolean hasAmmo() ``` -```groovy +```groovy:no-line-numbers void setAction(net.minecraft.util.ActionResult arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getBow() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.ActionResult getAction() ``` diff --git a/docs/groovy-script/minecraft/events/attach_capabilities_event.md b/docs/groovy-script/minecraft/events/attach_capabilities_event.md index 2a1e4dc..52a1f77 100644 --- a/docs/groovy-script/minecraft/events/attach_capabilities_event.md +++ b/docs/groovy-script/minecraft/events/attach_capabilities_event.md @@ -1,24 +1,22 @@ -# AttachCapabilitiesEvent +# Attach Capabilities Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.AttachCapabilitiesEvent ``` ## Sub-Classes -This event extends the following events and can use all their methods and fields:
-[GenericEvent](generic_event.md) +This event extends the following events and can use all their methods and fields: ## Methods -```groovy +```groovy:no-line-numbers java.lang.Object getObject() ``` -```groovy +```groovy:no-line-numbers void addCapability(net.minecraft.util.ResourceLocation arg0, net.minecraftforge.common.capabilities.ICapabilityProvider arg1) ``` -```groovy +```groovy:no-line-numbers java.util.Map getCapabilities() ``` - diff --git a/docs/groovy-script/minecraft/events/attack_entity_event.md b/docs/groovy-script/minecraft/events/attack_entity_event.md index 13f3477..ffc5c7c 100644 --- a/docs/groovy-script/minecraft/events/attack_entity_event.md +++ b/docs/groovy-script/minecraft/events/attack_entity_event.md @@ -1,18 +1,18 @@ -# AttackEntityEvent +# Attack Entity Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.AttackEntityEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` diff --git a/docs/groovy-script/minecraft/events/baby_entity_spawn_event.md b/docs/groovy-script/minecraft/events/baby_entity_spawn_event.md index 8469fb4..b6c5164 100644 --- a/docs/groovy-script/minecraft/events/baby_entity_spawn_event.md +++ b/docs/groovy-script/minecraft/events/baby_entity_spawn_event.md @@ -1,29 +1,29 @@ -# BabyEntitySpawnEvent +# Baby Entity Spawn Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.BabyEntitySpawnEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLiving getParentB() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLiving getParentA() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getCausedByPlayer() ``` -```groovy +```groovy:no-line-numbers void setChild(net.minecraft.entity.EntityAgeable arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityAgeable getChild() ``` diff --git a/docs/groovy-script/minecraft/events/biome_event/biome_color.md b/docs/groovy-script/minecraft/events/biome_event/biome_color.md index 5ab36af..c514315 100644 --- a/docs/groovy-script/minecraft/events/biome_event/biome_color.md +++ b/docs/groovy-script/minecraft/events/biome_event/biome_color.md @@ -1,26 +1,26 @@ -# BiomeEvent.BiomeColor +# Biome Color To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.BiomeColor ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BiomeEvent](biome_event.md) +[BiomeEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers int getNewColor() ``` -```groovy +```groovy:no-line-numbers int getOriginalColor() ``` -```groovy +```groovy:no-line-numbers void setNewColor(int arg0) ``` diff --git a/docs/groovy-script/minecraft/events/biome_event/create_decorator.md b/docs/groovy-script/minecraft/events/biome_event/create_decorator.md index a54d73d..f153282 100644 --- a/docs/groovy-script/minecraft/events/biome_event/create_decorator.md +++ b/docs/groovy-script/minecraft/events/biome_event/create_decorator.md @@ -1,24 +1,23 @@ -# BiomeEvent.CreateDecorator +# Create Decorator To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.CreateDecorator ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BiomeEvent](biome_event.md) +[BiomeEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.biome.BiomeDecorator getNewBiomeDecorator() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.biome.BiomeDecorator getOriginalBiomeDecorator() ``` -```groovy +```groovy:no-line-numbers void setNewBiomeDecorator(net.minecraft.world.biome.BiomeDecorator arg0) ``` - diff --git a/docs/groovy-script/minecraft/events/biome_event/get_foliage_color.md b/docs/groovy-script/minecraft/events/biome_event/get_foliage_color.md index 055e80d..e8279c2 100644 --- a/docs/groovy-script/minecraft/events/biome_event/get_foliage_color.md +++ b/docs/groovy-script/minecraft/events/biome_event/get_foliage_color.md @@ -1,12 +1,12 @@ -# BiomeEvent.GetFoliageColor +# Get Foliage Color To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.GetFoliageColor ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BiomeColor](biome_color.md), [BiomeEvent](biome_event.md) +[BiomeColor](index.md), [BiomeEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/biome_event/get_grass_color.md b/docs/groovy-script/minecraft/events/biome_event/get_grass_color.md index c635118..e199f51 100644 --- a/docs/groovy-script/minecraft/events/biome_event/get_grass_color.md +++ b/docs/groovy-script/minecraft/events/biome_event/get_grass_color.md @@ -1,12 +1,12 @@ -# BiomeEvent.GetGrassColor +# Get Grass Color To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.GetGrassColor ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BiomeColor](biome_color.md), [BiomeEvent](biome_event.md) +[BiomeColor](index.md), [BiomeEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/biome_event/get_village_block_i_d.md b/docs/groovy-script/minecraft/events/biome_event/get_village_block_i_d.md index 8d33cf0..e6b2fb3 100644 --- a/docs/groovy-script/minecraft/events/biome_event/get_village_block_i_d.md +++ b/docs/groovy-script/minecraft/events/biome_event/get_village_block_i_d.md @@ -1,28 +1,27 @@ -# BiomeEvent.GetVillageBlockID +# Get Village Block ID To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.GetVillageBlockID ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BiomeEvent](biome_event.md) +[BiomeEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getReplacement() ``` -```groovy +```groovy:no-line-numbers void setReplacement(net.minecraft.block.state.IBlockState arg0) ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getOriginal() ``` - diff --git a/docs/groovy-script/minecraft/events/biome_event/get_water_color.md b/docs/groovy-script/minecraft/events/biome_event/get_water_color.md index 50202e4..eae6bed 100644 --- a/docs/groovy-script/minecraft/events/biome_event/get_water_color.md +++ b/docs/groovy-script/minecraft/events/biome_event/get_water_color.md @@ -1,12 +1,12 @@ -# BiomeEvent.GetWaterColor +# Get Water Color To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.GetWaterColor ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BiomeColor](biome_color.md), [BiomeEvent](biome_event.md) +[BiomeColor](index.md), [BiomeEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/biome_event/biome_event.md b/docs/groovy-script/minecraft/events/biome_event/index.md similarity index 71% rename from docs/groovy-script/minecraft/events/biome_event/biome_event.md rename to docs/groovy-script/minecraft/events/biome_event/index.md index 0151afb..01ea912 100644 --- a/docs/groovy-script/minecraft/events/biome_event/biome_event.md +++ b/docs/groovy-script/minecraft/events/biome_event/index.md @@ -1,12 +1,11 @@ -# BiomeEvent +# Biome Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.biome.Biome getBiome() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/break_event.md b/docs/groovy-script/minecraft/events/block_event/break_event.md index ed58cdb..808623f 100644 --- a/docs/groovy-script/minecraft/events/block_event/break_event.md +++ b/docs/groovy-script/minecraft/events/block_event/break_event.md @@ -1,23 +1,23 @@ -# BlockEvent.BreakEvent +# Break Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.BreakEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers int getExpToDrop() ``` -```groovy +```groovy:no-line-numbers void setExpToDrop(int arg0) ``` diff --git a/docs/groovy-script/minecraft/events/block_event/create_fluid_source_event.md b/docs/groovy-script/minecraft/events/block_event/create_fluid_source_event.md index 0d84f1c..08f161f 100644 --- a/docs/groovy-script/minecraft/events/block_event/create_fluid_source_event.md +++ b/docs/groovy-script/minecraft/events/block_event/create_fluid_source_event.md @@ -1,16 +1,15 @@ -# BlockEvent.CreateFluidSourceEvent +# Create Fluid Source Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.CreateFluidSourceEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/crop_grow_event.md b/docs/groovy-script/minecraft/events/block_event/crop_grow_event.md index 591755f..2c9fd5c 100644 --- a/docs/groovy-script/minecraft/events/block_event/crop_grow_event.md +++ b/docs/groovy-script/minecraft/events/block_event/crop_grow_event.md @@ -1,44 +1,43 @@ -# BlockEvent.CropGrowEvent +# Crop Grow Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.CropGrowEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -# BlockEvent.CropGrowEvent.Pre +# Crop Grow Event.Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.CropGrowEvent.Pre ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[CropGrowEvent](crop_grow_event.md), [BlockEvent](block_event.md) +[CropGrowEvent](index.md), [BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -# BlockEvent.CropGrowEvent.Post +# Crop Grow Event.Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.CropGrowEvent.Post ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[CropGrowEvent](crop_grow_event.md), [BlockEvent](block_event.md) +[CropGrowEvent](index.md), [BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getOriginalState() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/entity_multi_place_event.md b/docs/groovy-script/minecraft/events/block_event/entity_multi_place_event.md index a2d28ea..8f5add4 100644 --- a/docs/groovy-script/minecraft/events/block_event/entity_multi_place_event.md +++ b/docs/groovy-script/minecraft/events/block_event/entity_multi_place_event.md @@ -1,15 +1,15 @@ -# BlockEvent.EntityMultiPlaceEvent +# Entity Multi Place Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.EntityMultiPlaceEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityPlaceEvent](entity_place_event.md), [BlockEvent](block_event.md) +[EntityPlaceEvent](index.md), [BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers java.util.List getReplacedBlockSnapshots() ``` diff --git a/docs/groovy-script/minecraft/events/block_event/entity_place_event.md b/docs/groovy-script/minecraft/events/block_event/entity_place_event.md index abcdf04..e238b05 100644 --- a/docs/groovy-script/minecraft/events/block_event/entity_place_event.md +++ b/docs/groovy-script/minecraft/events/block_event/entity_place_event.md @@ -1,28 +1,27 @@ -# BlockEvent.EntityPlaceEvent +# Entity Place Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.EntityPlaceEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntity() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.common.util.BlockSnapshot getBlockSnapshot() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getPlacedBlock() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getPlacedAgainst() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/farmland_trample_event.md b/docs/groovy-script/minecraft/events/block_event/farmland_trample_event.md index 9fc772b..ab84d0b 100644 --- a/docs/groovy-script/minecraft/events/block_event/farmland_trample_event.md +++ b/docs/groovy-script/minecraft/events/block_event/farmland_trample_event.md @@ -1,20 +1,19 @@ -# BlockEvent.FarmlandTrampleEvent +# Farmland Trample Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.FarmlandTrampleEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntity() ``` -```groovy +```groovy:no-line-numbers float getFallDistance() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/fluid_place_block_event.md b/docs/groovy-script/minecraft/events/block_event/fluid_place_block_event.md index b8c7915..001f09c 100644 --- a/docs/groovy-script/minecraft/events/block_event/fluid_place_block_event.md +++ b/docs/groovy-script/minecraft/events/block_event/fluid_place_block_event.md @@ -1,28 +1,27 @@ -# BlockEvent.FluidPlaceBlockEvent +# Fluid Place Block Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.FluidPlaceBlockEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getNewState() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getLiquidPos() ``` -```groovy +```groovy:no-line-numbers void setNewState(net.minecraft.block.state.IBlockState arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getOriginalState() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/harvest_drops_event.md b/docs/groovy-script/minecraft/events/block_event/harvest_drops_event.md index a5484cc..8f0b5d0 100644 --- a/docs/groovy-script/minecraft/events/block_event/harvest_drops_event.md +++ b/docs/groovy-script/minecraft/events/block_event/harvest_drops_event.md @@ -1,36 +1,35 @@ -# BlockEvent.HarvestDropsEvent +# Harvest Drops Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers void setDropChance(float arg0) ``` -```groovy +```groovy:no-line-numbers java.util.List getDrops() ``` -```groovy +```groovy:no-line-numbers float getDropChance() ``` -```groovy +```groovy:no-line-numbers int getFortuneLevel() ``` -```groovy +```groovy:no-line-numbers boolean isSilkTouching() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getHarvester() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/block_event.md b/docs/groovy-script/minecraft/events/block_event/index.md similarity index 68% rename from docs/groovy-script/minecraft/events/block_event/block_event.md rename to docs/groovy-script/minecraft/events/block_event/index.md index 82db4fe..cbd1ede 100644 --- a/docs/groovy-script/minecraft/events/block_event/block_event.md +++ b/docs/groovy-script/minecraft/events/block_event/index.md @@ -1,20 +1,19 @@ -# BlockEvent +# Block Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getState() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/multi_place_event.md b/docs/groovy-script/minecraft/events/block_event/multi_place_event.md index 820547c..205f628 100644 --- a/docs/groovy-script/minecraft/events/block_event/multi_place_event.md +++ b/docs/groovy-script/minecraft/events/block_event/multi_place_event.md @@ -1,15 +1,15 @@ -# BlockEvent.MultiPlaceEvent +# Multi Place Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.MultiPlaceEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlaceEvent](place_event.md), [EntityPlaceEvent](entity_place_event.md), [BlockEvent](block_event.md) +[PlaceEvent](index.md), [EntityPlaceEvent](index.md), [BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers java.util.List getReplacedBlockSnapshots() ``` diff --git a/docs/groovy-script/minecraft/events/block_event/neighbor_notify_event.md b/docs/groovy-script/minecraft/events/block_event/neighbor_notify_event.md index 66a03e8..5797c6b 100644 --- a/docs/groovy-script/minecraft/events/block_event/neighbor_notify_event.md +++ b/docs/groovy-script/minecraft/events/block_event/neighbor_notify_event.md @@ -1,20 +1,19 @@ -# BlockEvent.NeighborNotifyEvent +# Neighbor Notify Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.NeighborNotifyEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean getForceRedstoneUpdate() ``` -```groovy +```groovy:no-line-numbers java.util.EnumSet getNotifiedSides() ``` - diff --git a/docs/groovy-script/minecraft/events/block_event/place_event.md b/docs/groovy-script/minecraft/events/block_event/place_event.md index aaa69f3..e63839a 100644 --- a/docs/groovy-script/minecraft/events/block_event/place_event.md +++ b/docs/groovy-script/minecraft/events/block_event/place_event.md @@ -1,23 +1,23 @@ -# BlockEvent.PlaceEvent +# Place Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.PlaceEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityPlaceEvent](entity_place_event.md), [BlockEvent](block_event.md) +[EntityPlaceEvent](index.md), [BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemInHand() ``` diff --git a/docs/groovy-script/minecraft/events/block_event/portal_spawn_event.md b/docs/groovy-script/minecraft/events/block_event/portal_spawn_event.md index 7d23bdb..0a5aeeb 100644 --- a/docs/groovy-script/minecraft/events/block_event/portal_spawn_event.md +++ b/docs/groovy-script/minecraft/events/block_event/portal_spawn_event.md @@ -1,15 +1,15 @@ -# BlockEvent.PortalSpawnEvent +# Portal Spawn Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.PortalSpawnEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](block_event.md) +[BlockEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.BlockPortal$Size getPortalSize() ``` diff --git a/docs/groovy-script/minecraft/events/bonemeal_event.md b/docs/groovy-script/minecraft/events/bonemeal_event.md index cfc212b..5ee969d 100644 --- a/docs/groovy-script/minecraft/events/bonemeal_event.md +++ b/docs/groovy-script/minecraft/events/bonemeal_event.md @@ -1,35 +1,35 @@ -# BonemealEvent +# Bonemeal Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.BonemealEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getStack() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getBlock() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` diff --git a/docs/groovy-script/minecraft/events/chunk_data_event/chunk_data_event.md b/docs/groovy-script/minecraft/events/chunk_data_event/index.md similarity index 64% rename from docs/groovy-script/minecraft/events/chunk_data_event/chunk_data_event.md rename to docs/groovy-script/minecraft/events/chunk_data_event/index.md index ad39fa5..468cd66 100644 --- a/docs/groovy-script/minecraft/events/chunk_data_event/chunk_data_event.md +++ b/docs/groovy-script/minecraft/events/chunk_data_event/index.md @@ -1,15 +1,15 @@ -# ChunkDataEvent +# Chunk Data Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkDataEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkEvent](../chunk_event/chunk_event.md), [WorldEvent](../world_event/world_event.md) +[ChunkEvent](../chunk_event/index.md), [WorldEvent](../world_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.nbt.NBTTagCompound getData() ``` diff --git a/docs/groovy-script/minecraft/events/chunk_data_event/load.md b/docs/groovy-script/minecraft/events/chunk_data_event/load.md index 9e65f69..79533d7 100644 --- a/docs/groovy-script/minecraft/events/chunk_data_event/load.md +++ b/docs/groovy-script/minecraft/events/chunk_data_event/load.md @@ -1,12 +1,12 @@ -# ChunkDataEvent.Load +# Load To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkDataEvent.Load ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkDataEvent](chunk_data_event.md), [ChunkEvent](../chunk_event/chunk_event.md), [WorldEvent](../world_event/world_event.md) +[ChunkDataEvent](index.md), [ChunkEvent](../chunk_event/index.md), [WorldEvent](../world_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/chunk_data_event/save.md b/docs/groovy-script/minecraft/events/chunk_data_event/save.md index 31c552f..659b17e 100644 --- a/docs/groovy-script/minecraft/events/chunk_data_event/save.md +++ b/docs/groovy-script/minecraft/events/chunk_data_event/save.md @@ -1,12 +1,12 @@ -# ChunkDataEvent.Save +# Save To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkDataEvent.Save ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkDataEvent](chunk_data_event.md), [ChunkEvent](../chunk_event/chunk_event.md), [WorldEvent](../world_event/world_event.md) +[ChunkDataEvent](index.md), [ChunkEvent](../chunk_event/index.md), [WorldEvent](../world_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/chunk_event/chunk_event.md b/docs/groovy-script/minecraft/events/chunk_event/index.md similarity index 71% rename from docs/groovy-script/minecraft/events/chunk_event/chunk_event.md rename to docs/groovy-script/minecraft/events/chunk_event/index.md index a0b08e8..68796ca 100644 --- a/docs/groovy-script/minecraft/events/chunk_event/chunk_event.md +++ b/docs/groovy-script/minecraft/events/chunk_event/index.md @@ -1,15 +1,15 @@ -# ChunkEvent +# Chunk Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](../world_event/world_event.md) +[WorldEvent](../world_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.chunk.Chunk getChunk() ``` diff --git a/docs/groovy-script/minecraft/events/chunk_event/load.md b/docs/groovy-script/minecraft/events/chunk_event/load.md index 94cd7ef..42ceb25 100644 --- a/docs/groovy-script/minecraft/events/chunk_event/load.md +++ b/docs/groovy-script/minecraft/events/chunk_event/load.md @@ -1,12 +1,12 @@ -# ChunkEvent.Load +# Load To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkEvent.Load ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkEvent](../chunk_event/chunk_event.md), [WorldEvent](../world_event/world_event.md) +[ChunkEvent](../chunk_event/index.md), [WorldEvent](../world_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/chunk_event/unload.md b/docs/groovy-script/minecraft/events/chunk_event/unload.md index 92e7f8b..9e1e94a 100644 --- a/docs/groovy-script/minecraft/events/chunk_event/unload.md +++ b/docs/groovy-script/minecraft/events/chunk_event/unload.md @@ -1,12 +1,12 @@ -# ChunkEvent.Unload +# Unload To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkEvent.Unload ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkEvent](../chunk_event/chunk_event.md), [WorldEvent](../world_event/world_event.md) +[ChunkEvent](../chunk_event/index.md), [WorldEvent](../world_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/chunk_generator_event/chunk_generator_event.md b/docs/groovy-script/minecraft/events/chunk_generator_event/index.md similarity index 69% rename from docs/groovy-script/minecraft/events/chunk_generator_event/chunk_generator_event.md rename to docs/groovy-script/minecraft/events/chunk_generator_event/index.md index 8124998..a8efdfc 100644 --- a/docs/groovy-script/minecraft/events/chunk_generator_event/chunk_generator_event.md +++ b/docs/groovy-script/minecraft/events/chunk_generator_event/index.md @@ -1,16 +1,15 @@ -# ChunkGeneratorEvent +# Chunk Generator Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.ChunkGeneratorEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.IChunkGenerator getGenerator() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.IChunkGenerator getGen() ``` - diff --git a/docs/groovy-script/minecraft/events/chunk_generator_event/init_noise_field.md b/docs/groovy-script/minecraft/events/chunk_generator_event/init_noise_field.md index b5bce91..6b8fbf1 100644 --- a/docs/groovy-script/minecraft/events/chunk_generator_event/init_noise_field.md +++ b/docs/groovy-script/minecraft/events/chunk_generator_event/init_noise_field.md @@ -1,47 +1,47 @@ -# ChunkGeneratorEvent.InitNoiseField +# Init Noise Field To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.ChunkGeneratorEvent.InitNoiseField ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) +[ChunkGeneratorEvent](../chunk_generator_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers int getPosZ() ``` -```groovy +```groovy:no-line-numbers [D getNoisefield() ``` -```groovy +```groovy:no-line-numbers void setNoisefield([D arg0) ``` -```groovy +```groovy:no-line-numbers int getSizeX() ``` -```groovy +```groovy:no-line-numbers int getSizeZ() ``` -```groovy +```groovy:no-line-numbers int getSizeY() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers int getPosY() ``` -```groovy +```groovy:no-line-numbers int getPosX() ``` diff --git a/docs/groovy-script/minecraft/events/chunk_generator_event/replace_biome_blocks.md b/docs/groovy-script/minecraft/events/chunk_generator_event/replace_biome_blocks.md index c247c52..ee545ad 100644 --- a/docs/groovy-script/minecraft/events/chunk_generator_event/replace_biome_blocks.md +++ b/docs/groovy-script/minecraft/events/chunk_generator_event/replace_biome_blocks.md @@ -1,31 +1,31 @@ -# ChunkGeneratorEvent.ReplaceBiomeBlocks +# Replace Biome Blocks To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.ChunkGeneratorEvent.ReplaceBiomeBlocks ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) +[ChunkGeneratorEvent](../chunk_generator_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers int getX() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers int getZ() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.chunk.ChunkPrimer getPrimer() ``` diff --git a/docs/groovy-script/minecraft/events/chunk_watch_event/chunk_watch_event.md b/docs/groovy-script/minecraft/events/chunk_watch_event/index.md similarity index 69% rename from docs/groovy-script/minecraft/events/chunk_watch_event/chunk_watch_event.md rename to docs/groovy-script/minecraft/events/chunk_watch_event/index.md index 3eb2776..8d910a6 100644 --- a/docs/groovy-script/minecraft/events/chunk_watch_event/chunk_watch_event.md +++ b/docs/groovy-script/minecraft/events/chunk_watch_event/index.md @@ -1,20 +1,19 @@ -# ChunkWatchEvent +# Chunk Watch Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkWatchEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.chunk.Chunk getChunkInstance() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayerMP getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.ChunkPos getChunk() ``` - diff --git a/docs/groovy-script/minecraft/events/chunk_watch_event/un_watch.md b/docs/groovy-script/minecraft/events/chunk_watch_event/un_watch.md index 716aa72..6585256 100644 --- a/docs/groovy-script/minecraft/events/chunk_watch_event/un_watch.md +++ b/docs/groovy-script/minecraft/events/chunk_watch_event/un_watch.md @@ -1,12 +1,12 @@ -# ChunkWatchEvent.UnWatch +# Un Watch To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkWatchEvent.UnWatch ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkWatchEvent](chunk_watch_event.md) +[ChunkWatchEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/chunk_watch_event/watch.md b/docs/groovy-script/minecraft/events/chunk_watch_event/watch.md index 74f5dc6..43edde4 100644 --- a/docs/groovy-script/minecraft/events/chunk_watch_event/watch.md +++ b/docs/groovy-script/minecraft/events/chunk_watch_event/watch.md @@ -1,12 +1,12 @@ -# ChunkWatchEvent.Watch +# Watch To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkWatchEvent.Watch ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkWatchEvent](chunk_watch_event.md) +[ChunkWatchEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/command_event.md b/docs/groovy-script/minecraft/events/command_event.md index 58a1706..23155fb 100644 --- a/docs/groovy-script/minecraft/events/command_event.md +++ b/docs/groovy-script/minecraft/events/command_event.md @@ -1,32 +1,31 @@ -# CommandEvent +# Command Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.CommandEvent ``` ## Methods -```groovy +```groovy:no-line-numbers java.lang.Throwable getException() ``` -```groovy +```groovy:no-line-numbers [Ljava.lang.String; getParameters() ``` -```groovy +```groovy:no-line-numbers net.minecraft.command.ICommand getCommand() ``` -```groovy +```groovy:no-line-numbers void setParameters([Ljava.lang.String; arg0) ``` -```groovy +```groovy:no-line-numbers void setException(java.lang.Throwable arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.command.ICommandSender getSender() ``` - diff --git a/docs/groovy-script/minecraft/events/critical_hit_event.md b/docs/groovy-script/minecraft/events/critical_hit_event.md index 6a902b3..c6783b9 100644 --- a/docs/groovy-script/minecraft/events/critical_hit_event.md +++ b/docs/groovy-script/minecraft/events/critical_hit_event.md @@ -1,35 +1,35 @@ -# CriticalHitEvent +# Critical Hit Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.CriticalHitEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers float getDamageModifier() ``` -```groovy +```groovy:no-line-numbers void setDamageModifier(float arg0) ``` -```groovy +```groovy:no-line-numbers float getOldDamageModifier() ``` -```groovy +```groovy:no-line-numbers boolean isVanillaCritical() ``` diff --git a/docs/groovy-script/minecraft/events/decorate_biome_event/decorate.md b/docs/groovy-script/minecraft/events/decorate_biome_event/decorate.md index 3140c4a..f6cc780 100644 --- a/docs/groovy-script/minecraft/events/decorate_biome_event/decorate.md +++ b/docs/groovy-script/minecraft/events/decorate_biome_event/decorate.md @@ -1,24 +1,23 @@ -# DecorateBiomeEvent.Decorate +# Decorate To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[DecorateBiomeEvent](decorate_biome_event.md) +[DecorateBiomeEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.DecorateBiomeEvent$Decorate$EventType getType() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPlacementPos() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` - diff --git a/docs/groovy-script/minecraft/events/decorate_biome_event/decorate_biome_event.md b/docs/groovy-script/minecraft/events/decorate_biome_event/index.md similarity index 72% rename from docs/groovy-script/minecraft/events/decorate_biome_event/decorate_biome_event.md rename to docs/groovy-script/minecraft/events/decorate_biome_event/index.md index 7e1456d..cc43ef5 100644 --- a/docs/groovy-script/minecraft/events/decorate_biome_event/decorate_biome_event.md +++ b/docs/groovy-script/minecraft/events/decorate_biome_event/index.md @@ -1,48 +1,48 @@ -# DecorateBiomeEvent +# Decorate Biome Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.DecorateBiomeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.ChunkPos getChunkPos() ``` -# DecorateBiomeEvent.Pre +# Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Pre ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[DecorateBiomeEvent](decorate_biome_event.md) +[DecorateBiomeEvent](index.md) ## Methods -# DecorateBiomeEvent.Post +# Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Post ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[DecorateBiomeEvent](decorate_biome_event.md) +[DecorateBiomeEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/difficulty_change_event.md b/docs/groovy-script/minecraft/events/difficulty_change_event.md index 0acf23e..5ec193c 100644 --- a/docs/groovy-script/minecraft/events/difficulty_change_event.md +++ b/docs/groovy-script/minecraft/events/difficulty_change_event.md @@ -1,16 +1,15 @@ -# DifficultyChangeEvent +# Difficulty Change Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.DifficultyChangeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.EnumDifficulty getOldDifficulty() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.EnumDifficulty getDifficulty() ``` - diff --git a/docs/groovy-script/minecraft/events/enchantment_level_set_event.md b/docs/groovy-script/minecraft/events/enchantment_level_set_event.md index 9668d61..2d2ea6f 100644 --- a/docs/groovy-script/minecraft/events/enchantment_level_set_event.md +++ b/docs/groovy-script/minecraft/events/enchantment_level_set_event.md @@ -1,40 +1,39 @@ -# EnchantmentLevelSetEvent +# Enchantment Level Set Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.enchanting.EnchantmentLevelSetEvent ``` ## Methods -```groovy +```groovy:no-line-numbers int getLevel() ``` -```groovy +```groovy:no-line-numbers void setLevel(int arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItem() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers int getOriginalLevel() ``` -```groovy +```groovy:no-line-numbers int getEnchantRow() ``` -```groovy +```groovy:no-line-numbers int getPower() ``` - diff --git a/docs/groovy-script/minecraft/events/ender_teleport_event.md b/docs/groovy-script/minecraft/events/ender_teleport_event.md index 2f39ef7..1194621 100644 --- a/docs/groovy-script/minecraft/events/ender_teleport_event.md +++ b/docs/groovy-script/minecraft/events/ender_teleport_event.md @@ -1,43 +1,43 @@ -# EnderTeleportEvent +# Ender Teleport Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.EnderTeleportEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers double getTargetX() ``` -```groovy +```groovy:no-line-numbers double getTargetY() ``` -```groovy +```groovy:no-line-numbers double getTargetZ() ``` -```groovy +```groovy:no-line-numbers float getAttackDamage() ``` -```groovy +```groovy:no-line-numbers void setAttackDamage(float arg0) ``` -```groovy +```groovy:no-line-numbers void setTargetX(double arg0) ``` -```groovy +```groovy:no-line-numbers void setTargetZ(double arg0) ``` -```groovy +```groovy:no-line-numbers void setTargetY(double arg0) ``` diff --git a/docs/groovy-script/minecraft/events/entity_event/can_update.md b/docs/groovy-script/minecraft/events/entity_event/can_update.md index ab402cb..72ff501 100644 --- a/docs/groovy-script/minecraft/events/entity_event/can_update.md +++ b/docs/groovy-script/minecraft/events/entity_event/can_update.md @@ -1,19 +1,19 @@ -# EntityEvent.CanUpdate +# Can Update To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityEvent.CanUpdate ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](../entity_event/entity_event.md) +[EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean getCanUpdate() ``` -```groovy +```groovy:no-line-numbers void setCanUpdate(boolean arg0) ``` diff --git a/docs/groovy-script/minecraft/events/entity_event/entering_chunk.md b/docs/groovy-script/minecraft/events/entity_event/entering_chunk.md index 541e580..84b3998 100644 --- a/docs/groovy-script/minecraft/events/entity_event/entering_chunk.md +++ b/docs/groovy-script/minecraft/events/entity_event/entering_chunk.md @@ -1,43 +1,43 @@ -# EntityEvent.EnteringChunk +# Entering Chunk To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityEvent.EnteringChunk ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](../entity_event/entity_event.md) +[EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers void setNewChunkX(int arg0) ``` -```groovy +```groovy:no-line-numbers void setNewChunkZ(int arg0) ``` -```groovy +```groovy:no-line-numbers void setOldChunkX(int arg0) ``` -```groovy +```groovy:no-line-numbers void setOldChunkZ(int arg0) ``` -```groovy +```groovy:no-line-numbers int getNewChunkX() ``` -```groovy +```groovy:no-line-numbers int getOldChunkX() ``` -```groovy +```groovy:no-line-numbers int getOldChunkZ() ``` -```groovy +```groovy:no-line-numbers int getNewChunkZ() ``` diff --git a/docs/groovy-script/minecraft/events/entity_event/entity_constructing.md b/docs/groovy-script/minecraft/events/entity_event/entity_constructing.md index e39e352..dd9b0f3 100644 --- a/docs/groovy-script/minecraft/events/entity_event/entity_constructing.md +++ b/docs/groovy-script/minecraft/events/entity_event/entity_constructing.md @@ -1,12 +1,12 @@ -# EntityEvent.EntityConstructing +# Entity Constructing To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityEvent.EntityConstructing ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](../entity_event/entity_event.md) +[EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/entity_event/entity_event.md b/docs/groovy-script/minecraft/events/entity_event/index.md similarity index 69% rename from docs/groovy-script/minecraft/events/entity_event/entity_event.md rename to docs/groovy-script/minecraft/events/entity_event/index.md index 2a43262..52e52ed 100644 --- a/docs/groovy-script/minecraft/events/entity_event/entity_event.md +++ b/docs/groovy-script/minecraft/events/entity_event/index.md @@ -1,12 +1,11 @@ -# EntityEvent +# Entity Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntity() ``` - diff --git a/docs/groovy-script/minecraft/events/entity_item_pickup_event.md b/docs/groovy-script/minecraft/events/entity_item_pickup_event.md index b1bde16..c4a14d3 100644 --- a/docs/groovy-script/minecraft/events/entity_item_pickup_event.md +++ b/docs/groovy-script/minecraft/events/entity_item_pickup_event.md @@ -1,19 +1,19 @@ -# EntityItemPickupEvent +# Entity Item Pickup Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.EntityItemPickupEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.item.EntityItem getItem() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` diff --git a/docs/groovy-script/minecraft/events/entity_join_world_event.md b/docs/groovy-script/minecraft/events/entity_join_world_event.md index c29d66c..0268f9a 100644 --- a/docs/groovy-script/minecraft/events/entity_join_world_event.md +++ b/docs/groovy-script/minecraft/events/entity_join_world_event.md @@ -1,15 +1,15 @@ -# EntityJoinWorldEvent +# Entity Join World Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityJoinWorldEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` diff --git a/docs/groovy-script/minecraft/events/entity_mob_griefing_event.md b/docs/groovy-script/minecraft/events/entity_mob_griefing_event.md index 1362404..3f88b2a 100644 --- a/docs/groovy-script/minecraft/events/entity_mob_griefing_event.md +++ b/docs/groovy-script/minecraft/events/entity_mob_griefing_event.md @@ -1,15 +1,15 @@ -# EntityMobGriefingEvent +# Entity Mob Griefing Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityMobGriefingEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` diff --git a/docs/groovy-script/minecraft/events/entity_mount_event.md b/docs/groovy-script/minecraft/events/entity_mount_event.md index 73237ca..3bba53b 100644 --- a/docs/groovy-script/minecraft/events/entity_mount_event.md +++ b/docs/groovy-script/minecraft/events/entity_mount_event.md @@ -1,31 +1,31 @@ -# EntityMountEvent +# Entity Mount Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityMountEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorldObj() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntityBeingMounted() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntityMounting() ``` -```groovy +```groovy:no-line-numbers boolean isMounting() ``` -```groovy +```groovy:no-line-numbers boolean isDismounting() ``` diff --git a/docs/groovy-script/minecraft/events/entity_struck_by_lightning_event.md b/docs/groovy-script/minecraft/events/entity_struck_by_lightning_event.md index 5850e2c..4078ff5 100644 --- a/docs/groovy-script/minecraft/events/entity_struck_by_lightning_event.md +++ b/docs/groovy-script/minecraft/events/entity_struck_by_lightning_event.md @@ -1,15 +1,15 @@ -# EntityStruckByLightningEvent +# Entity Struck By Lightning Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityStruckByLightningEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.effect.EntityLightningBolt getLightning() ``` diff --git a/docs/groovy-script/minecraft/events/entity_travel_to_dimension_event.md b/docs/groovy-script/minecraft/events/entity_travel_to_dimension_event.md index 48c1497..6869f94 100644 --- a/docs/groovy-script/minecraft/events/entity_travel_to_dimension_event.md +++ b/docs/groovy-script/minecraft/events/entity_travel_to_dimension_event.md @@ -1,15 +1,15 @@ -# EntityTravelToDimensionEvent +# Entity Travel To Dimension Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityTravelToDimensionEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers int getDimension() ``` diff --git a/docs/groovy-script/minecraft/events/explosion_event/detonate.md b/docs/groovy-script/minecraft/events/explosion_event/detonate.md index 6b0e3d9..0d65564 100644 --- a/docs/groovy-script/minecraft/events/explosion_event/detonate.md +++ b/docs/groovy-script/minecraft/events/explosion_event/detonate.md @@ -1,20 +1,19 @@ -# ExplosionEvent.Detonate +# Detonate To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ExplosionEvent.Detonate ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ExplosionEvent](explosion_event.md) +[ExplosionEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers java.util.List getAffectedBlocks() ``` -```groovy +```groovy:no-line-numbers java.util.List getAffectedEntities() ``` - diff --git a/docs/groovy-script/minecraft/events/explosion_event/explosion_event.md b/docs/groovy-script/minecraft/events/explosion_event/index.md similarity index 68% rename from docs/groovy-script/minecraft/events/explosion_event/explosion_event.md rename to docs/groovy-script/minecraft/events/explosion_event/index.md index 071aa22..7bdbf5e 100644 --- a/docs/groovy-script/minecraft/events/explosion_event/explosion_event.md +++ b/docs/groovy-script/minecraft/events/explosion_event/index.md @@ -1,16 +1,15 @@ -# ExplosionEvent +# Explosion Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ExplosionEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.Explosion getExplosion() ``` - diff --git a/docs/groovy-script/minecraft/events/explosion_event/start.md b/docs/groovy-script/minecraft/events/explosion_event/start.md index 7de5448..5a4286a 100644 --- a/docs/groovy-script/minecraft/events/explosion_event/start.md +++ b/docs/groovy-script/minecraft/events/explosion_event/start.md @@ -1,12 +1,12 @@ -# ExplosionEvent.Start +# Start To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ExplosionEvent.Start ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ExplosionEvent](explosion_event.md) +[ExplosionEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/fill_bucket_event.md b/docs/groovy-script/minecraft/events/fill_bucket_event.md index 497c181..fd0d748 100644 --- a/docs/groovy-script/minecraft/events/fill_bucket_event.md +++ b/docs/groovy-script/minecraft/events/fill_bucket_event.md @@ -1,35 +1,35 @@ -# FillBucketEvent +# Fill Bucket Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.FillBucketEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.RayTraceResult getTarget() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getFilledBucket() ``` -```groovy +```groovy:no-line-numbers void setFilledBucket(net.minecraft.item.ItemStack arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getEmptyBucket() ``` diff --git a/docs/groovy-script/minecraft/events/furnace_fuel_burn_time_event.md b/docs/groovy-script/minecraft/events/furnace_fuel_burn_time_event.md index dcab401..7fb8e8a 100644 --- a/docs/groovy-script/minecraft/events/furnace_fuel_burn_time_event.md +++ b/docs/groovy-script/minecraft/events/furnace_fuel_burn_time_event.md @@ -1,20 +1,19 @@ -# FurnaceFuelBurnTimeEvent +# Furnace Fuel Burn Time Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers int getBurnTime() ``` -```groovy +```groovy:no-line-numbers void setBurnTime(int arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemStack() ``` - diff --git a/docs/groovy-script/minecraft/events/game_rule_change_event.md b/docs/groovy-script/minecraft/events/game_rule_change_event.md index 5efaa5c..4e434c4 100644 --- a/docs/groovy-script/minecraft/events/game_rule_change_event.md +++ b/docs/groovy-script/minecraft/events/game_rule_change_event.md @@ -1,20 +1,19 @@ -# GameRuleChangeEvent +# Game Rule Change Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.GameRuleChangeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.GameRules getRules() ``` -```groovy +```groovy:no-line-numbers java.lang.String getRuleName() ``` -```groovy +```groovy:no-line-numbers net.minecraft.server.MinecraftServer getServer() ``` - diff --git a/docs/groovy-script/minecraft/events/generic_event.md b/docs/groovy-script/minecraft/events/generic_event.md deleted file mode 100644 index 1333ed7..0000000 --- a/docs/groovy-script/minecraft/events/generic_event.md +++ /dev/null @@ -1 +0,0 @@ -TODO diff --git a/docs/groovy-script/minecraft/events/get_collision_boxes_event.md b/docs/groovy-script/minecraft/events/get_collision_boxes_event.md index 58cf305..9725d08 100644 --- a/docs/groovy-script/minecraft/events/get_collision_boxes_event.md +++ b/docs/groovy-script/minecraft/events/get_collision_boxes_event.md @@ -1,23 +1,23 @@ -# GetCollisionBoxesEvent +# Get Collision Boxes Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.GetCollisionBoxesEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](world_event/world_event.md) +[WorldEvent](./world_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntity() ``` -```groovy +```groovy:no-line-numbers java.util.List getCollisionBoxesList() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.AxisAlignedBB getAabb() ``` diff --git a/docs/groovy-script/minecraft/events/index.md b/docs/groovy-script/minecraft/events/index.md index 1180835..d3c9ce0 100644 --- a/docs/groovy-script/minecraft/events/index.md +++ b/docs/groovy-script/minecraft/events/index.md @@ -24,12 +24,12 @@ What is happening? - `event_manager` is a global variable where event listeners are registered (alternative name `eventManager`) - `listen` is a method which accepts a [closure](../../groovy/closure.md) with the event class as the first parameter - `BreakEvent event` is the event being listened to. The type must be specified and imported here. ( - See [BreakEvent](block_event/break_event.md)) + See [BreakEvent](./block_event/index.md)) - Inside the closure you can do what you want. Here the broken block state is printed to the log. ## Other listen methods -```groovy +```groovy:no-line-numbers event_manager.listen(EventPriority eventPriority, EventBusType eventBusType, Closure eventListener) event_manager.listen(EventBusType eventPriority, EventPriority eventBusType, Closure eventListener) event_manager.listen(EventBusType eventPriority, Closure eventListener) diff --git a/docs/groovy-script/minecraft/events/init_map_gen_event.md b/docs/groovy-script/minecraft/events/init_map_gen_event.md index 307c285..e8c972f 100644 --- a/docs/groovy-script/minecraft/events/init_map_gen_event.md +++ b/docs/groovy-script/minecraft/events/init_map_gen_event.md @@ -1,24 +1,23 @@ -# InitMapGenEvent +# Init Map Gen Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.InitMapGenEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.InitMapGenEvent$EventType getType() ``` -```groovy +```groovy:no-line-numbers void setNewGen(net.minecraft.world.gen.MapGenBase arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.MapGenBase getOriginalGen() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.MapGenBase getNewGen() ``` - diff --git a/docs/groovy-script/minecraft/events/init_noise_gens_event.md b/docs/groovy-script/minecraft/events/init_noise_gens_event.md index f8925c5..086a53d 100644 --- a/docs/groovy-script/minecraft/events/init_noise_gens_event.md +++ b/docs/groovy-script/minecraft/events/init_noise_gens_event.md @@ -1,23 +1,23 @@ -# InitNoiseGensEvent +# Init Noise Gens Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.InitNoiseGensEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](world_event/world_event.md) +[WorldEvent](./world_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.InitNoiseGensEvent$Context getNewValues() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.InitNoiseGensEvent$Context getOriginal() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRandom() ``` diff --git a/docs/groovy-script/minecraft/events/item_event.md b/docs/groovy-script/minecraft/events/item_event.md index 12d1b85..6b1eade 100644 --- a/docs/groovy-script/minecraft/events/item_event.md +++ b/docs/groovy-script/minecraft/events/item_event.md @@ -1,15 +1,15 @@ -# ItemEvent +# Item Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.item.ItemEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.item.EntityItem getEntityItem() ``` diff --git a/docs/groovy-script/minecraft/events/item_expire_event.md b/docs/groovy-script/minecraft/events/item_expire_event.md index 271ee4a..b2f3f08 100644 --- a/docs/groovy-script/minecraft/events/item_expire_event.md +++ b/docs/groovy-script/minecraft/events/item_expire_event.md @@ -1,19 +1,19 @@ -# ItemExpireEvent +# Item Expire Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.item.ItemExpireEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ItemEvent](item_event.md), [EntityEvent](entity_event/entity_event.md) +[ItemEvent](./item_event.md), [EntityEvent](entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers int getExtraLife() ``` -```groovy +```groovy:no-line-numbers void setExtraLife(int arg0) ``` diff --git a/docs/groovy-script/minecraft/events/item_fished_event.md b/docs/groovy-script/minecraft/events/item_fished_event.md index 34743b1..c1478ca 100644 --- a/docs/groovy-script/minecraft/events/item_fished_event.md +++ b/docs/groovy-script/minecraft/events/item_fished_event.md @@ -1,27 +1,27 @@ -# ItemFishedEvent +# Item Fished Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.ItemFishedEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers int getRodDamage() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.NonNullList getDrops() ``` -```groovy +```groovy:no-line-numbers void damageRodBy(int arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityFishHook getHookEntity() ``` diff --git a/docs/groovy-script/minecraft/events/item_tooltip_event.md b/docs/groovy-script/minecraft/events/item_tooltip_event.md index 451b59a..d8904c2 100644 --- a/docs/groovy-script/minecraft/events/item_tooltip_event.md +++ b/docs/groovy-script/minecraft/events/item_tooltip_event.md @@ -1,27 +1,27 @@ -# ItemTooltipEvent +# Item Tooltip Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.ItemTooltipEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.client.util.ITooltipFlag getFlags() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getEntityPlayer() ``` -```groovy +```groovy:no-line-numbers java.util.List getToolTip() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemStack() ``` diff --git a/docs/groovy-script/minecraft/events/item_toss_event.md b/docs/groovy-script/minecraft/events/item_toss_event.md index c720fbd..0d5c38d 100644 --- a/docs/groovy-script/minecraft/events/item_toss_event.md +++ b/docs/groovy-script/minecraft/events/item_toss_event.md @@ -1,15 +1,15 @@ -# ItemTossEvent +# Item Toss Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.item.ItemTossEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ItemEvent](item_event.md), [EntityEvent](entity_event/entity_event.md) +[ItemEvent](./item_event.md), [EntityEvent](entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` diff --git a/docs/groovy-script/minecraft/events/living_attack_event.md b/docs/groovy-script/minecraft/events/living_attack_event.md index 5ddc2e6..eba4e86 100644 --- a/docs/groovy-script/minecraft/events/living_attack_event.md +++ b/docs/groovy-script/minecraft/events/living_attack_event.md @@ -1,19 +1,19 @@ -# LivingAttackEvent +# Living Attack Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingAttackEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` -```groovy +```groovy:no-line-numbers float getAmount() ``` diff --git a/docs/groovy-script/minecraft/events/living_damage_event.md b/docs/groovy-script/minecraft/events/living_damage_event.md index a2d0a88..7d58935 100644 --- a/docs/groovy-script/minecraft/events/living_damage_event.md +++ b/docs/groovy-script/minecraft/events/living_damage_event.md @@ -1,23 +1,23 @@ -# LivingDamageEvent +# Living Damage Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingDamageEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` -```groovy +```groovy:no-line-numbers void setAmount(float arg0) ``` -```groovy +```groovy:no-line-numbers float getAmount() ``` diff --git a/docs/groovy-script/minecraft/events/living_death_event.md b/docs/groovy-script/minecraft/events/living_death_event.md index a5824fa..469d10f 100644 --- a/docs/groovy-script/minecraft/events/living_death_event.md +++ b/docs/groovy-script/minecraft/events/living_death_event.md @@ -1,15 +1,15 @@ -# LivingDeathEvent +# Living Death Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingDeathEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` diff --git a/docs/groovy-script/minecraft/events/living_destroy_block_event.md b/docs/groovy-script/minecraft/events/living_destroy_block_event.md index ce40063..e99aa33 100644 --- a/docs/groovy-script/minecraft/events/living_destroy_block_event.md +++ b/docs/groovy-script/minecraft/events/living_destroy_block_event.md @@ -1,19 +1,19 @@ -# LivingDestroyBlockEvent +# Living Destroy Block Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingDestroyBlockEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getState() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` diff --git a/docs/groovy-script/minecraft/events/living_drops_event.md b/docs/groovy-script/minecraft/events/living_drops_event.md index a838e0f..33e8c35 100644 --- a/docs/groovy-script/minecraft/events/living_drops_event.md +++ b/docs/groovy-script/minecraft/events/living_drops_event.md @@ -1,27 +1,27 @@ -# LivingDropsEvent +# Living Drops Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingDropsEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` -```groovy +```groovy:no-line-numbers java.util.List getDrops() ``` -```groovy +```groovy:no-line-numbers boolean isRecentlyHit() ``` -```groovy +```groovy:no-line-numbers int getLootingLevel() ``` diff --git a/docs/groovy-script/minecraft/events/living_entity_use_item_event/finish.md b/docs/groovy-script/minecraft/events/living_entity_use_item_event/finish.md index 9d229a5..8dfa334 100644 --- a/docs/groovy-script/minecraft/events/living_entity_use_item_event/finish.md +++ b/docs/groovy-script/minecraft/events/living_entity_use_item_event/finish.md @@ -1,19 +1,19 @@ -# LivingEntityUseItemEvent.Finish +# Finish To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Finish ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEntityUseItemEvent](living_entity_use_item_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEntityUseItemEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getResultStack() ``` -```groovy +```groovy:no-line-numbers void setResultStack(net.minecraft.item.ItemStack arg0) ``` diff --git a/docs/groovy-script/minecraft/events/living_entity_use_item_event/living_entity_use_item_event.md b/docs/groovy-script/minecraft/events/living_entity_use_item_event/index.md similarity index 60% rename from docs/groovy-script/minecraft/events/living_entity_use_item_event/living_entity_use_item_event.md rename to docs/groovy-script/minecraft/events/living_entity_use_item_event/index.md index 49e8172..bec8a29 100644 --- a/docs/groovy-script/minecraft/events/living_entity_use_item_event/living_entity_use_item_event.md +++ b/docs/groovy-script/minecraft/events/living_entity_use_item_event/index.md @@ -1,23 +1,23 @@ -# LivingEntityUseItemEvent +# Living Entity Use Item Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers int getDuration() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItem() ``` -```groovy +```groovy:no-line-numbers void setDuration(int arg0) ``` diff --git a/docs/groovy-script/minecraft/events/living_entity_use_item_event/start.md b/docs/groovy-script/minecraft/events/living_entity_use_item_event/start.md index e88a82a..b490214 100644 --- a/docs/groovy-script/minecraft/events/living_entity_use_item_event/start.md +++ b/docs/groovy-script/minecraft/events/living_entity_use_item_event/start.md @@ -1,12 +1,12 @@ -# LivingEntityUseItemEvent.Start +# Start To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Start ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEntityUseItemEvent](living_entity_use_item_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEntityUseItemEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/living_entity_use_item_event/stop.md b/docs/groovy-script/minecraft/events/living_entity_use_item_event/stop.md index a1cc556..d9a72b7 100644 --- a/docs/groovy-script/minecraft/events/living_entity_use_item_event/stop.md +++ b/docs/groovy-script/minecraft/events/living_entity_use_item_event/stop.md @@ -1,12 +1,12 @@ -# LivingEntityUseItemEvent.Stop +# Stop To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Stop ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEntityUseItemEvent](living_entity_use_item_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEntityUseItemEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/living_entity_use_item_event/tick.md b/docs/groovy-script/minecraft/events/living_entity_use_item_event/tick.md index 468239a..94060f2 100644 --- a/docs/groovy-script/minecraft/events/living_entity_use_item_event/tick.md +++ b/docs/groovy-script/minecraft/events/living_entity_use_item_event/tick.md @@ -1,12 +1,12 @@ -# LivingEntityUseItemEvent.Tick +# Tick To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Tick ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEntityUseItemEvent](living_entity_use_item_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEntityUseItemEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/living_equipment_change_event.md b/docs/groovy-script/minecraft/events/living_equipment_change_event.md index 7cf49c3..3cfd1df 100644 --- a/docs/groovy-script/minecraft/events/living_equipment_change_event.md +++ b/docs/groovy-script/minecraft/events/living_equipment_change_event.md @@ -1,23 +1,23 @@ -# LivingEquipmentChangeEvent +# Living Equipment Change Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEquipmentChangeEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.inventory.EntityEquipmentSlot getSlot() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getTo() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getFrom() ``` diff --git a/docs/groovy-script/minecraft/events/living_event/living_event.md b/docs/groovy-script/minecraft/events/living_event/index.md similarity index 72% rename from docs/groovy-script/minecraft/events/living_event/living_event.md rename to docs/groovy-script/minecraft/events/living_event/index.md index c2ee665..df2dae1 100644 --- a/docs/groovy-script/minecraft/events/living_event/living_event.md +++ b/docs/groovy-script/minecraft/events/living_event/index.md @@ -1,15 +1,15 @@ -# LivingEvent +# Living Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](../entity_event/entity_event.md) +[EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLivingBase getEntityLiving() ``` diff --git a/docs/groovy-script/minecraft/events/living_event/living_jump_event.md b/docs/groovy-script/minecraft/events/living_event/living_jump_event.md index 63afaf1..a04ad61 100644 --- a/docs/groovy-script/minecraft/events/living_event/living_jump_event.md +++ b/docs/groovy-script/minecraft/events/living_event/living_jump_event.md @@ -1,12 +1,12 @@ -# LivingEvent.LivingJumpEvent +# Living Jump Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEvent.LivingJumpEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/living_event/living_update_event.md b/docs/groovy-script/minecraft/events/living_event/living_update_event.md index d42187d..4d78f8e 100644 --- a/docs/groovy-script/minecraft/events/living_event/living_update_event.md +++ b/docs/groovy-script/minecraft/events/living_event/living_update_event.md @@ -1,12 +1,12 @@ -# LivingEvent.LivingUpdateEvent +# Living Update Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/living_experience_drop_event.md b/docs/groovy-script/minecraft/events/living_experience_drop_event.md index 8638fc4..83673a8 100644 --- a/docs/groovy-script/minecraft/events/living_experience_drop_event.md +++ b/docs/groovy-script/minecraft/events/living_experience_drop_event.md @@ -1,27 +1,27 @@ -# LivingExperienceDropEvent +# Living Experience Drop Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingExperienceDropEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers int getDroppedExperience() ``` -```groovy +```groovy:no-line-numbers void setDroppedExperience(int arg0) ``` -```groovy +```groovy:no-line-numbers int getOriginalExperience() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getAttackingPlayer() ``` diff --git a/docs/groovy-script/minecraft/events/living_fall_event.md b/docs/groovy-script/minecraft/events/living_fall_event.md index 63a2845..0c78890 100644 --- a/docs/groovy-script/minecraft/events/living_fall_event.md +++ b/docs/groovy-script/minecraft/events/living_fall_event.md @@ -1,27 +1,27 @@ -# LivingFallEvent +# Living Fall Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingFallEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers float getDamageMultiplier() ``` -```groovy +```groovy:no-line-numbers void setDamageMultiplier(float arg0) ``` -```groovy +```groovy:no-line-numbers void setDistance(float arg0) ``` -```groovy +```groovy:no-line-numbers float getDistance() ``` diff --git a/docs/groovy-script/minecraft/events/living_heal_event.md b/docs/groovy-script/minecraft/events/living_heal_event.md index 15b34b4..35005bb 100644 --- a/docs/groovy-script/minecraft/events/living_heal_event.md +++ b/docs/groovy-script/minecraft/events/living_heal_event.md @@ -1,19 +1,19 @@ -# LivingHealEvent +# Living Heal Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingHealEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers void setAmount(float arg0) ``` -```groovy +```groovy:no-line-numbers float getAmount() ``` diff --git a/docs/groovy-script/minecraft/events/living_hurt_event.md b/docs/groovy-script/minecraft/events/living_hurt_event.md index c9cc394..afd1cef 100644 --- a/docs/groovy-script/minecraft/events/living_hurt_event.md +++ b/docs/groovy-script/minecraft/events/living_hurt_event.md @@ -1,23 +1,23 @@ -# LivingHurtEvent +# Living Hurt Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingHurtEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` -```groovy +```groovy:no-line-numbers void setAmount(float arg0) ``` -```groovy +```groovy:no-line-numbers float getAmount() ``` diff --git a/docs/groovy-script/minecraft/events/living_knock_back_event.md b/docs/groovy-script/minecraft/events/living_knock_back_event.md index 5f39a4f..61f11e3 100644 --- a/docs/groovy-script/minecraft/events/living_knock_back_event.md +++ b/docs/groovy-script/minecraft/events/living_knock_back_event.md @@ -1,59 +1,59 @@ -# LivingKnockBackEvent +# Living Knock Back Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingKnockBackEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getOriginalAttacker() ``` -```groovy +```groovy:no-line-numbers double getOriginalRatioX() ``` -```groovy +```groovy:no-line-numbers double getOriginalRatioZ() ``` -```groovy +```groovy:no-line-numbers float getOriginalStrength() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getAttacker() ``` -```groovy +```groovy:no-line-numbers float getStrength() ``` -```groovy +```groovy:no-line-numbers double getRatioX() ``` -```groovy +```groovy:no-line-numbers double getRatioZ() ``` -```groovy +```groovy:no-line-numbers void setStrength(float arg0) ``` -```groovy +```groovy:no-line-numbers void setAttacker(net.minecraft.entity.Entity arg0) ``` -```groovy +```groovy:no-line-numbers void setRatioZ(double arg0) ``` -```groovy +```groovy:no-line-numbers void setRatioX(double arg0) ``` diff --git a/docs/groovy-script/minecraft/events/living_pack_size_event.md b/docs/groovy-script/minecraft/events/living_pack_size_event.md index a989935..6fd5971 100644 --- a/docs/groovy-script/minecraft/events/living_pack_size_event.md +++ b/docs/groovy-script/minecraft/events/living_pack_size_event.md @@ -1,23 +1,23 @@ -# LivingPackSizeEvent +# Living Pack Size Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingPackSizeEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers int getMaxPackSize() ``` -```groovy +```groovy:no-line-numbers void setMaxPackSize(int arg0) ``` diff --git a/docs/groovy-script/minecraft/events/living_set_attack_target_event.md b/docs/groovy-script/minecraft/events/living_set_attack_target_event.md index e0b626a..6805816 100644 --- a/docs/groovy-script/minecraft/events/living_set_attack_target_event.md +++ b/docs/groovy-script/minecraft/events/living_set_attack_target_event.md @@ -1,15 +1,15 @@ -# LivingSetAttackTargetEvent +# Living Set Attack Target Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSetAttackTargetEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLivingBase getTarget() ``` diff --git a/docs/groovy-script/minecraft/events/living_spawn_event/allow_despawn.md b/docs/groovy-script/minecraft/events/living_spawn_event/allow_despawn.md index b44a361..09016b6 100644 --- a/docs/groovy-script/minecraft/events/living_spawn_event/allow_despawn.md +++ b/docs/groovy-script/minecraft/events/living_spawn_event/allow_despawn.md @@ -1,15 +1,15 @@ -# LivingSpawnEvent.AllowDespawn +# Allow Despawn To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSpawnEvent.AllowDespawn ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingSpawnEvent](living_spawn_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingSpawnEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` diff --git a/docs/groovy-script/minecraft/events/living_spawn_event/check_spawn.md b/docs/groovy-script/minecraft/events/living_spawn_event/check_spawn.md index 68317d3..d10bb9a 100644 --- a/docs/groovy-script/minecraft/events/living_spawn_event/check_spawn.md +++ b/docs/groovy-script/minecraft/events/living_spawn_event/check_spawn.md @@ -1,23 +1,23 @@ -# LivingSpawnEvent.CheckSpawn +# Check Spawn To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSpawnEvent.CheckSpawn ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingSpawnEvent](living_spawn_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingSpawnEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers boolean isSpawner() ``` -```groovy +```groovy:no-line-numbers net.minecraft.tileentity.MobSpawnerBaseLogic getSpawner() ``` diff --git a/docs/groovy-script/minecraft/events/living_spawn_event/living_spawn_event.md b/docs/groovy-script/minecraft/events/living_spawn_event/index.md similarity index 58% rename from docs/groovy-script/minecraft/events/living_spawn_event/living_spawn_event.md rename to docs/groovy-script/minecraft/events/living_spawn_event/index.md index 51e8c76..b4f34b3 100644 --- a/docs/groovy-script/minecraft/events/living_spawn_event/living_spawn_event.md +++ b/docs/groovy-script/minecraft/events/living_spawn_event/index.md @@ -1,27 +1,27 @@ -# LivingSpawnEvent +# Living Spawn Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSpawnEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers float getY() ``` -```groovy +```groovy:no-line-numbers float getX() ``` -```groovy +```groovy:no-line-numbers float getZ() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` diff --git a/docs/groovy-script/minecraft/events/living_spawn_event/special_spawn.md b/docs/groovy-script/minecraft/events/living_spawn_event/special_spawn.md index f20f9b1..07f2031 100644 --- a/docs/groovy-script/minecraft/events/living_spawn_event/special_spawn.md +++ b/docs/groovy-script/minecraft/events/living_spawn_event/special_spawn.md @@ -1,15 +1,15 @@ -# LivingSpawnEvent.SpecialSpawn +# Special Spawn To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSpawnEvent.SpecialSpawn ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingSpawnEvent](living_spawn_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingSpawnEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.tileentity.MobSpawnerBaseLogic getSpawner() ``` diff --git a/docs/groovy-script/minecraft/events/loot_table_load_event.md b/docs/groovy-script/minecraft/events/loot_table_load_event.md index 6e56648..99837d5 100644 --- a/docs/groovy-script/minecraft/events/loot_table_load_event.md +++ b/docs/groovy-script/minecraft/events/loot_table_load_event.md @@ -1,24 +1,23 @@ -# LootTableLoadEvent +# Loot Table Load Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.LootTableLoadEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.ResourceLocation getName() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.storage.loot.LootTable getTable() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.storage.loot.LootTableManager getLootTableManager() ``` -```groovy +```groovy:no-line-numbers void setTable(net.minecraft.world.storage.loot.LootTable arg0) ``` - diff --git a/docs/groovy-script/minecraft/events/looting_level_event.md b/docs/groovy-script/minecraft/events/looting_level_event.md index 9d2c300..6af1499 100644 --- a/docs/groovy-script/minecraft/events/looting_level_event.md +++ b/docs/groovy-script/minecraft/events/looting_level_event.md @@ -1,23 +1,23 @@ -# LootingLevelEvent +# Looting Level Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LootingLevelEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getDamageSource() ``` -```groovy +```groovy:no-line-numbers void setLootingLevel(int arg0) ``` -```groovy +```groovy:no-line-numbers int getLootingLevel() ``` diff --git a/docs/groovy-script/minecraft/events/merchant_trade_offers_event.md b/docs/groovy-script/minecraft/events/merchant_trade_offers_event.md index e8bd465..e3ef1ad 100644 --- a/docs/groovy-script/minecraft/events/merchant_trade_offers_event.md +++ b/docs/groovy-script/minecraft/events/merchant_trade_offers_event.md @@ -1,24 +1,23 @@ -# MerchantTradeOffersEvent +# Merchant Trade Offers Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.village.MerchantTradeOffersEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.village.MerchantRecipeList getList() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.IMerchant getMerchant() ``` -```groovy +```groovy:no-line-numbers void setList(net.minecraft.village.MerchantRecipeList arg0) ``` - diff --git a/docs/groovy-script/minecraft/events/minecart_collision_event.md b/docs/groovy-script/minecraft/events/minecart_collision_event.md index cfb0ccf..71b13a9 100644 --- a/docs/groovy-script/minecraft/events/minecart_collision_event.md +++ b/docs/groovy-script/minecraft/events/minecart_collision_event.md @@ -1,15 +1,15 @@ -# MinecartCollisionEvent +# Minecart Collision Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.minecart.MinecartCollisionEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[MinecartEvent](minecart_event.md), [EntityEvent](entity_event/entity_event.md) +[MinecartEvent](./minecart_event.md), [EntityEvent](entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getCollider() ``` diff --git a/docs/groovy-script/minecraft/events/minecart_event.md b/docs/groovy-script/minecraft/events/minecart_event.md index 7e72abb..905671d 100644 --- a/docs/groovy-script/minecraft/events/minecart_event.md +++ b/docs/groovy-script/minecraft/events/minecart_event.md @@ -1,15 +1,15 @@ -# MinecartEvent +# Minecart Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.minecart.MinecartEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.item.EntityMinecart getMinecart() ``` diff --git a/docs/groovy-script/minecraft/events/minecart_interact_event.md b/docs/groovy-script/minecraft/events/minecart_interact_event.md index 8ecec45..86bf108 100644 --- a/docs/groovy-script/minecraft/events/minecart_interact_event.md +++ b/docs/groovy-script/minecraft/events/minecart_interact_event.md @@ -1,23 +1,23 @@ -# MinecartInteractEvent +# Minecart Interact Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.minecart.MinecartInteractEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[MinecartEvent](minecart_event.md), [EntityEvent](entity_event/entity_event.md) +[MinecartEvent](./minecart_event.md), [EntityEvent](entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItem() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` diff --git a/docs/groovy-script/minecraft/events/minecart_update_event.md b/docs/groovy-script/minecraft/events/minecart_update_event.md index fb03040..999ea9c 100644 --- a/docs/groovy-script/minecraft/events/minecart_update_event.md +++ b/docs/groovy-script/minecraft/events/minecart_update_event.md @@ -1,15 +1,15 @@ -# MinecartUpdateEvent +# Minecart Update Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.minecart.MinecartUpdateEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[MinecartEvent](minecart_event.md), [EntityEvent](entity_event/entity_event.md) +[MinecartEvent](./minecart_event.md), [EntityEvent](entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` diff --git a/docs/groovy-script/minecraft/events/note_block_event/change.md b/docs/groovy-script/minecraft/events/note_block_event/change.md index 64ad94d..638fd01 100644 --- a/docs/groovy-script/minecraft/events/note_block_event/change.md +++ b/docs/groovy-script/minecraft/events/note_block_event/change.md @@ -1,19 +1,19 @@ -# NoteBlockEvent.Change +# Change To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.NoteBlockEvent.Change ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[NoteBlockEvent](note_block_event.md), [BlockEvent](../block_event/block_event.md) +[NoteBlockEvent](index.md), [BlockEvent](../block_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Note getOldNote() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Octave getOldOctave() ``` diff --git a/docs/groovy-script/minecraft/events/note_block_event/note_block_event.md b/docs/groovy-script/minecraft/events/note_block_event/index.md similarity index 73% rename from docs/groovy-script/minecraft/events/note_block_event/note_block_event.md rename to docs/groovy-script/minecraft/events/note_block_event/index.md index 0148ee2..1f438e1 100644 --- a/docs/groovy-script/minecraft/events/note_block_event/note_block_event.md +++ b/docs/groovy-script/minecraft/events/note_block_event/index.md @@ -1,27 +1,27 @@ -# NoteBlockEvent +# Note Block Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.NoteBlockEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[BlockEvent](../block_event/block_event.md) +[BlockEvent](../block_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Note getNote() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Octave getOctave() ``` -```groovy +```groovy:no-line-numbers int getVanillaNoteId() ``` -```groovy +```groovy:no-line-numbers void setNote(net.minecraftforge.event.world.NoteBlockEvent$Note arg0, net.minecraftforge.event.world.NoteBlockEvent$Octave arg1) ``` diff --git a/docs/groovy-script/minecraft/events/note_block_event/play.md b/docs/groovy-script/minecraft/events/note_block_event/play.md index 5fb7976..b7a6b2f 100644 --- a/docs/groovy-script/minecraft/events/note_block_event/play.md +++ b/docs/groovy-script/minecraft/events/note_block_event/play.md @@ -1,19 +1,19 @@ -# NoteBlockEvent.Play +# Play To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.NoteBlockEvent.Play ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[NoteBlockEvent](note_block_event.md), [BlockEvent](../block_event/block_event.md) +[NoteBlockEvent](index.md), [BlockEvent](../block_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Instrument getInstrument() ``` -```groovy +```groovy:no-line-numbers void setInstrument(net.minecraftforge.event.world.NoteBlockEvent$Instrument arg0) ``` diff --git a/docs/groovy-script/minecraft/events/ore_gen_event/generate_minable.md b/docs/groovy-script/minecraft/events/ore_gen_event/generate_minable.md index 8093800..fb864aa 100644 --- a/docs/groovy-script/minecraft/events/ore_gen_event/generate_minable.md +++ b/docs/groovy-script/minecraft/events/ore_gen_event/generate_minable.md @@ -1,24 +1,23 @@ -# OreGenEvent.GenerateMinable +# Generate Minable To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[OreGenEvent](ore_gen_event.md) +[OreGenEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.OreGenEvent$GenerateMinable$EventType getType() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.feature.WorldGenerator getGenerator() ``` - diff --git a/docs/groovy-script/minecraft/events/ore_gen_event/ore_gen_event.md b/docs/groovy-script/minecraft/events/ore_gen_event/index.md similarity index 74% rename from docs/groovy-script/minecraft/events/ore_gen_event/ore_gen_event.md rename to docs/groovy-script/minecraft/events/ore_gen_event/index.md index 8427399..66ee84a 100644 --- a/docs/groovy-script/minecraft/events/ore_gen_event/ore_gen_event.md +++ b/docs/groovy-script/minecraft/events/ore_gen_event/index.md @@ -1,44 +1,44 @@ -# OreGenEvent +# Ore Gen Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.OreGenEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRand() ``` -# OreGenEvent.Pre +# Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.OreGenEvent.Pre ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[OreGenEvent](ore_gen_event.md) +[OreGenEvent](index.md) ## Methods -# OreGenEvent.Post +# Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.OreGenEvent.Post ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[OreGenEvent](ore_gen_event.md) +[OreGenEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/play_sound_at_entity_event.md b/docs/groovy-script/minecraft/events/play_sound_at_entity_event.md index cc21169..9206500 100644 --- a/docs/groovy-script/minecraft/events/play_sound_at_entity_event.md +++ b/docs/groovy-script/minecraft/events/play_sound_at_entity_event.md @@ -1,51 +1,51 @@ -# PlaySoundAtEntityEvent +# Play Sound At Entity Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.PlaySoundAtEntityEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers void setCategory(net.minecraft.util.SoundCategory arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.SoundCategory getCategory() ``` -```groovy +```groovy:no-line-numbers float getVolume() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.SoundEvent getSound() ``` -```groovy +```groovy:no-line-numbers float getPitch() ``` -```groovy +```groovy:no-line-numbers void setPitch(float arg0) ``` -```groovy +```groovy:no-line-numbers void setVolume(float arg0) ``` -```groovy +```groovy:no-line-numbers float getDefaultPitch() ``` -```groovy +```groovy:no-line-numbers void setSound(net.minecraft.util.SoundEvent arg0) ``` -```groovy +```groovy:no-line-numbers float getDefaultVolume() ``` diff --git a/docs/groovy-script/minecraft/events/player_brewed_potion_event.md b/docs/groovy-script/minecraft/events/player_brewed_potion_event.md index a08c4b8..30c790d 100644 --- a/docs/groovy-script/minecraft/events/player_brewed_potion_event.md +++ b/docs/groovy-script/minecraft/events/player_brewed_potion_event.md @@ -1,15 +1,15 @@ -# PlayerBrewedPotionEvent +# Player Brewed Potion Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.brewing.PlayerBrewedPotionEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getStack() ``` diff --git a/docs/groovy-script/minecraft/events/player_container_event/close.md b/docs/groovy-script/minecraft/events/player_container_event/close.md index e45adc9..c463b28 100644 --- a/docs/groovy-script/minecraft/events/player_container_event/close.md +++ b/docs/groovy-script/minecraft/events/player_container_event/close.md @@ -1,12 +1,12 @@ -# PlayerContainerEvent.Close +# Close To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerContainerEvent.Close ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerContainerEvent](player_container_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerContainerEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/player_container_event/player_container_event.md b/docs/groovy-script/minecraft/events/player_container_event/index.md similarity index 58% rename from docs/groovy-script/minecraft/events/player_container_event/player_container_event.md rename to docs/groovy-script/minecraft/events/player_container_event/index.md index f8f4743..18c1a1d 100644 --- a/docs/groovy-script/minecraft/events/player_container_event/player_container_event.md +++ b/docs/groovy-script/minecraft/events/player_container_event/index.md @@ -1,15 +1,15 @@ -# PlayerContainerEvent +# Player Container Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerContainerEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.inventory.Container getContainer() ``` diff --git a/docs/groovy-script/minecraft/events/player_container_event/open.md b/docs/groovy-script/minecraft/events/player_container_event/open.md index 18409f8..1a8f968 100644 --- a/docs/groovy-script/minecraft/events/player_container_event/open.md +++ b/docs/groovy-script/minecraft/events/player_container_event/open.md @@ -1,12 +1,12 @@ -# PlayerContainerEvent.Open +# Open To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerContainerEvent.Open ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerContainerEvent](player_container_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerContainerEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/player_destroy_item_event.md b/docs/groovy-script/minecraft/events/player_destroy_item_event.md index b4560f8..5cd1de1 100644 --- a/docs/groovy-script/minecraft/events/player_destroy_item_event.md +++ b/docs/groovy-script/minecraft/events/player_destroy_item_event.md @@ -1,19 +1,19 @@ -# PlayerDestroyItemEvent +# Player Destroy Item Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerDestroyItemEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getOriginal() ``` diff --git a/docs/groovy-script/minecraft/events/player_drops_event.md b/docs/groovy-script/minecraft/events/player_drops_event.md index 411b388..45bba00 100644 --- a/docs/groovy-script/minecraft/events/player_drops_event.md +++ b/docs/groovy-script/minecraft/events/player_drops_event.md @@ -1,15 +1,15 @@ -# PlayerDropsEvent +# Player Drops Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerDropsEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingDropsEvent](living_drops_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingDropsEvent](./living_drops_event.md), [LivingEvent](living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getEntityPlayer() ``` diff --git a/docs/groovy-script/minecraft/events/player_event/break_speed.md b/docs/groovy-script/minecraft/events/player_event/break_speed.md index 364f8a4..b9fee88 100644 --- a/docs/groovy-script/minecraft/events/player_event/break_speed.md +++ b/docs/groovy-script/minecraft/events/player_event/break_speed.md @@ -1,31 +1,31 @@ -# PlayerEvent.BreakSpeed +# Break Speed To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.BreakSpeed ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getState() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers float getNewSpeed() ``` -```groovy +```groovy:no-line-numbers void setNewSpeed(float arg0) ``` -```groovy +```groovy:no-line-numbers float getOriginalSpeed() ``` diff --git a/docs/groovy-script/minecraft/events/player_event/clone.md b/docs/groovy-script/minecraft/events/player_event/clone.md index a94cd95..9c2e225 100644 --- a/docs/groovy-script/minecraft/events/player_event/clone.md +++ b/docs/groovy-script/minecraft/events/player_event/clone.md @@ -1,19 +1,19 @@ -# PlayerEvent.Clone +# Clone To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.Clone ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getOriginal() ``` -```groovy +```groovy:no-line-numbers boolean isWasDeath() ``` diff --git a/docs/groovy-script/minecraft/events/player_event/harvest_check.md b/docs/groovy-script/minecraft/events/player_event/harvest_check.md index 5da2f93..82a3b21 100644 --- a/docs/groovy-script/minecraft/events/player_event/harvest_check.md +++ b/docs/groovy-script/minecraft/events/player_event/harvest_check.md @@ -1,23 +1,23 @@ -# PlayerEvent.HarvestCheck +# Harvest Check To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.HarvestCheck ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean canHarvest() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getTargetBlock() ``` -```groovy +```groovy:no-line-numbers void setCanHarvest(boolean arg0) ``` diff --git a/docs/groovy-script/minecraft/events/player_event/player_event.md b/docs/groovy-script/minecraft/events/player_event/index.md similarity index 65% rename from docs/groovy-script/minecraft/events/player_event/player_event.md rename to docs/groovy-script/minecraft/events/player_event/index.md index 5422cbb..5243e82 100644 --- a/docs/groovy-script/minecraft/events/player_event/player_event.md +++ b/docs/groovy-script/minecraft/events/player_event/index.md @@ -1,15 +1,15 @@ -# PlayerEvent +# Player Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getEntityPlayer() ``` diff --git a/docs/groovy-script/minecraft/events/player_event/load_from_file.md b/docs/groovy-script/minecraft/events/player_event/load_from_file.md index b419486..5eca588 100644 --- a/docs/groovy-script/minecraft/events/player_event/load_from_file.md +++ b/docs/groovy-script/minecraft/events/player_event/load_from_file.md @@ -1,23 +1,23 @@ -# PlayerEvent.LoadFromFile +# Load From File To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.LoadFromFile ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers java.io.File getPlayerDirectory() ``` -```groovy +```groovy:no-line-numbers java.lang.String getPlayerUUID() ``` -```groovy +```groovy:no-line-numbers java.io.File getPlayerFile(java.lang.String arg0) ``` diff --git a/docs/groovy-script/minecraft/events/player_event/name_format.md b/docs/groovy-script/minecraft/events/player_event/name_format.md index e9ac1d7..2d4ad18 100644 --- a/docs/groovy-script/minecraft/events/player_event/name_format.md +++ b/docs/groovy-script/minecraft/events/player_event/name_format.md @@ -1,23 +1,23 @@ -# PlayerEvent.NameFormat +# Name Format To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.NameFormat ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers java.lang.String getUsername() ``` -```groovy +```groovy:no-line-numbers java.lang.String getDisplayname() ``` -```groovy +```groovy:no-line-numbers void setDisplayname(java.lang.String arg0) ``` diff --git a/docs/groovy-script/minecraft/events/player_event/save_to_file.md b/docs/groovy-script/minecraft/events/player_event/save_to_file.md index 1f7a553..2ea2f8d 100644 --- a/docs/groovy-script/minecraft/events/player_event/save_to_file.md +++ b/docs/groovy-script/minecraft/events/player_event/save_to_file.md @@ -1,23 +1,23 @@ -# PlayerEvent.SaveToFile +# Save To File To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.SaveToFile ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers java.io.File getPlayerDirectory() ``` -```groovy +```groovy:no-line-numbers java.lang.String getPlayerUUID() ``` -```groovy +```groovy:no-line-numbers java.io.File getPlayerFile(java.lang.String arg0) ``` diff --git a/docs/groovy-script/minecraft/events/player_event/start_tracking.md b/docs/groovy-script/minecraft/events/player_event/start_tracking.md index a0c34d0..826d4be 100644 --- a/docs/groovy-script/minecraft/events/player_event/start_tracking.md +++ b/docs/groovy-script/minecraft/events/player_event/start_tracking.md @@ -1,15 +1,15 @@ -# PlayerEvent.StartTracking +# Start Tracking To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.StartTracking ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` diff --git a/docs/groovy-script/minecraft/events/player_event/stop_tracking.md b/docs/groovy-script/minecraft/events/player_event/stop_tracking.md index 80c7a5e..bf34265 100644 --- a/docs/groovy-script/minecraft/events/player_event/stop_tracking.md +++ b/docs/groovy-script/minecraft/events/player_event/stop_tracking.md @@ -1,15 +1,15 @@ -# PlayerEvent.StopTracking +# Stop Tracking To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.StopTracking ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` diff --git a/docs/groovy-script/minecraft/events/player_event/visibility.md b/docs/groovy-script/minecraft/events/player_event/visibility.md index ee346c2..e5aca4d 100644 --- a/docs/groovy-script/minecraft/events/player_event/visibility.md +++ b/docs/groovy-script/minecraft/events/player_event/visibility.md @@ -1,19 +1,19 @@ -# PlayerEvent.Visibility +# Visibility To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.Visibility ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers double getVisibilityModifier() ``` -```groovy +```groovy:no-line-numbers void modifyVisibility(double arg0) ``` diff --git a/docs/groovy-script/minecraft/events/player_flyable_fall_event.md b/docs/groovy-script/minecraft/events/player_flyable_fall_event.md index 1b694e7..ec5863d 100644 --- a/docs/groovy-script/minecraft/events/player_flyable_fall_event.md +++ b/docs/groovy-script/minecraft/events/player_flyable_fall_event.md @@ -1,27 +1,27 @@ -# PlayerFlyableFallEvent +# Player Flyable Fall Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerFlyableFallEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers float getMultiplier() ``` -```groovy +```groovy:no-line-numbers void setMultiplier(float arg0) ``` -```groovy +```groovy:no-line-numbers void setDistance(float arg0) ``` -```groovy +```groovy:no-line-numbers float getDistance() ``` diff --git a/docs/groovy-script/minecraft/events/player_interact_event/entity_interact.md b/docs/groovy-script/minecraft/events/player_interact_event/entity_interact.md index 15caa17..7db2ff3 100644 --- a/docs/groovy-script/minecraft/events/player_interact_event/entity_interact.md +++ b/docs/groovy-script/minecraft/events/player_interact_event/entity_interact.md @@ -1,15 +1,15 @@ -# PlayerInteractEvent.EntityInteract +# Entity Interact To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.EntityInteract ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerInteractEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` diff --git a/docs/groovy-script/minecraft/events/player_interact_event/entity_interact_specific.md b/docs/groovy-script/minecraft/events/player_interact_event/entity_interact_specific.md index 44598e7..18a57b7 100644 --- a/docs/groovy-script/minecraft/events/player_interact_event/entity_interact_specific.md +++ b/docs/groovy-script/minecraft/events/player_interact_event/entity_interact_specific.md @@ -1,19 +1,19 @@ -# PlayerInteractEvent.EntityInteractSpecific +# Entity Interact Specific To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.EntityInteractSpecific ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerInteractEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.Vec3d getLocalPos() ``` diff --git a/docs/groovy-script/minecraft/events/player_interact_event/player_interact_event.md b/docs/groovy-script/minecraft/events/player_interact_event/index.md similarity index 63% rename from docs/groovy-script/minecraft/events/player_interact_event/player_interact_event.md rename to docs/groovy-script/minecraft/events/player_interact_event/index.md index c87b40e..504b00c 100644 --- a/docs/groovy-script/minecraft/events/player_interact_event/player_interact_event.md +++ b/docs/groovy-script/minecraft/events/player_interact_event/index.md @@ -1,43 +1,43 @@ -# PlayerInteractEvent +# Player Interact Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.relauncher.Side getSide() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumActionResult getCancellationResult() ``` -```groovy +```groovy:no-line-numbers void setCancellationResult(net.minecraft.util.EnumActionResult arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemStack() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumFacing getFace() ``` diff --git a/docs/groovy-script/minecraft/events/player_interact_event/left_click_block.md b/docs/groovy-script/minecraft/events/player_interact_event/left_click_block.md index e5a563c..d78b1fb 100644 --- a/docs/groovy-script/minecraft/events/player_interact_event/left_click_block.md +++ b/docs/groovy-script/minecraft/events/player_interact_event/left_click_block.md @@ -1,35 +1,35 @@ -# PlayerInteractEvent.LeftClickBlock +# Left Click Block To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.LeftClickBlock ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerInteractEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers void setCanceled(boolean arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.common.eventhandler.Event$Result getUseItem() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.Vec3d getHitVec() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.common.eventhandler.Event$Result getUseBlock() ``` -```groovy +```groovy:no-line-numbers void setUseBlock(net.minecraftforge.fml.common.eventhandler.Event$Result arg0) ``` -```groovy +```groovy:no-line-numbers void setUseItem(net.minecraftforge.fml.common.eventhandler.Event$Result arg0) ``` diff --git a/docs/groovy-script/minecraft/events/player_interact_event/left_click_empty.md b/docs/groovy-script/minecraft/events/player_interact_event/left_click_empty.md index d660cec..1bb21c6 100644 --- a/docs/groovy-script/minecraft/events/player_interact_event/left_click_empty.md +++ b/docs/groovy-script/minecraft/events/player_interact_event/left_click_empty.md @@ -1,12 +1,12 @@ -# PlayerInteractEvent.LeftClickEmpty +# Left Click Empty To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.LeftClickEmpty ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerInteractEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/player_interact_event/right_click_block.md b/docs/groovy-script/minecraft/events/player_interact_event/right_click_block.md index b81a65e..45edd44 100644 --- a/docs/groovy-script/minecraft/events/player_interact_event/right_click_block.md +++ b/docs/groovy-script/minecraft/events/player_interact_event/right_click_block.md @@ -1,35 +1,35 @@ -# PlayerInteractEvent.RightClickBlock +# Right Click Block To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerInteractEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers void setCanceled(boolean arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.common.eventhandler.Event$Result getUseItem() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.Vec3d getHitVec() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.common.eventhandler.Event$Result getUseBlock() ``` -```groovy +```groovy:no-line-numbers void setUseBlock(net.minecraftforge.fml.common.eventhandler.Event$Result arg0) ``` -```groovy +```groovy:no-line-numbers void setUseItem(net.minecraftforge.fml.common.eventhandler.Event$Result arg0) ``` diff --git a/docs/groovy-script/minecraft/events/player_interact_event/right_click_empty.md b/docs/groovy-script/minecraft/events/player_interact_event/right_click_empty.md index 5627c44..6536e74 100644 --- a/docs/groovy-script/minecraft/events/player_interact_event/right_click_empty.md +++ b/docs/groovy-script/minecraft/events/player_interact_event/right_click_empty.md @@ -1,12 +1,12 @@ -# PlayerInteractEvent.RightClickEmpty +# Right Click Empty To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickEmpty ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerInteractEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/player_interact_event/right_click_item.md b/docs/groovy-script/minecraft/events/player_interact_event/right_click_item.md index 12073a1..acf7042 100644 --- a/docs/groovy-script/minecraft/events/player_interact_event/right_click_item.md +++ b/docs/groovy-script/minecraft/events/player_interact_event/right_click_item.md @@ -1,12 +1,12 @@ -# PlayerInteractEvent.RightClickItem +# Right Click Item To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickItem ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PlayerInteractEvent](index.md), [PlayerEvent](../player_event/index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/player_pickup_xp_event.md b/docs/groovy-script/minecraft/events/player_pickup_xp_event.md index e16b946..444131b 100644 --- a/docs/groovy-script/minecraft/events/player_pickup_xp_event.md +++ b/docs/groovy-script/minecraft/events/player_pickup_xp_event.md @@ -1,15 +1,15 @@ -# PlayerPickupXpEvent +# Player Pickup Xp Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerPickupXpEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.item.EntityXPOrb getOrb() ``` diff --git a/docs/groovy-script/minecraft/events/player_set_spawn_event.md b/docs/groovy-script/minecraft/events/player_set_spawn_event.md index 3e64c72..a85c7f6 100644 --- a/docs/groovy-script/minecraft/events/player_set_spawn_event.md +++ b/docs/groovy-script/minecraft/events/player_set_spawn_event.md @@ -1,19 +1,19 @@ -# PlayerSetSpawnEvent +# Player Set Spawn Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerSetSpawnEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean isForced() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getNewSpawn() ``` diff --git a/docs/groovy-script/minecraft/events/player_sleep_in_bed_event.md b/docs/groovy-script/minecraft/events/player_sleep_in_bed_event.md index 315ff84..5e397c0 100644 --- a/docs/groovy-script/minecraft/events/player_sleep_in_bed_event.md +++ b/docs/groovy-script/minecraft/events/player_sleep_in_bed_event.md @@ -1,23 +1,23 @@ -# PlayerSleepInBedEvent +# Player Sleep In Bed Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerSleepInBedEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers void setResult(net.minecraft.entity.player.EntityPlayer$SleepResult arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer$SleepResult getResultStatus() ``` diff --git a/docs/groovy-script/minecraft/events/player_wake_up_event.md b/docs/groovy-script/minecraft/events/player_wake_up_event.md index f77ca0b..dde4136 100644 --- a/docs/groovy-script/minecraft/events/player_wake_up_event.md +++ b/docs/groovy-script/minecraft/events/player_wake_up_event.md @@ -1,23 +1,23 @@ -# PlayerWakeUpEvent +# Player Wake Up Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerWakeUpEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean wakeImmediately() ``` -```groovy +```groovy:no-line-numbers boolean shouldSetSpawn() ``` -```groovy +```groovy:no-line-numbers boolean updateWorld() ``` diff --git a/docs/groovy-script/minecraft/events/populate_chunk_event/populate_chunk_event.md b/docs/groovy-script/minecraft/events/populate_chunk_event/index.md similarity index 63% rename from docs/groovy-script/minecraft/events/populate_chunk_event/populate_chunk_event.md rename to docs/groovy-script/minecraft/events/populate_chunk_event/index.md index fab13fb..8bb1715 100644 --- a/docs/groovy-script/minecraft/events/populate_chunk_event/populate_chunk_event.md +++ b/docs/groovy-script/minecraft/events/populate_chunk_event/index.md @@ -1,56 +1,56 @@ -# PopulateChunkEvent +# Populate Chunk Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.PopulateChunkEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) +[ChunkGeneratorEvent](../chunk_generator_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean isHasVillageGenerated() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers int getChunkZ() ``` -```groovy +```groovy:no-line-numbers int getChunkX() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRand() ``` -# PopulateChunkEvent.Pre +# Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.PopulateChunkEvent.Pre ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PopulateChunkEvent](populate_chunk_event.md), [ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) +[PopulateChunkEvent](index.md), [ChunkGeneratorEvent](../chunk_generator_event/index.md) ## Methods -# PopulateChunkEvent.Post +# Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.PopulateChunkEvent.Post ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PopulateChunkEvent](populate_chunk_event.md), [ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) +[PopulateChunkEvent](index.md), [ChunkGeneratorEvent](../chunk_generator_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/populate_chunk_event/populate.md b/docs/groovy-script/minecraft/events/populate_chunk_event/populate.md index 9223015..89a3f04 100644 --- a/docs/groovy-script/minecraft/events/populate_chunk_event/populate.md +++ b/docs/groovy-script/minecraft/events/populate_chunk_event/populate.md @@ -1,19 +1,19 @@ -# PopulateChunkEvent.Populate +# Populate To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.PopulateChunkEvent.Populate ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PopulateChunkEvent](populate_chunk_event.md), [ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) +[PopulateChunkEvent](index.md), [ChunkGeneratorEvent](../chunk_generator_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.PopulateChunkEvent$Populate$EventType getType() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` diff --git a/docs/groovy-script/minecraft/events/potion_brew_event.md b/docs/groovy-script/minecraft/events/potion_brew_event.md index 8929ad0..1393cf1 100644 --- a/docs/groovy-script/minecraft/events/potion_brew_event.md +++ b/docs/groovy-script/minecraft/events/potion_brew_event.md @@ -1,44 +1,44 @@ -# PotionBrewEvent +# Potion Brew Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.brewing.PotionBrewEvent ``` ## Methods -```groovy +```groovy:no-line-numbers int getLength() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItem(int arg0) ``` -```groovy +```groovy:no-line-numbers void setItem(int arg0, net.minecraft.item.ItemStack arg1) ``` -# PotionBrewEvent.Pre +# Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.brewing.PotionBrewEvent.Pre ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PotionBrewEvent](potion_brew_event.md) +[PotionBrewEvent](index.md) ## Methods -# PotionBrewEvent.Post +# Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.brewing.PotionBrewEvent.Post ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PotionBrewEvent](potion_brew_event.md) +[PotionBrewEvent](index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/potion_color_calculation_event.md b/docs/groovy-script/minecraft/events/potion_color_calculation_event.md index 0888e0e..a66a9fd 100644 --- a/docs/groovy-script/minecraft/events/potion_color_calculation_event.md +++ b/docs/groovy-script/minecraft/events/potion_color_calculation_event.md @@ -1,31 +1,31 @@ -# PotionColorCalculationEvent +# Potion Color Calculation Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionColorCalculationEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers void setColor(int arg0) ``` -```groovy +```groovy:no-line-numbers void shouldHideParticles(boolean arg0) ``` -```groovy +```groovy:no-line-numbers boolean areParticlesHidden() ``` -```groovy +```groovy:no-line-numbers int getColor() ``` -```groovy +```groovy:no-line-numbers java.util.Collection getEffects() ``` diff --git a/docs/groovy-script/minecraft/events/potion_event/potion_event.md b/docs/groovy-script/minecraft/events/potion_event/index.md similarity index 65% rename from docs/groovy-script/minecraft/events/potion_event/potion_event.md rename to docs/groovy-script/minecraft/events/potion_event/index.md index 666e9f2..2bdf65d 100644 --- a/docs/groovy-script/minecraft/events/potion_event/potion_event.md +++ b/docs/groovy-script/minecraft/events/potion_event/index.md @@ -1,15 +1,15 @@ -# PotionEvent +# Potion Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getPotionEffect() ``` diff --git a/docs/groovy-script/minecraft/events/potion_event/potion_added_event.md b/docs/groovy-script/minecraft/events/potion_event/potion_added_event.md index d51e041..1c1f023 100644 --- a/docs/groovy-script/minecraft/events/potion_event/potion_added_event.md +++ b/docs/groovy-script/minecraft/events/potion_event/potion_added_event.md @@ -1,19 +1,19 @@ -# PotionEvent.PotionAddedEvent +# Potion Added Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent.PotionAddedEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PotionEvent](potion_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PotionEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getOldPotionEffect() ``` -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getPotionEffect() ``` diff --git a/docs/groovy-script/minecraft/events/potion_event/potion_applicable_event.md b/docs/groovy-script/minecraft/events/potion_event/potion_applicable_event.md index 194f18c..44d902e 100644 --- a/docs/groovy-script/minecraft/events/potion_event/potion_applicable_event.md +++ b/docs/groovy-script/minecraft/events/potion_event/potion_applicable_event.md @@ -1,19 +1,19 @@ -# PotionEvent.PotionApplicableEvent +# Potion Applicable Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent.PotionApplicableEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PotionEvent](potion_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PotionEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getPotionEffect() ``` diff --git a/docs/groovy-script/minecraft/events/potion_event/potion_expiry_event.md b/docs/groovy-script/minecraft/events/potion_event/potion_expiry_event.md index 3adfc38..cc5c95f 100644 --- a/docs/groovy-script/minecraft/events/potion_event/potion_expiry_event.md +++ b/docs/groovy-script/minecraft/events/potion_event/potion_expiry_event.md @@ -1,12 +1,12 @@ -# PotionEvent.PotionExpiryEvent +# Potion Expiry Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent.PotionExpiryEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PotionEvent](potion_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PotionEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/potion_event/potion_remove_event.md b/docs/groovy-script/minecraft/events/potion_event/potion_remove_event.md index b867401..d3d6771 100644 --- a/docs/groovy-script/minecraft/events/potion_event/potion_remove_event.md +++ b/docs/groovy-script/minecraft/events/potion_event/potion_remove_event.md @@ -1,19 +1,19 @@ -# PotionEvent.PotionRemoveEvent +# Potion Remove Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent.PotionRemoveEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PotionEvent](potion_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) +[PotionEvent](index.md), [LivingEvent](../living_event/index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.potion.Potion getPotion() ``` -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getPotionEffect() ``` diff --git a/docs/groovy-script/minecraft/events/projectile_impact_event/arrow.md b/docs/groovy-script/minecraft/events/projectile_impact_event/arrow.md index 815df72..af98a63 100644 --- a/docs/groovy-script/minecraft/events/projectile_impact_event/arrow.md +++ b/docs/groovy-script/minecraft/events/projectile_impact_event/arrow.md @@ -1,15 +1,15 @@ -# ProjectileImpactEvent.Arrow +# Arrow To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ProjectileImpactEvent.Arrow ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ProjectileImpactEvent](projectile_impact_event.md), [EntityEvent](../entity_event/entity_event.md) +[ProjectileImpactEvent](index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityArrow getArrow() ``` diff --git a/docs/groovy-script/minecraft/events/projectile_impact_event/fireball.md b/docs/groovy-script/minecraft/events/projectile_impact_event/fireball.md index 03e04f6..48271f0 100644 --- a/docs/groovy-script/minecraft/events/projectile_impact_event/fireball.md +++ b/docs/groovy-script/minecraft/events/projectile_impact_event/fireball.md @@ -1,15 +1,15 @@ -# ProjectileImpactEvent.Fireball +# Fireball To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ProjectileImpactEvent.Fireball ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ProjectileImpactEvent](projectile_impact_event.md), [EntityEvent](../entity_event/entity_event.md) +[ProjectileImpactEvent](index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityFireball getFireball() ``` diff --git a/docs/groovy-script/minecraft/events/projectile_impact_event/projectile_impact_event.md b/docs/groovy-script/minecraft/events/projectile_impact_event/index.md similarity index 70% rename from docs/groovy-script/minecraft/events/projectile_impact_event/projectile_impact_event.md rename to docs/groovy-script/minecraft/events/projectile_impact_event/index.md index 796cf73..bde6246 100644 --- a/docs/groovy-script/minecraft/events/projectile_impact_event/projectile_impact_event.md +++ b/docs/groovy-script/minecraft/events/projectile_impact_event/index.md @@ -1,15 +1,15 @@ -# ProjectileImpactEvent +# Projectile Impact Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ProjectileImpactEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](../entity_event/entity_event.md) +[EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.RayTraceResult getRayTraceResult() ``` diff --git a/docs/groovy-script/minecraft/events/projectile_impact_event/throwable.md b/docs/groovy-script/minecraft/events/projectile_impact_event/throwable.md index 23ad158..16e08c6 100644 --- a/docs/groovy-script/minecraft/events/projectile_impact_event/throwable.md +++ b/docs/groovy-script/minecraft/events/projectile_impact_event/throwable.md @@ -1,15 +1,15 @@ -# ProjectileImpactEvent.Throwable +# Throwable To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ProjectileImpactEvent.Throwable ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ProjectileImpactEvent](projectile_impact_event.md), [EntityEvent](../entity_event/entity_event.md) +[ProjectileImpactEvent](index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityThrowable getThrowable() ``` diff --git a/docs/groovy-script/minecraft/events/registry_event/registry_event.md b/docs/groovy-script/minecraft/events/registry_event/index.md similarity index 74% rename from docs/groovy-script/minecraft/events/registry_event/registry_event.md rename to docs/groovy-script/minecraft/events/registry_event/index.md index 5df790d..30721b2 100644 --- a/docs/groovy-script/minecraft/events/registry_event/registry_event.md +++ b/docs/groovy-script/minecraft/events/registry_event/index.md @@ -1,12 +1,12 @@ -# RegistryEvent +# Registry Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.RegistryEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[GenericEvent](../generic_event.md) +[GenericEvent](./../index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/registry_event/missing_mappings.md b/docs/groovy-script/minecraft/events/registry_event/missing_mappings.md index a94b019..57ade2e 100644 --- a/docs/groovy-script/minecraft/events/registry_event/missing_mappings.md +++ b/docs/groovy-script/minecraft/events/registry_event/missing_mappings.md @@ -1,31 +1,31 @@ -# RegistryEvent.MissingMappings +# Missing Mappings To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.RegistryEvent.MissingMappings ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[RegistryEvent](registry_event.md), [GenericEvent](../generic_event.md) +[RegistryEvent](./index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.ResourceLocation getName() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.registries.IForgeRegistry getRegistry() ``` -```groovy +```groovy:no-line-numbers void setModContainer(net.minecraftforge.fml.common.ModContainer arg0) ``` -```groovy +```groovy:no-line-numbers com.google.common.collect.ImmutableList getAllMappings() ``` -```groovy +```groovy:no-line-numbers com.google.common.collect.ImmutableList getMappings() ``` diff --git a/docs/groovy-script/minecraft/events/registry_event/new_registry.md b/docs/groovy-script/minecraft/events/registry_event/new_registry.md index 936a351..04d1716 100644 --- a/docs/groovy-script/minecraft/events/registry_event/new_registry.md +++ b/docs/groovy-script/minecraft/events/registry_event/new_registry.md @@ -1,7 +1,7 @@ -# RegistryEvent.NewRegistry +# New Registry To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.RegistryEvent.NewRegistry ``` diff --git a/docs/groovy-script/minecraft/events/registry_event/register.md b/docs/groovy-script/minecraft/events/registry_event/register.md index b63af01..1452f94 100644 --- a/docs/groovy-script/minecraft/events/registry_event/register.md +++ b/docs/groovy-script/minecraft/events/registry_event/register.md @@ -1,19 +1,19 @@ -# RegistryEvent.Register +# Register To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.RegistryEvent.Register ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[RegistryEvent](registry_event.md), [GenericEvent](../generic_event.md) +[RegistryEvent](./index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.ResourceLocation getName() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.registries.IForgeRegistry getRegistry() ``` diff --git a/docs/groovy-script/minecraft/events/sapling_grow_tree_event.md b/docs/groovy-script/minecraft/events/sapling_grow_tree_event.md index 3f26ee0..cf4ab66 100644 --- a/docs/groovy-script/minecraft/events/sapling_grow_tree_event.md +++ b/docs/groovy-script/minecraft/events/sapling_grow_tree_event.md @@ -1,23 +1,23 @@ -# SaplingGrowTreeEvent +# Sapling Grow Tree Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.SaplingGrowTreeEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](world_event/world_event.md) +[WorldEvent](./world_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRand() ``` diff --git a/docs/groovy-script/minecraft/events/server_chat_event.md b/docs/groovy-script/minecraft/events/server_chat_event.md index 43000ac..8607b7c 100644 --- a/docs/groovy-script/minecraft/events/server_chat_event.md +++ b/docs/groovy-script/minecraft/events/server_chat_event.md @@ -1,28 +1,27 @@ -# ServerChatEvent +# Server Chat Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.ServerChatEvent ``` ## Methods -```groovy +```groovy:no-line-numbers java.lang.String getMessage() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.text.ITextComponent getComponent() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayerMP getPlayer() ``` -```groovy +```groovy:no-line-numbers void setComponent(net.minecraft.util.text.ITextComponent arg0) ``` -```groovy +```groovy:no-line-numbers java.lang.String getUsername() ``` - diff --git a/docs/groovy-script/minecraft/events/sleeping_location_check_event.md b/docs/groovy-script/minecraft/events/sleeping_location_check_event.md index 009c195..089bdce 100644 --- a/docs/groovy-script/minecraft/events/sleeping_location_check_event.md +++ b/docs/groovy-script/minecraft/events/sleeping_location_check_event.md @@ -1,19 +1,19 @@ -# SleepingLocationCheckEvent +# Sleeping Location Check Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.SleepingLocationCheckEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getSleepingLocation() ``` diff --git a/docs/groovy-script/minecraft/events/sleeping_time_check_event.md b/docs/groovy-script/minecraft/events/sleeping_time_check_event.md index b7c05f8..7933947 100644 --- a/docs/groovy-script/minecraft/events/sleeping_time_check_event.md +++ b/docs/groovy-script/minecraft/events/sleeping_time_check_event.md @@ -1,19 +1,19 @@ -# SleepingTimeCheckEvent +# Sleeping Time Check Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.SleepingTimeCheckEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getSleepingLocation() ``` diff --git a/docs/groovy-script/minecraft/events/throwable_impact_event.md b/docs/groovy-script/minecraft/events/throwable_impact_event.md index b6bc5cc..45e6e0a 100644 --- a/docs/groovy-script/minecraft/events/throwable_impact_event.md +++ b/docs/groovy-script/minecraft/events/throwable_impact_event.md @@ -1,19 +1,19 @@ -# ThrowableImpactEvent +# Throwable Impact Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ThrowableImpactEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](entity_event/entity_event.md) +[EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityThrowable getEntityThrowable() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.RayTraceResult getRayTraceResult() ``` diff --git a/docs/groovy-script/minecraft/events/use_hoe_event.md b/docs/groovy-script/minecraft/events/use_hoe_event.md index 739b36c..7919e27 100644 --- a/docs/groovy-script/minecraft/events/use_hoe_event.md +++ b/docs/groovy-script/minecraft/events/use_hoe_event.md @@ -1,27 +1,27 @@ -# UseHoeEvent +# Use Hoe Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.UseHoeEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) +[PlayerEvent](./player_event/index.md), [LivingEvent](./living_event/index.md), [EntityEvent](./entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getCurrent() ``` diff --git a/docs/groovy-script/minecraft/events/village_siege_event.md b/docs/groovy-script/minecraft/events/village_siege_event.md index 14686e9..a5fd829 100644 --- a/docs/groovy-script/minecraft/events/village_siege_event.md +++ b/docs/groovy-script/minecraft/events/village_siege_event.md @@ -1,28 +1,27 @@ -# VillageSiegeEvent +# Village Siege Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.village.VillageSiegeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.village.Village getVillage() ``` -```groovy +```groovy:no-line-numbers net.minecraft.village.VillageSiege getSiege() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.Vec3d getAttemptedSpawnPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` - diff --git a/docs/groovy-script/minecraft/events/world_event/create_spawn_position.md b/docs/groovy-script/minecraft/events/world_event/create_spawn_position.md index 7c87941..6fcf4fe 100644 --- a/docs/groovy-script/minecraft/events/world_event/create_spawn_position.md +++ b/docs/groovy-script/minecraft/events/world_event/create_spawn_position.md @@ -1,15 +1,15 @@ -# WorldEvent.CreateSpawnPosition +# Create Spawn Position To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.CreateSpawnPosition ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](../world_event/world_event.md) +[WorldEvent](../world_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.WorldSettings getSettings() ``` diff --git a/docs/groovy-script/minecraft/events/world_event/world_event.md b/docs/groovy-script/minecraft/events/world_event/index.md similarity index 69% rename from docs/groovy-script/minecraft/events/world_event/world_event.md rename to docs/groovy-script/minecraft/events/world_event/index.md index 2693107..884b1a7 100644 --- a/docs/groovy-script/minecraft/events/world_event/world_event.md +++ b/docs/groovy-script/minecraft/events/world_event/index.md @@ -1,12 +1,11 @@ -# WorldEvent +# World Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` - diff --git a/docs/groovy-script/minecraft/events/world_event/load.md b/docs/groovy-script/minecraft/events/world_event/load.md index 9a1dfb7..b24b7c8 100644 --- a/docs/groovy-script/minecraft/events/world_event/load.md +++ b/docs/groovy-script/minecraft/events/world_event/load.md @@ -1,12 +1,12 @@ -# WorldEvent.Load +# Load To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.Load ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](../world_event/world_event.md) +[WorldEvent](../world_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/world_event/potential_spawns.md b/docs/groovy-script/minecraft/events/world_event/potential_spawns.md index a9624a1..f4ef178 100644 --- a/docs/groovy-script/minecraft/events/world_event/potential_spawns.md +++ b/docs/groovy-script/minecraft/events/world_event/potential_spawns.md @@ -1,23 +1,23 @@ -# WorldEvent.PotentialSpawns +# Potential Spawns To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.PotentialSpawns ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](../world_event/world_event.md) +[WorldEvent](../world_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.EnumCreatureType getType() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers java.util.List getList() ``` diff --git a/docs/groovy-script/minecraft/events/world_event/save.md b/docs/groovy-script/minecraft/events/world_event/save.md index 16d94e5..66ce239 100644 --- a/docs/groovy-script/minecraft/events/world_event/save.md +++ b/docs/groovy-script/minecraft/events/world_event/save.md @@ -1,12 +1,12 @@ -# WorldEvent.Save +# Save To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.Save ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](../world_event/world_event.md) +[WorldEvent](../world_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/world_event/unload.md b/docs/groovy-script/minecraft/events/world_event/unload.md index 0d0ee5d..874bfbb 100644 --- a/docs/groovy-script/minecraft/events/world_event/unload.md +++ b/docs/groovy-script/minecraft/events/world_event/unload.md @@ -1,12 +1,12 @@ -# WorldEvent.Unload +# Unload To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.Unload ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldEvent](../world_event/world_event.md) +[WorldEvent](../world_event/index.md) ## Methods diff --git a/docs/groovy-script/minecraft/events/world_type_event/biome_size.md b/docs/groovy-script/minecraft/events/world_type_event/biome_size.md index fb04c12..fa8b3cc 100644 --- a/docs/groovy-script/minecraft/events/world_type_event/biome_size.md +++ b/docs/groovy-script/minecraft/events/world_type_event/biome_size.md @@ -1,24 +1,23 @@ -# WorldTypeEvent.BiomeSize +# Biome Size To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.WorldTypeEvent.BiomeSize ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldTypeEvent](world_type_event.md) +[WorldTypeEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers int getOriginalSize() ``` -```groovy +```groovy:no-line-numbers void setNewSize(int arg0) ``` -```groovy +```groovy:no-line-numbers int getNewSize() ``` - diff --git a/docs/groovy-script/minecraft/events/world_type_event/world_type_event.md b/docs/groovy-script/minecraft/events/world_type_event/index.md similarity index 70% rename from docs/groovy-script/minecraft/events/world_type_event/world_type_event.md rename to docs/groovy-script/minecraft/events/world_type_event/index.md index 42d2c4c..a526369 100644 --- a/docs/groovy-script/minecraft/events/world_type_event/world_type_event.md +++ b/docs/groovy-script/minecraft/events/world_type_event/index.md @@ -1,12 +1,11 @@ -# WorldTypeEvent +# World Type Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.WorldTypeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.WorldType getWorldType() ``` - diff --git a/docs/groovy-script/minecraft/events/world_type_event/init_biome_gens.md b/docs/groovy-script/minecraft/events/world_type_event/init_biome_gens.md index e8a516a..d3f6a56 100644 --- a/docs/groovy-script/minecraft/events/world_type_event/init_biome_gens.md +++ b/docs/groovy-script/minecraft/events/world_type_event/init_biome_gens.md @@ -1,28 +1,27 @@ -# WorldTypeEvent.InitBiomeGens +# Init Biome Gens To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.WorldTypeEvent.InitBiomeGens ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[WorldTypeEvent](world_type_event.md) +[WorldTypeEvent](index.md) ## Methods -```groovy +```groovy:no-line-numbers long getSeed() ``` -```groovy +```groovy:no-line-numbers void setNewBiomeGens([Lnet.minecraft.world.gen.layer.GenLayer; arg0) ``` -```groovy +```groovy:no-line-numbers [Lnet.minecraft.world.gen.layer.GenLayer; getNewBiomeGens() ``` -```groovy +```groovy:no-line-numbers [Lnet.minecraft.world.gen.layer.GenLayer; getOriginalBiomeGens() ``` - diff --git a/docs/groovy-script/minecraft/events/zombie_event/zombie_event.md b/docs/groovy-script/minecraft/events/zombie_event/index.md similarity index 72% rename from docs/groovy-script/minecraft/events/zombie_event/zombie_event.md rename to docs/groovy-script/minecraft/events/zombie_event/index.md index 4a413d7..7a0885d 100644 --- a/docs/groovy-script/minecraft/events/zombie_event/zombie_event.md +++ b/docs/groovy-script/minecraft/events/zombie_event/index.md @@ -1,15 +1,15 @@ -# ZombieEvent +# Zombie Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.ZombieEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[EntityEvent](../entity_event/entity_event.md) +[EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.monster.EntityZombie getSummoner() ``` diff --git a/docs/groovy-script/minecraft/events/zombie_event/summon_aid_event.md b/docs/groovy-script/minecraft/events/zombie_event/summon_aid_event.md index a324e29..b0bdb34 100644 --- a/docs/groovy-script/minecraft/events/zombie_event/summon_aid_event.md +++ b/docs/groovy-script/minecraft/events/zombie_event/summon_aid_event.md @@ -1,47 +1,47 @@ -# ZombieEvent.SummonAidEvent +# Summon Aid Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.ZombieEvent.SummonAidEvent ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[ZombieEvent](zombie_event.md), [EntityEvent](../entity_event/entity_event.md) +[ZombieEvent](index.md), [EntityEvent](../entity_event/index.md) ## Methods -```groovy +```groovy:no-line-numbers int getY() ``` -```groovy +```groovy:no-line-numbers int getX() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers void setCustomSummonedAid(net.minecraft.entity.monster.EntityZombie arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.monster.EntityZombie getCustomSummonedAid() ``` -```groovy +```groovy:no-line-numbers int getZ() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers double getSummonChance() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLivingBase getAttacker() ``` diff --git a/docs/groovy-script/minecraft/furnace.md b/docs/groovy-script/minecraft/furnace.md deleted file mode 100644 index a3a1e35..0000000 --- a/docs/groovy-script/minecraft/furnace.md +++ /dev/null @@ -1,34 +0,0 @@ -# Minecraft Furnace - -## Adding Recipes - -Unlike other recipe types, furnace smelting does not use a recipe builder. - -```groovy -furnace.add(IIngredient input, ItemStack output) // applies a default exp of 0.1 -furnace.add(IIngredient input, ItemStack output, float exp) -``` - -::: info Example {id="example"} - -```groovy:no-line-numbers -// smelt 1 dirt to produce one cobblestone and 0.5 exp -furnace.add(item('minecraft:dirt'), item('minecraft:cobblestone'), 0.5f) -``` - -::: - -## Removing Recipes - -```groovy:no-line-numbers -furnace.removeByInput(ItemStack input) -``` - -::: info Example {id="example"} - -```groovy:no-line-numbers -// removes all recipes that input iron ore -furnace.removeByInput(item('minecraft:iron_ore')) -``` - -::: diff --git a/docs/groovy-script/minecraft/helpers/crafting.md b/docs/groovy-script/minecraft/helpers/crafting.md new file mode 100644 index 0000000..9ab0dd2 --- /dev/null +++ b/docs/groovy-script/minecraft/helpers/crafting.md @@ -0,0 +1,439 @@ +--- +title: "Crafting Table" +titleTemplate: "Minecraft | CleanroomMC" +description: "A normal crafting recipe that takes place in the Vanilla Crafting Table, converting up to 9 items in a shapeless or specific shaped arrangement into an output itemstack." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/master/src/main/java/com/cleanroommc/groovyscript/compat/vanilla/Crafting.java" +--- + +# Crafting Table (Minecraft) + +## Description + +A normal crafting recipe that takes place in the Vanilla Crafting Table, converting up to 9 items in a shapeless or specific shaped arrangement into an output itemstack. + +:::::::::: details Tip {open id="tip"} +While shorthand methods to create recipes have been supplied, it is far easier to use the recipe builder. +:::::::::: + +:::::::::: details Tip {open id="tip"} +You can view recipe names in JEI/HEI by hovering over the output with `F3+h` mode enabled. +:::::::::: + +:::::::::: details Note {open id="note"} +Fallback keys are global and apply to all classes using the matrix feature of `AbstractCraftingRecipeBuilder`. +:::::::::: + +## Identifier + +Refer to this via any of the following: + +```groovy:no-line-numbers {1} +crafting/* Used as page default */ // [!code focus] +Crafting +``` + + +## Editing Values + +- Set the fallback character for matrices. This fallback is used when the recipe is created via matrix and the given key is not included as a key in the specific recipe builder: + + ```groovy:no-line-numbers + crafting.setFallback(char, IIngredient) + ``` + +- Set the fallback character for matrices. This fallback is used when the recipe is created via matrix and the given key is not included as a key in the specific recipe builder: + + ```groovy:no-line-numbers + crafting.setFallback(String, IIngredient) + ``` + + +## Adding Recipes + +- Adds a shaped recipe in the format `output`, `input`: + + ```groovy:no-line-numbers + crafting.addShaped(ItemStack, List>) + ``` + +- Adds a shaped recipe in the format `name`, `output`, `input`: + + ```groovy:no-line-numbers + crafting.addShaped(ResourceLocation, ItemStack, List>) + ``` + +- Adds a shaped recipe in the format `name`, `output`, `input`: + + ```groovy:no-line-numbers + crafting.addShaped(String, ItemStack, List>) + ``` + +- Adds a shapeless in the format `output`, `input`: + + ```groovy:no-line-numbers + crafting.addShapeless(ItemStack, List) + ``` + +- Adds a shapeless in the format `name`, `output`, `input`: + + ```groovy:no-line-numbers + crafting.addShapeless(ResourceLocation, ItemStack, List) + ``` + +- Adds a shapeless in the format `name`, `output`, `input`: + + ```groovy:no-line-numbers + crafting.addShapeless(String, ItemStack, List) + ``` + +- Adds a shaped in the format `output`, `input` and removes the recipe matching the given output: + + ```groovy:no-line-numbers + crafting.replaceShaped(ItemStack, List>) + ``` + +- Adds a shaped in the format `name`, `output`, `input` and removes the recipe matching the given name: + + ```groovy:no-line-numbers + crafting.replaceShaped(ResourceLocation, ItemStack, List>) + ``` + +- Adds a shaped in the format `name`, `output`, `input` and removes the recipe matching the given name: + + ```groovy:no-line-numbers + crafting.replaceShaped(String, ItemStack, List>) + ``` + +- Adds a shapeless in the format `output`, `input` and removes the recipe matching the given output: + + ```groovy:no-line-numbers + crafting.replaceShapeless(ItemStack, List) + ``` + +- Adds a shapeless in the format `name`, `output`, `input` and removes the recipe matching the given name: + + ```groovy:no-line-numbers + crafting.replaceShapeless(ResourceLocation, ItemStack, List) + ``` + +- Adds a shapeless in the format `name`, `output`, `input` and removes the recipe matching the given name: + + ```groovy:no-line-numbers + crafting.replaceShapeless(String, ItemStack, List) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +crafting.addShaped(item('minecraft:gold_block'), [[item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')],[null, null, null],[item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')]]) +crafting.addShaped(resource('example:resource_location'), item('minecraft:clay'), [[item('minecraft:cobblestone')],[item('minecraft:nether_star')],[item('minecraft:cobblestone')]]) +crafting.addShaped('gold_v_to_clay', item('minecraft:clay'), [[item('minecraft:gold_ingot'),null,item('minecraft:gold_ingot')],[null,item('minecraft:gold_ingot'),null]]) +crafting.addShapeless(item('minecraft:clay'), [item('minecraft:cobblestone'),item('minecraft:nether_star'),item('minecraft:gold_ingot')]) +crafting.addShapeless(resource('example:resource_location2'), item('minecraft:clay'), [item('minecraft:cobblestone'), item('minecraft:gold_ingot')]) +crafting.addShapeless('precious_to_clay', item('minecraft:clay'), [item('minecraft:diamond'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')]) +crafting.replaceShaped(item('minecraft:chest'), [[ore('logWood'),ore('logWood'),ore('logWood')],[ore('logWood'),null,ore('logWood')],[ore('logWood'),ore('logWood'),ore('logWood')]]) +crafting.replaceShaped(resource('minecraft:sea_lantern'), item('minecraft:clay'), [[item('minecraft:glowstone')],[item('minecraft:glowstone')],[item('minecraft:glowstone')]]) +crafting.replaceShaped('gold_to_diamonds', item('minecraft:diamond') * 8, [[item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')],[item('minecraft:gold_ingot'),null,item('minecraft:gold_ingot')],[item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')]]) +crafting.replaceShapeless(item('minecraft:ender_eye'), [item('minecraft:ender_pearl'),item('minecraft:nether_star')]) +crafting.replaceShapeless(resource('minecraft:pink_dye_from_peony'), item('minecraft:clay'), [item('minecraft:cobblestone'), item('minecraft:gold_ingot')]) +crafting.replaceShapeless('minecraft:pink_dye_from_pink_tulp', item('minecraft:clay'), [item('minecraft:nether_star')]) +``` + +:::::::::: + +### Recipe Builder + +Just like other recipe types, the Crafting Table also uses a recipe builder. + +Don't know what a builder is? Check [the builder info page](../../getting_started/builder.md) out. + +:::::::::: details crafting.shapedBuilder() {open id="abstract"} +- `ResourceLocation`. Sets the Resource Location of the recipe. + + ```groovy:no-line-numbers + name(String) + name(ResourceLocation) + ``` + +- `String[]`. Sets the items required in each slot of the grid as char. Requires either the key-based matrix or the ingredient-based matrix can be defined, not both. + + ```groovy:no-line-numbers + row(String) + shape(String...) + matrix(String...) + ``` + +- `List>`. Sets the items required in each slot in the grid as IIngredients. Requires greater than or equal to 1, less than or equal to 9, and either the key-based matrix or the ingredient-based matrix can be defined, not both. + + ```groovy:no-line-numbers + shape(List>) + matrix(List>) + ``` + +- `Char2ObjectOpenHashMap`. Sets the item the given char corresponds to. (Default `' ' = IIngredient.EMPTY`). + + ```groovy:no-line-numbers + key(char, IIngredient) + key(String, IIngredient) + key(Map) + ``` + +- `ItemStack`. Sets the item output. Requires not null. + + ```groovy:no-line-numbers + output(ItemStack) + ``` + +- `byte`. Sets if the recipe is removed. The `replace` method removes by the output itemstack, and the `replaceByName` method removes by the Resource Location. (Default `0`). + + ```groovy:no-line-numbers + replace() + replaceByName() + ``` + +- `boolean`. Sets if the recipe is horizontally mirrored. (Default `false`). + + ```groovy:no-line-numbers + mirrored() + mirrored(boolean) + ``` + +- `Closure`. Sets an operation that modifies the input items or output item. + + ```groovy:no-line-numbers + recipeFunction(Closure) + ``` + +- `Closure`. Sets an operation that happens when the recipe is crafted. + + ```groovy:no-line-numbers + recipeAction(Closure) + ``` + +- First validates the builder, returning `null` and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returns `null` or `net.minecraft.item.crafting.IRecipe`). + + ```groovy:no-line-numbers + register() + ``` + +::::::::: details Example {open id="example"} +```groovy:no-line-numbers +crafting.shapedBuilder() + .output(item('minecraft:nether_star')) + .row('TXT') + .row('X X') + .row('!X!') + .key('T', item('minecraft:tnt')) + .key('X', item('minecraft:clay').reuse()) + .key('!', item('minecraft:tnt').transform({ _ -> item('minecraft:diamond') })) + .register() + +crafting.shapedBuilder() + .output(item('minecraft:clay_ball') * 3) + .shape('S S', + ' G ', + 'SWS') + .key([S: ore('netherStar').reuse(), G: ore('ingotGold'), W: fluid('water') * 1000]) + .register() + +crafting.shapedBuilder() + .name('nether_star_duplication_with_tnt') + .output(item('minecraft:nether_star')) + .row('!!!') + .row('!S!') + .row('!!!') + .key([S: ore('netherStar').reuse(), '!': item('minecraft:tnt').transform(item('minecraft:diamond'))]) + .register() + +crafting.shapedBuilder() + .output(item('minecraft:clay')) + .row(' B') + .key('B', item('minecraft:glass_bottle')) + .register() + +crafting.shapedBuilder() + .output(item('minecraft:clay')) + .row(' ') + .row(' 0 ') + .row(' ') + .key('0', item('minecraft:diamond_sword').withNbt([display:[Name:'Sword with Specific NBT data']])) + .register() + +crafting.shapedBuilder() + .output(item('minecraft:gold_block')) + .shape([[item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')], + [null, null, null], + [item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')]]) + .register() + +crafting.shapedBuilder() + .name('gold_v_to_clay') + .output(item('minecraft:clay')) + .shape([[item('minecraft:gold_ingot'),null,item('minecraft:gold_ingot')], + [null,item('minecraft:stone_pickaxe').transformDamage(2).whenAnyDamage(),null]]) + .register() + +crafting.shapedBuilder() + .name(resource('example:resource_location')) + .output(item('minecraft:clay')) + .shape([[item('minecraft:cobblestone')], + [item('minecraft:nether_star')], + [item('minecraft:cobblestone')]]) + .register() + +crafting.shapedBuilder() + .output(item('minecraft:chest')) + .shape([[ore('logWood'),ore('logWood'),ore('logWood')], + [ore('logWood'),null,ore('logWood')], + [ore('logWood'),ore('logWood'),ore('logWood')]]) + .replace() + .register() + +crafting.shapedBuilder() + .name('gold_to_diamonds') + .output(item('minecraft:diamond') * 8) + .shape([[item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')], + [item('minecraft:gold_ingot'),null,item('minecraft:gold_ingot')], + [item('minecraft:gold_ingot'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')]]) + .replaceByName() + .register() + +crafting.shapedBuilder() + .name(resource('minecraft:sea_lantern')) + .output(item('minecraft:clay')) + .shape([[item('minecraft:glowstone')], + [item('minecraft:glowstone')], + [item('minecraft:glowstone')]]) + .replaceByName() + .register() +``` + +::::::::: + +:::::::::: + +:::::::::: details crafting.shapelessBuilder() {open id="abstract"} +- `ResourceLocation`. Sets the Resource Location of the recipe. + + ```groovy:no-line-numbers + name(String) + name(ResourceLocation) + ``` + +- `List`. Sets the items required for the recipe. Requires greater than or equal to 1 and less than or equal to 9. + + ```groovy:no-line-numbers + input(IIngredient) + input(IIngredient...) + input(Collection) + ``` + +- `ItemStack`. Sets the item output. Requires not null. + + ```groovy:no-line-numbers + output(ItemStack) + ``` + +- `byte`. Sets if the recipe is removed. The `replace` method removes by the output itemstack, and the `replaceByName` method removes by the Resource Location. (Default `0`). + + ```groovy:no-line-numbers + replace() + replaceByName() + ``` + +- `Closure`. Sets an operation that modifies the input items or output item. + + ```groovy:no-line-numbers + recipeFunction(Closure) + ``` + +- `Closure`. Sets an operation that happens when the recipe is crafted. + + ```groovy:no-line-numbers + recipeAction(Closure) + ``` + +- First validates the builder, returning `null` and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returns `null` or `net.minecraft.item.crafting.IRecipe`). + + ```groovy:no-line-numbers + register() + ``` + +::::::::: details Example {open id="example"} +```groovy:no-line-numbers +crafting.shapelessBuilder() + .output(item('minecraft:clay')) + .input([item('minecraft:cobblestone'),item('minecraft:nether_star'),item('minecraft:gold_ingot')]) + .register() + +crafting.shapelessBuilder() + .name('precious_to_clay') + .output(item('minecraft:clay')) + .input([item('minecraft:diamond'),item('minecraft:gold_ingot'),item('minecraft:gold_ingot')]) + .register() + +crafting.shapelessBuilder() + .name(resource('example:resource_location2')) + .output(item('minecraft:clay')) + .input([item('minecraft:cobblestone'), item('minecraft:gold_ingot')]) + .register() + +crafting.shapelessBuilder() + .output(item('minecraft:ender_eye')) + .input([item('minecraft:ender_pearl'),item('minecraft:nether_star')]) + .replace() + .register() + +crafting.shapelessBuilder() + .name('minecraft:pink_dye_from_pink_tulp') + .output(item('minecraft:clay')) + .input([item('minecraft:nether_star')]) + .replaceByName() + .register() + +crafting.shapelessBuilder() + .name(resource('minecraft:pink_dye_from_peony')) + .output(item('minecraft:clay')) + .input([item('minecraft:cobblestone'), item('minecraft:gold_ingot')]) + .replaceByName() + .register() +``` + +::::::::: + +:::::::::: + +## Removing Recipes + +- Removes all recipes that match the given input: + + ```groovy:no-line-numbers + crafting.removeByInput(IIngredient) + ``` + +- Removes all recipes that match the given output: + + ```groovy:no-line-numbers + crafting.removeByOutput(IIngredient) + ``` + +- Removes all registered recipes: + + ```groovy:no-line-numbers + crafting.removeAll() + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +crafting.removeByOutput(item('minecraft:gold_ingot')) +crafting.removeAll() +``` + +:::::::::: + +## Getting the value of recipes + +- Iterates through every entry in the registry, with the ability to call remove on any element to remove it: + + ```groovy:no-line-numbers + crafting.streamRecipes() + ``` diff --git a/docs/groovy-script/minecraft/helpers/furnace.md b/docs/groovy-script/minecraft/helpers/furnace.md new file mode 100644 index 0000000..0e67c06 --- /dev/null +++ b/docs/groovy-script/minecraft/helpers/furnace.md @@ -0,0 +1,113 @@ +--- +title: "Furnace" +titleTemplate: "Minecraft | CleanroomMC" +description: "Converts an input item into an output itemstack after a set amount of time, with the ability to give experience and using fuel to run." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/master/src/main/java/com/cleanroommc/groovyscript/compat/vanilla/Furnace.java" +--- + +# Furnace (Minecraft) + +## Description + +Converts an input item into an output itemstack after a set amount of time, with the ability to give experience and using fuel to run. + +## Identifier + +Refer to this via any of the following: + +```groovy:no-line-numbers {1} +furnace/* Used as page default */ // [!code focus] +Furnace +``` + + +## Adding Recipes + +- Adds a recipe in the format `input`, `output`: + + ```groovy:no-line-numbers + furnace.add(IIngredient, ItemStack) + ``` + +- Adds a recipe in the format `input`, `output`, `experience`: + + ```groovy:no-line-numbers + furnace.add(IIngredient, ItemStack, float) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +furnace.add(ore('ingotIron'), item('minecraft:diamond')) +furnace.add(item('minecraft:nether_star'), item('minecraft:clay') * 64, 13) +``` + +:::::::::: + +### Recipe Builder + +Just like other recipe types, the Furnace also uses a recipe builder. + +Don't know what a builder is? Check [the builder info page](../../getting_started/builder.md) out. + +:::::::::: details furnace.recipeBuilder() {open id="abstract"} +- `float`. Sets the experience rewarded for smelting the given input. Requires greater than or equal to 0. (Default `0.0f`). + + ```groovy:no-line-numbers + exp(float) + ``` + +- First validates the builder, returning `null` and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returns `null` or `com.cleanroommc.groovyscript.compat.vanilla.Furnace$Recipe`). + + ```groovy:no-line-numbers + register() + ``` + +::::::::: details Example {open id="example"} +```groovy:no-line-numbers +furnace.recipeBuilder() + .input(ore('ingotGold')) + .output(item('minecraft:nether_star')) + .exp(0.5) + .register() +``` + +::::::::: + +:::::::::: + +## Removing Recipes + +- Removes all recipes that match the given input: + + ```groovy:no-line-numbers + furnace.removeByInput(ItemStack) + ``` + +- Removes all recipes that match the given output: + + ```groovy:no-line-numbers + furnace.removeByOutput(IIngredient) + ``` + +- Removes all registered recipes: + + ```groovy:no-line-numbers + furnace.removeAll() + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +furnace.removeByInput(item('minecraft:clay')) +furnace.removeByOutput(item('minecraft:brick')) +furnace.removeAll() +``` + +:::::::::: + +## Getting the value of recipes + +- Iterates through every entry in the registry, with the ability to call remove on any element to remove it: + + ```groovy:no-line-numbers + furnace.streamRecipes() + ``` diff --git a/docs/groovy-script/minecraft/helpers/index.md b/docs/groovy-script/minecraft/helpers/index.md new file mode 100644 index 0000000..601df7d --- /dev/null +++ b/docs/groovy-script/minecraft/helpers/index.md @@ -0,0 +1,21 @@ +--- +aside: false +order: 700 +--- + + +# Helpers + +## Categories + +Has 5 subcategories. + +* [Crafting Table](./crafting.md) + +* [Furnace](./furnace.md) + +* [Ore Dictionary](./ore_dict.md) + +* [Starting Inventory](./player.md) + +* [Rarity](./rarity.md) diff --git a/docs/groovy-script/minecraft/helpers/ore_dict.md b/docs/groovy-script/minecraft/helpers/ore_dict.md new file mode 100644 index 0000000..48f4513 --- /dev/null +++ b/docs/groovy-script/minecraft/helpers/ore_dict.md @@ -0,0 +1,106 @@ +--- +title: "Ore Dictionary" +titleTemplate: "Minecraft | CleanroomMC" +description: "Manipulate the Ore Dictionary and what itemstacks are part of what oredicts." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/master/src/main/java/com/cleanroommc/groovyscript/compat/vanilla/OreDict.java" +--- + +# Ore Dictionary (Minecraft) + +## Description + +Manipulate the Ore Dictionary and what itemstacks are part of what oredicts. + +## Identifier + +Refer to this via any of the following: + +```groovy:no-line-numbers {1} +ore_dict/* Used as page default */ // [!code focus] +oredict +oreDict +OreDict +ore_dictionary +oredictionary +oreDictionary +OreDictionary +``` + + +## Adding Recipes + +- Adds the given oredict to the given oredict: + + ```groovy:no-line-numbers + ore_dict.add(String, Block) + ``` + +- Adds the given oredict to the given oredict: + + ```groovy:no-line-numbers + ore_dict.add(String, Item) + ``` + +- Adds the given oredict to the given oredict: + + ```groovy:no-line-numbers + ore_dict.add(String, ItemStack) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +ore_dict.add('ingotGold', item('minecraft:nether_star')) +ore_dict.add('netherStar', item('minecraft:gold_ingot')) +``` + +:::::::::: + +## Removing Recipes + +- Removes the given itemstack from the given oredict: + + ```groovy:no-line-numbers + ore_dict.remove(String, ItemStack) + ``` + +- Removes all itemstacks from the given oredict: + + ```groovy:no-line-numbers + ore_dict.clear(String) + ``` + +- Removes all registered recipes: + + ```groovy:no-line-numbers + ore_dict.removeAll(String) + ``` + +- Removes all registered recipes: + + ```groovy:no-line-numbers + ore_dict.removeAll() + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +ore_dict.remove('netherStar', item('minecraft:nether_star')) +ore_dict.clear('plankWood') +ore_dict.removeAll('ingotIron') +ore_dict.removeAll() +``` + +:::::::::: + +## Getting the value of recipes + +- Returns true if the given oredict exists, although this does not check if the oredict contains entries: + + ```groovy:no-line-numbers + ore_dict.exists(String) + ``` + +- Returns a list of all itemstacks in the given oredict: + + ```groovy:no-line-numbers + ore_dict.getItems(String) + ``` diff --git a/docs/groovy-script/minecraft/helpers/player.md b/docs/groovy-script/minecraft/helpers/player.md new file mode 100644 index 0000000..f0e024d --- /dev/null +++ b/docs/groovy-script/minecraft/helpers/player.md @@ -0,0 +1,87 @@ +--- +title: "Starting Inventory" +titleTemplate: "Minecraft | CleanroomMC" +description: "Sets the starting inventory of the player, including armor slots and offhand." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/master/src/main/java/com/cleanroommc/groovyscript/compat/vanilla/Player.java" +--- + +# Starting Inventory (Minecraft) + +## Description + +Sets the starting inventory of the player, including armor slots and offhand. + +:::::::::: details Warning {open id="warning"} +No more than a total of 41 items can be inserted into the inventory. +:::::::::: + +## Identifier + +Refer to this via any of the following: + +```groovy:no-line-numbers {1} +player/* Used as page default */ // [!code focus] +Player +``` + + +## Editing Values + +- Sets if items given when joining the world regardless of if the flag has already been set: + + ```groovy:no-line-numbers + player.testingStartingItems + ``` + +- Sets if the player inventory is cleared prior to giving the player these items: + + ```groovy:no-line-numbers + player.replaceDefaultInventory + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +player.testingStartingItems = true +player.replaceDefaultInventory = true +``` + +:::::::::: + + +## Adding Entries + +- Adds the given itemstack to the inventory list: + + ```groovy:no-line-numbers + player.addStartingItem(ItemStack) + ``` + +- Adds the given itemstack to a specific slot in the inventory list in the format `itemstack`, `slot`: + + ```groovy:no-line-numbers + player.addStartingItem(ItemStack, int) + ``` + +- Removes all previously added inputs and sets the starting inventory in the format `isSlotSpecific`, `items`: + + ```groovy:no-line-numbers + player.setStartingItems(boolean, ItemStack...) + ``` + +- Removes all previously added inputs and sets the starting inventory in the format `isSlotSpecific`, `items`: + + ```groovy:no-line-numbers + player.setStartingItems(boolean, List) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +player.addStartingItem(item('minecraft:clay_ball')) +player.addStartingItem(item('minecraft:gold_ingot')) +player.addStartingItem(item('minecraft:diamond')) +player.addStartingItem(item('minecraft:nether_star')) +player.addStartingItem(item('minecraft:water_bucket')) +player.setStartingItems(true, item('minecraft:clay').withNbt([display:[Name:'Hotbar']]), null, null, null, null, null, null, null, null, item('minecraft:clay').withNbt([display:[Name:'Top row of inventory']]), null, null, null, null, null, null, null, null, item('minecraft:clay').withNbt([display:[Name:'Middle row of inventory']]), null, null, null, null, null, null, null, null, item('minecraft:clay').withNbt([display:[Name:'Bottom row of inventory']]), null, null, null, null, null, null, null, null, item('minecraft:diamond_boots'), item('minecraft:diamond_leggings'), item('minecraft:diamond_chestplate'), item('minecraft:diamond_helmet'), item('minecraft:clay').withNbt([display:[Name:'Offhand']])) +``` + +:::::::::: diff --git a/docs/groovy-script/minecraft/helpers/rarity.md b/docs/groovy-script/minecraft/helpers/rarity.md new file mode 100644 index 0000000..b83a22d --- /dev/null +++ b/docs/groovy-script/minecraft/helpers/rarity.md @@ -0,0 +1,72 @@ +--- +title: "Rarity" +titleTemplate: "Minecraft | CleanroomMC" +description: "Control the rarity of the item, which typically is the name color, to any standard Rarity or any TextFormatting code." +source_code_link: "https://github.com/CleanroomMC/GroovyScript/blob/master/src/main/java/com/cleanroommc/groovyscript/compat/vanilla/Rarity.java" +--- + +# Rarity (Minecraft) + +## Description + +Control the rarity of the item, which typically is the name color, to any standard Rarity or any TextFormatting code. + +:::::::::: details Info {open id="info"} +The default rarities are Common (White), Uncommon (Yellow), Rare (Aqua), and Epic (Light Purple). +:::::::::: + +## Identifier + +Refer to this via any of the following: + +```groovy:no-line-numbers {1} +rarity/* Used as page default */ // [!code focus] +Rarity +``` + + +## Editing Values + +- Sets the color of the given itemstack in the format `color`, `item`: + + ```groovy:no-line-numbers + rarity.set(IRarity, Closure) + ``` + +- Sets the color of the given itemstack in the format `color`, `item`: + + ```groovy:no-line-numbers + rarity.set(IRarity, ItemStack) + ``` + +- Sets the color of the given itemstack in the format `color`, `item`: + + ```groovy:no-line-numbers + rarity.set(TextFormatting, Closure) + ``` + +- Sets the color of the given itemstack in the format `color`, `item`: + + ```groovy:no-line-numbers + rarity.set(TextFormatting, ItemStack) + ``` + +- Sets the color of the given itemstack in the format `color`, `rarityName`, `item`: + + ```groovy:no-line-numbers + rarity.set(TextFormatting, String, Closure) + ``` + +- Sets the color of the given itemstack in the format `color`, `rarityName`, `item`: + + ```groovy:no-line-numbers + rarity.set(TextFormatting, String, ItemStack) + ``` + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +rarity.set(textformat('RESET'), item('minecraft:enchanted_book')) +rarity.set(textformat('AQUA'), item('minecraft:diamond')) +``` + +:::::::::: diff --git a/docs/groovy-script/minecraft/iingredient/index.md b/docs/groovy-script/minecraft/iingredient/index.md new file mode 100644 index 0000000..e92aaf5 --- /dev/null +++ b/docs/groovy-script/minecraft/iingredient/index.md @@ -0,0 +1,110 @@ +--- +order: 800 +--- + +# IIngredient + +`IIngredient` is an interface that GroovyScript adds that is implemented by multiple classes. + +It has certain abilities that apply to all implementations. + + +::: info Info {id="info"} + +Any time you see `IIngredient` as a class, you can technically insert any of the [Implementations](#implementations), +but some may not work as expected depending on the circumstance. + +As an example, in [Crafting Recipes](../helpers/crafting.md) a `FluidStack` `IIngredient` will be converted into a tank, bucket, +or any other container of the given fluid. In other recipes, it might be converted into only a bucket. + +::: + +## Implementations + +There are a number of classes that implement `IIngredient`, but the primary ones are: + +- [`OreDictIngredient`](../vanilla_object_mappers.md#ore) +- [`ItemStack`](../vanilla_object_mappers.md#itemstack) +- [`FluidStack`](../vanilla_object_mappers.md#liquid-and-fluid) +- [`OrIngredient`](#combining), which contains multiple `IIngredient`s +- Several other modded classes, including Mekanism's GasStack and a custom class to handle Thaumcraft Aspects. + + +## Amount + +`IIngredient` extends `IResourceStack`, which allows controlling the amount easily. + +It adds the method `withAmount(int)` and `multiply(int)` to modify the amount of the `IIngredient`. + +Due to [Operator Overloading](../../groovy/operators.md#operator-overloading), +using an asterisk `*` will call the `multiply` method. + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +item('minecraft:diamond') * 5 +item('minecraft:clay').multiply(64) +fluid('water') * 14000 +ore('ingotIron').withAmount(16) +``` +:::::::::: + + +## Comparing + +`IIngredient`s can be compared with other `IIngredients` to determine if they match or are contained by the other. + +When interacting with any `IIngredient`, you can use `isCase(IIngredient)` to determine if the former contains the latter +and use `rightShift(IIngredient)` to determine if the former contains the latter ***and*** +if the amount of the former is greater than the amount of the latter. + +Due to [Operator Overloading](../../groovy/operators.md#operator-overloading), +`in` will call the `isCase` method and two right angle brackets `>>` will call the `rightShift` method. + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +ore('ingotIron') in item('minecraft:iron_ingot') // false +item('minecraft:iron_ingot') in ore('ingotIron') // true +item('minecraft:iron_ingot') >> item('minecraft:iron_ingot') // true +item('minecraft:iron_ingot') >> (item('minecraft:iron_ingot') * 3) // false +``` +:::::::::: + + +## Mark + +`IIngredient` extends `IMarkable`, which allows setting the `Iingredient` to have a specific String as a "mark" +to aid in [Crafting Recipes](../helpers/crafting.md). + +When interacting with any `IIngredient`, you can use `mark(String)` to set the mark to the given String. +This is currently exclusively used for Crafting Table Recipe Functions. + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +item('minecraft:diamond').mark('its_a_diamond') +item('minecraft:clay').mark('special') +fluid('water').mark('container') +ore('ingotIron').mark('hello!') +``` +:::::::::: + + +## Combining + +`IIngredient`s can be combined into a single `IIngredient` representing all contained `IIngredient` as part of the `OrIngredient` class. + +When interacting with any `IIngredient`, you can use `or(IIngredient)` to join any number of `IIngredient`s together. + +::: info Warning {id="warning"} +This creates and returns a *new* `IIngredient`, meaning any information such as [`mark`](#mark) must happen after +the `OrIngredient` is created. +::: + +Due to [Operator Overloading](../../groovy/operators.md#operator-overloading), +using a pipe `|` will call the `or` method. + +:::::::::: details Example {open id="example"} +```groovy:no-line-numbers +item('minecraft:diamond').or(item('minecraft:clay')) +fluid('water') | ore('ingotIron') +``` +:::::::::: diff --git a/docs/groovy-script/minecraft/item.md b/docs/groovy-script/minecraft/iingredient/item.md similarity index 79% rename from docs/groovy-script/minecraft/item.md rename to docs/groovy-script/minecraft/iingredient/item.md index be772d8..f138009 100644 --- a/docs/groovy-script/minecraft/item.md +++ b/docs/groovy-script/minecraft/iingredient/item.md @@ -1,6 +1,12 @@ -# Items -Item stacks can be obtained with the item bracket handler. +# ItemStack + +ItemStacks, as by far the most used type of `IIngredient`, have additional features that +most other `IIngredient`s do not have. + +## Obtaining + +ItemStacks can be obtained with the [`item` Object Mapper](../vanilla_object_mappers.md#itemstack). ```groovy:no-line-numbers def iron_ingot = item('minecraft:iron_ingot', 4) * 6 @@ -97,9 +103,9 @@ The count is ignored. ```groovy def wool0 = item('minecraft:wool', 0) def wool1 = item('minecraft:wool', 1) -println wool0 in wool1 // false, since different meta -println item('minecraft:wool', 0) in wool0 // true, since same item and meta -println item('minecraft:wool', 0) * 5 in wool0 // true, amount is ignored +log.info wool0 in wool1 // false, since different meta +log.info item('minecraft:wool', 0) in wool0 // true, since same item and meta +log.info item('minecraft:wool', 0) * 5 in wool0 // true, amount is ignored ``` ::: @@ -111,9 +117,9 @@ If you want to check if two items are exactly equal with count you need to use ` ```groovy def wool0 = item('minecraft:wool', 0) def wool1 = item('minecraft:wool', 1) -println ItemStack.areItemsEqual(wool0, wool1) // false -println ItemStack.areItemsEqual(item('minecraft:wool', 0), wool1) // true -println ItemStack.areItemsEqual(item('minecraft:wool', 0) * 5, wool1) // false +log.info ItemStack.areItemsEqual(wool0, wool1) // false +log.info ItemStack.areItemsEqual(item('minecraft:wool', 0), wool1) // true +log.info ItemStack.areItemsEqual(item('minecraft:wool', 0) * 5, wool1) // false ``` ::: @@ -123,8 +129,8 @@ You can also use the `in` operator if it matches any `IIngredient`. ::: details Example {open id="example"} ```groovy -println item('minecraft:iron_ingot') in ore('ingotIron') // true -println ore('ingotIron') in item('minecraft:iron_ingot') // false, the iron ingot is in the ore dict and not vice versa. +log.info item('minecraft:iron_ingot') in ore('ingotIron') // true +log.info ore('ingotIron') in item('minecraft:iron_ingot') // false, the iron ingot is in the ore dict and not vice versa. ``` ::: diff --git a/docs/groovy-script/minecraft/index.md b/docs/groovy-script/minecraft/index.md index 9fc1b9e..42e9966 100644 --- a/docs/groovy-script/minecraft/index.md +++ b/docs/groovy-script/minecraft/index.md @@ -7,18 +7,18 @@ aside: false You can use GroovyScript to modify a number of vanilla recipes and values. -* GroovyScript uses [IIngredients](./ingredient.md) to refer to an item, fluid, ore dictionary, other Ingredients, or a list of the above. +* GroovyScript uses [IIngredients](./iingredient/index.md) to refer to an item, fluid, ore dictionary, other `IIngredient`s, or a list of the above. -* See how to access [Items](./item.md) for use in other compat, and modify their publicly available values. +* See how to access [Items](./iingredient/item.md) for use in other compat, and modify their publicly available values. * Learn what a [Resource Location](./resource_location.md) is, and how Minecraft uses it. -* Edit vanilla crafting recipes via [Crafting](./crafting.md). Includes a fully featured Recipe Builder to make +* Edit vanilla crafting recipes via [Crafting](./helpers/crafting.md). Includes a fully featured Recipe Builder to make editing recipes faster. -* Edit smelting recipes via [Furnace](./furnace.md). +* Edit smelting recipes via [Furnace](./helpers/furnace.md). -* Edit the Ore Dictionary via [Ore Dictionary](./ore_dictionary.md). +* Edit the Ore Dictionary via [Ore Dictionary](./helpers/ore_dict.md). * Edit loottables via the [Loot](./loot.md) compat. diff --git a/docs/groovy-script/minecraft/ingredient.md b/docs/groovy-script/minecraft/ingredient.md deleted file mode 100644 index 94acbe9..0000000 --- a/docs/groovy-script/minecraft/ingredient.md +++ /dev/null @@ -1,12 +0,0 @@ -# IIngredient -In recipes, you often see `IIngredient` as input. The following things are `IIngredient`'s: - -- `ItemStack` (f.e. `item('minecraft:apple')`) -- ore dict (f.e. `ore('ingotIron')`) -- Or ingredient (f.e. `item('minecraft:apple') | item('minecraft:iron_ingot)`) -- `FluidStack` (f.e. `fluid('water')`) -- `GasStack` (f.e. `gas('oxygen')`) (Mekanism required) - -So any time you see `IIngredient` you can technically insert any of these. However, fluids and gases might not give the expected result. -In crafting recipes they are turned into any item that contains that specific fluid liker buckets or tanks. -In other recipes it might be turned into a bucket. diff --git a/docs/groovy-script/minecraft/ore_dictionary.md b/docs/groovy-script/minecraft/ore_dictionary.md deleted file mode 100644 index a63f5bc..0000000 --- a/docs/groovy-script/minecraft/ore_dictionary.md +++ /dev/null @@ -1,97 +0,0 @@ -# Ore Dictionary - -::: info Warning {id="warning"} -Requires version 0.3.0+ -::: - -GroovyScript also allows you to remove and add ore dictionaries to items and reload them. - -## Getting an ore dict ingredient -Ore dict ingredients can be used in any recipe that accepts `IIngredient`. -::: info Example {id="example"} - -```groovy:no-line-numbers -ore('ingotCopper') // returns all copper ingots -ore('ingot*') // wildcards are also valid (returns all ingots) -``` - -::: - -## Adding ore dicts - -All three methods are do exactly the same thing. - -::: info Example {id="example"} - -```groovy:no-line-numbers -oreDict.add("amogus", item('minecraft:iron_ingot')) - -item('minecraft:iron_ingot').addOreDict(ore('amogus')) - -ore('amogus').add(item('minecraft:iron_ingot')) -``` - -::: - -## Removing ore dicts - -All three methods are do exactly the same thing. - -::: info Example {id="example"} - -```groovy:no-line-numbers -oreDict.remove("ingotIron", item('minecraft:iron_ingot')) - -item('minecraft:iron_ingot').removeOreDict(ore('ingotIron')) - -ore('ingotIron').remove(item('minecraft:iron_ingot')) -``` - -::: - -## Other - -You can get all items from an ore dict. -Both ways do the same thing. - -::: info Example {id="example"} - -```groovy:no-line-numbers -oreDict.getItems('ingotIron') -oreDict['ingotIron'] -``` - -::: - -Checking if an item is in an ore dictionary - -::: info Example {id="example"} - -```groovy:no-line-numbers -item('minecraft:iron_ingot') in ore('ingotIron') // returns true -``` - -::: - -Getting the first item from an ore dictionary - -::: info Example {id="example"} - -```groovy:no-line-numbers -ore('ingotIron').first -ore('ingotIron')[0] -``` - -::: - -Iterating over all items in an ore dictionary - -::: info Example {id="example"} - -```groovy:no-line-numbers -for (def ironIngot : ore('ingotIron')) { - ... -} -``` - -::: diff --git a/docs/groovy-script/minecraft/resource_location.md b/docs/groovy-script/minecraft/resource_location.md index f2eb732..f8de32b 100644 --- a/docs/groovy-script/minecraft/resource_location.md +++ b/docs/groovy-script/minecraft/resource_location.md @@ -1,23 +1,39 @@ +--- +order: 900 +--- # Resource Location -Minecraft's resource location is often used as an identifier for items but also for locations of asset files like models -and textures. It consists of two strings: a domain and a path. The domain is usually a mod id. The path is a name -(for items) or a path (for files). A Resource Location can be represented like this: `domain:path`. -A Resource Location can not contain any characters. Upper case letters are not allowed. Numbers are allowed. Underscore -is allowed. +Minecraft's Resource Location is often used as an identifier for items +but also for locations of asset files like models and textures. + +It consists of two Strings: a namespace and a path. +The namespace is almost always a mod id. The path is a name (for items) or a path (for files). + +A Resource Location can be represented like this: `namespace:path`. + +::: info Capitalization {id="warning"} + +When using capital letters in a Resource Location, they will automatically be changed to be lowercase. + +While you are not prevented from using special symbols when making a Resource Location, +doing so may cause issues when using the Resource Location for assets (especially on different operating systems). + +Typically, a Resource Location will exclusively contain lowercase letters, numbers, underscores, and dashes. + +::: ## Creating a Resource Location There are two ways to do that: 1. Using the `net.minecraft.util.ResourceLocation` constructor (this class is auto imported since version 0.4.0) - - `new ResourceLocation("domain:path")` - - `new ResourceLocation("domain", "path")` - - `new ResourceLocation("path")` (defaults to `minecraft` domain) -2. Using the `resource()` game object handler (acts like a global method) - - `resource("domain:path")` - - `resource("domain", "path")` - - `resource("path")` (defaults to the pack id specified in the run config (see [here](../getting_started/index.md#run-config))) + - `new ResourceLocation('namespace:path')` + - `new ResourceLocation('namespace', 'path')` + - `new ResourceLocation('path')` (defaults to `minecraft` namespace) +2. Using the [`resource` Object Mapper](./vanilla_object_mappers.md#resource) + - `resource('namespace:path')` + - `resource('namespace', 'path')` + - `resource('path')` (defaults to the pack id specified in the run config (see [here](../getting_started/index.md#run-config))) We can see that both methods are mostly the same except that the game object handler defaults to the pack id instead of minecraft. This way is the preferred way. @@ -26,45 +42,47 @@ minecraft. This way is the preferred way. ```groovy // the following 2 lines are equal -def rl1 = resource("groovyscript", "path/to/file") // groovyscript:path/to/file -def rl2 = resource("groovyscript:path/to/file") // groovyscript:path/to/file -// the domain defaults to the pack id if not specified -def rl3 = resource("furnace") // packid:furnace +resource('groovyscript', 'path/to/file') // groovyscript:path/to/file +resource('groovyscript:path/to/file') // groovyscript:path/to/file +// the namespace defaults to the pack id if not specified +resource('furnace') // packid:furnace ``` ::: -In GroovyScript there usually exist overrides where you can directly insert mod id and path without -creating a `ResourceLocation`.
## Converting to file path -In the following `.../.minecraft/` is the instance folder.
-`.minecraft/resources/` is the root resource folder (requires Resource Loader mod). Resources can be in any valid path -as long as minecraft knows about it. -Since version 0.4.0 the root folder may also be `.minecraft/groovy/assets/`. Resource packs are also a valid way to load -resources.
+When the `ResourceLocation` refers to an asset or otherwise indicates a file, this refers to a specific place. + +All assets are loaded in the same way. + +GroovyScript has an `assets` folder that is automatically loaded, and so that will be used as the example, +but any method that loads assets can be navigated to - including other mods and Resource Packs. + The whole path is composed of - the root path -- the domain (mod id) -- the path (of the resource location) +- the namespace (mod id) +- the path (of the Resource Location) -Formatted: `rootPath/domain/path` +Formatted: `rootPath/namespace/path` -## Examples +::: details Examples {open id="example"} -We use `.minecraft/resources` as the root here. +We use `.minecraft/groovy/assets` as the root here. -| Resource Location | refers to File path | -|------------------------------------------|---------------------------------------------------------------| -| `minecraft:textures/gui/button.png` | `.minecraft/resources/minecraft/textures/gui/button.png` | -| `textures/gui/button.png` | `.minecraft/resources/minecraft/textures/gui/button.png` | -| `thaumcraft:research/SOME_RESEARCH.json` | `.minecraft/resources/thaumcraft/research/SOME_RESEARCH.json` | +| Resource Location | refers to File path | +|------------------------------------------|-------------------------------------------------------------------| +| `minecraft:textures/gui/button.png` | `.minecraft/groovy/assets/minecraft/textures/gui/button.png` | +| `textures/gui/button.png` | `.minecraft/groovy/assets/minecraft/textures/gui/button.png` | +| `thaumcraft:research/SOME_RESEARCH.json` | `.minecraft/groovy/assets/thaumcraft/research/SOME_RESEARCH.json` | + +::: ## Model files -In model or blockstate json files you may also find resource locations. +In model or blockstate json files you may also find Resource Locations. If we take `assets/minecraft/models/block/andesite.json` for example (`assets` being the root folder), in there you will find ```json @@ -76,7 +94,7 @@ If we take `assets/minecraft/models/block/andesite.json` for example (`assets` b } ``` -Here `"block/cube_all"` and `"blocks/stone_andesite"` are both resource locations. So you might think the texture is +Here `"block/cube_all"` and `"blocks/stone_andesite"` are both Resource Locations. So you might think the texture is located in `assets/minecraft/blocks/stone_andesite`, but that is not the case. The real path is `assets/minecraft/textures/blocks/stone_andesite.png`. The reason for that is that minecraft knows it should point to a texture and prepends `textures/` and appends `.png` to the path. @@ -84,9 +102,11 @@ It's similar for `"parent": "block/cube_all"` except it points to another model. ## Other uses -Resource locations are also used as identifiers for game registry entries for example items.
-When you use the item bracket handler you do something like `item('minecraft:iron_ingot')`. Yes `'minecraft:iron_ingot'` is a resource location, except it doesn't point to a resource. -For game objects like items the resource location is also referred to as the registry name. +Resource locations are also used as identifiers for game registry entries for example items. + +When you use the [`item` Object Mapper](./vanilla_object_mappers.md#item) you do something like `item('minecraft:iron_ingot')`. +`'minecraft:iron_ingot'` is a Resource Location, except it doesn't point to a resource. +For game objects like items the Resource Location is also referred to as the registry name. ::: info Warning {id="warning"} Note that you can't use `item('iron_ingot')`. This is disabled by GroovyScript. You must always input the full registry name. diff --git a/docs/groovy-script/minecraft/vanilla_object_mappers.md b/docs/groovy-script/minecraft/vanilla_object_mappers.md new file mode 100644 index 0000000..6213762 --- /dev/null +++ b/docs/groovy-script/minecraft/vanilla_object_mappers.md @@ -0,0 +1,277 @@ +--- +order: 1000 +--- + +# Vanilla Object Mappers + +There are a number of [Object Mappers](../getting_started/object_mappers.md) that +GroovyScript adds by default. They offer a shorthand way to get the object easily. + +Like most Object Mappers, the best way to obtain these is via a [GroovyScript info command](./commands/info.md). + + +## Resource + +The `resource` Object Mapper allows you to retrieve a `ResourceLocation`. + +There are three ways to call the `resource` Object Mapper: +- When two Strings are passed in, the first is the `namespace` and the second will be the `path`. +- When only one String is passed in, if there is a colon `:` then it is split by the colon into the same `namespace` and `path`. +- If there is only one String, it will be interpreted as the `path`, and the [GroovyScript `packid`](../getting_started/run_config.md#packid) will be used as the `namespace`. + +Using only a single `String` separating the `namespace` and `path` with a colon `:` is the canonical form. + +::: details Default `namespace` value {open id="warning"} + +In some other places, when omitting the `namespace` from the `ResourceLocation`, +`minecraft` will be used as the default `namespace`. + +This is not the case in GroovyScript, and the [GroovyScript `packid`](../getting_started/run_config.md#packid) is used instead. + +::: + + +```groovy:no-line-numbers +resource('minecraft', 'clay') +resource('minecraft:dirt') +resource('custom_item') +``` + +## Ore + +The `ore` Object Mapper allows you to retrieve an `IIngredient` representing the relevant OreDictionary. + +There are two ways to call the `ore` Object Mapper: +- The full name of the OreDictionary being targeted. +- Using an asterisk `*` creates an `OreDictWildcardIngredient` which matches anything that has an ore that matches the rest of the text. + +```groovy:no-line-numbers +ore('ingotIron') +ore('oreDiamond') +ore('ingot*') // every oredict that starts with 'ingot' +ore('*Gold') // every oredict that ends with 'Gold' +ore('*or*') // every oredict that contains 'or' +ore('*') // every oredict +``` + +## ItemStack + +The `item` Object Mapper allows you to retrieve an `ItemStack`. + +You can either get an `ItemStack` with a specific metadata or an `ItemStack` accepting any metadata. + +To target the desired `ItemStack`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +By default the `ItemStack` will have a metadata of `0`, but it can be specified using the `int` parameter. + +To create an `ItemStack` that allows any metadata, use a colon `:` followed by an asterisk `*`. + +If called without parameters or otherwise is invalid, `ItemStack.EMPTY` will be returned. + +```groovy:no-line-numbers +item() // ItemStack.EMPTY +item('minecraft:diamond') +item('minecraft:gold') +item('minecraft:iron_sword:*') +item('minecraft:diamond_pickaxe') +item('minecraft:iron_sword', 5) +``` + +## Liquid And Fluid + +The `liquid` and `fluid` Object Mappers allows you to retrieve a `FluidStack`. +They are both the same method internally, and have merely been provided as an alias of each other. + +To target the desired `FluidStack`, use name of the Fluid. + + +```groovy:no-line-numbers +fluid('water') +liquid('lava') +``` + +## Block + +The `block` Object Mapper allows you to retrieve a `Block`. + +To target the desired `Block`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +If called without parameters or otherwise is invalid, `Blocks.AIR` will be returned. + +```groovy:no-line-numbers +block() // Blocks.AIR +block('minecraft:red_flower') +block('minecraft:obsidian') +``` + +## BlockState + +The `blockstate` Object Mapper allows you to retrieve an `IBlockState`. + +The `IBlockState` is made up of a `Block` and some number of optional state values. + +To target the desired `Block`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +To target a specific `IBlockState`, either +- Use an `int` separated by a colon `:` or as a second parameter +- Specify the `property`=`value` entries + +If called without parameters or otherwise is invalid, `Blocks.AIR.getDefaultState()` will be returned. + +```groovy:no-line-numbers +blockstate() // Blocks.AIR.getDefaultState() +blockstate('minecraft:clay') +blockstate('minecraft:stained_glass:1') +blockstate('minecraft:stained_glass', 5) +blockstate('minecraft:yellow_flower:type=dandelion') +blockstate('minecraft:log', 'axis=z', 'variant=oak') +blockstate('minecraft:log:axis=z,variant=jungle') + +``` + +## Enchantment + +The `enchantment` Object Mapper allows you to retrieve an `Enchantment`. + +To target the desired `Enchantment`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +```groovy:no-line-numbers +enchantment('minecraft:unbreaking') +enchantment('minecraft:sharpness') +``` + +## Potion + +The `potion` Object Mapper allows you to retrieve a `Potion`. + +To target the desired `Potion`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +```groovy:no-line-numbers +potion('minecraft:luck') +potion('minecraft:speed') +``` + +## PotionType + +The `potionType` Object Mapper allows you to retrieve a `PotionType`. + +To target the desired `PotionType`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +```groovy:no-line-numbers +potionType('minecraft:fire_resistance') +potionType('minecraft:long_water_breathing') +``` + +## Sound + +The `sound` Object Mapper allows you to retrieve a `SoundEvent`. + +To target the desired `SoundEvent`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +```groovy:no-line-numbers +sound('minecraft:block.glass.break') +sound('minecraft:block.anvil.destroy') +``` + +## Entity + +The `entity` Object Mapper allows you to retrieve an `EntityEntry`. + +To target the desired `EntityEntry`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +```groovy:no-line-numbers +entity('minecraft:wither_skeleton') +entity('minecraft:sheep') +entity('minecraft:villager') +``` + +## Dimension + +The `dimension` Object Mapper allows you to retrieve a `DimensionType`. + +To target the desired `DimensionType`, use the name of the Dimension. + +```groovy:no-line-numbers +dimension('overworld') +dimension('the_nether') +dimension('the_end') +``` + +## Biome + +The `biome` Object Mapper allows you to retrieve a `Biome`. + +To target the desired `Biome`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +```groovy:no-line-numbers +biome('minecraft:sky') +biome('minecraft:hell') +``` + +## Profession + +The `profession` Object Mapper allows you to retrieve a `VillagerProfession`. + +To target the desired `VillagerProfession`, use the `ResourceLocation` of it +in the same format as the canonical form of [`resource` Object Mapper](#resource). + +```groovy:no-line-numbers +profession('minecraft:farmer') +profession('minecraft:nitwit') +``` + +## Career + +The `career` Object Mapper allows you to retrieve a `VillagerCareer`. + +To target the desired `VillagerCareer`, use the name of the Career. + +```groovy:no-line-numbers +career('farmer') +career('fisherman') +career('cartographer') +``` + +## CreativeTab + +The `creativeTab` Object Mapper allows you to retrieve a `CreativeTab`. + +To target the desired `CreativeTab`, use the name of the Creative Tab. + +```groovy:no-line-numbers +creativeTab('buildingBlocks') +creativeTab('food') +``` + +## Textformat + +The `textformat` Object Mapper allows you to retrieve a `TextFormatting`. + +To target the desired `TextFormatting`, use the name of the Text Formatting entry. + +```groovy:no-line-numbers +textformat('dark_green') +textformat('yellow') +textformat('underline') +textformat('reset') +``` + +## Nbt + +The `nbt` Object Mapper allows you to create an `NBTTagCompound`. + +Unlike most other Object Mappers, this is a shorthand way to create a new instance, not to retrieve +an already existing Object. + +```groovy:no-line-numbers +nbt('{"key": "value"}') +``` diff --git a/docs/groovy-script/mods/gtceu/material/material.md b/docs/groovy-script/mods/gtceu/material/material.md index bd83e67..8f1aed5 100644 --- a/docs/groovy-script/mods/gtceu/material/material.md +++ b/docs/groovy-script/mods/gtceu/material/material.md @@ -37,7 +37,7 @@ There are two good ways to do this: the simple way and the not simple way. ### The Simple Way This method requires the Material to first exist. This method goes off of the material's **Unlocalized Name**, which is -the name used before it is translated in a lang file. You can use the `/grs hand` command to retrieve the material of +the name used before it is translated in a lang file. You can use the [`/gs hand` command](../../../minecraft/commands/info.md) to retrieve the material of items. ```groovy diff --git a/docs/zh/groovy-script/index.md b/docs/zh/groovy-script/index.md index 26d6b05..8a800ce 100644 --- a/docs/zh/groovy-script/index.md +++ b/docs/zh/groovy-script/index.md @@ -12,6 +12,7 @@ GroovyScript 目前有两条下载渠道: - [CurseForge](https://www.curseforge.com/minecraft/mc-mods/groovyscript) +- [Modrinth](https://modrinth.com/mod/groovyscript) - [GitHub](https://github.com/CleanroomMC/GroovyScript/releases) ## 特性 diff --git a/docs/zh/groovy-script/minecraft/events/advancement_event.md b/docs/zh/groovy-script/minecraft/events/advancement_event.md index 3d8d1ca..3db4fc3 100644 --- a/docs/zh/groovy-script/minecraft/events/advancement_event.md +++ b/docs/zh/groovy-script/minecraft/events/advancement_event.md @@ -1,7 +1,7 @@ -# AdvancementEvent +# Advancement Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.AdvancementEvent ``` @@ -11,6 +11,6 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.advancements.Advancement getAdvancement() ``` diff --git a/docs/zh/groovy-script/minecraft/events/animal_tame_event.md b/docs/zh/groovy-script/minecraft/events/animal_tame_event.md index 9c73020..0102c7e 100644 --- a/docs/zh/groovy-script/minecraft/events/animal_tame_event.md +++ b/docs/zh/groovy-script/minecraft/events/animal_tame_event.md @@ -1,7 +1,7 @@ -# AnimalTameEvent +# Animal Tame Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.AnimalTameEvent ``` @@ -11,9 +11,9 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getTamer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.passive.EntityAnimal getAnimal() ``` diff --git a/docs/zh/groovy-script/minecraft/events/anvil_repair_event.md b/docs/zh/groovy-script/minecraft/events/anvil_repair_event.md index fce947e..c28b877 100644 --- a/docs/zh/groovy-script/minecraft/events/anvil_repair_event.md +++ b/docs/zh/groovy-script/minecraft/events/anvil_repair_event.md @@ -1,7 +1,7 @@ -# AnvilRepairEvent +# Anvil Repair Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.AnvilRepairEvent ``` @@ -11,27 +11,27 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getOutput() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getRight() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getLeft() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemResult() ``` -```groovy +```groovy:no-line-numbers void setBreakChance(float arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemInput() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getIngredientInput() ``` -```groovy +```groovy:no-line-numbers float getBreakChance() ``` diff --git a/docs/zh/groovy-script/minecraft/events/anvil_update_event.md b/docs/zh/groovy-script/minecraft/events/anvil_update_event.md index 7b5c2a9..3f5027a 100644 --- a/docs/zh/groovy-script/minecraft/events/anvil_update_event.md +++ b/docs/zh/groovy-script/minecraft/events/anvil_update_event.md @@ -1,35 +1,35 @@ -# AnvilUpdateEvent +# Anvil Update Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.AnvilUpdateEvent ``` ## Methods -```groovy +```groovy:no-line-numbers java.lang.String getName() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getOutput() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getRight() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getLeft() ``` -```groovy +```groovy:no-line-numbers void setOutput(net.minecraft.item.ItemStack arg0) ``` -```groovy +```groovy:no-line-numbers void setCost(int arg0) ``` -```groovy +```groovy:no-line-numbers void setMaterialCost(int arg0) ``` -```groovy +```groovy:no-line-numbers int getCost() ``` -```groovy +```groovy:no-line-numbers int getMaterialCost() ``` diff --git a/docs/zh/groovy-script/minecraft/events/arrow_loose_event.md b/docs/zh/groovy-script/minecraft/events/arrow_loose_event.md index 9a6fe9f..1382987 100644 --- a/docs/zh/groovy-script/minecraft/events/arrow_loose_event.md +++ b/docs/zh/groovy-script/minecraft/events/arrow_loose_event.md @@ -1,7 +1,7 @@ -# ArrowLooseEvent +# Arrow Loose Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.ArrowLooseEvent ``` @@ -10,22 +10,22 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers boolean hasAmmo() ``` -```groovy +```groovy:no-line-numbers int getCharge() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getBow() ``` -```groovy +```groovy:no-line-numbers void setCharge(int arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/arrow_nock_event.md b/docs/zh/groovy-script/minecraft/events/arrow_nock_event.md index 6dcbc9b..230d4bc 100644 --- a/docs/zh/groovy-script/minecraft/events/arrow_nock_event.md +++ b/docs/zh/groovy-script/minecraft/events/arrow_nock_event.md @@ -1,8 +1,8 @@ -# ArrowNockEvent +# Arrow Nock Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.ArrowNockEvent ``` @@ -13,26 +13,26 @@ This event extends the following events and can use all their methods and fields ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers boolean hasAmmo() ``` -```groovy +```groovy:no-line-numbers void setAction(net.minecraft.util.ActionResult arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getBow() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.ActionResult getAction() ``` diff --git a/docs/zh/groovy-script/minecraft/events/attach_capabilities_event.md b/docs/zh/groovy-script/minecraft/events/attach_capabilities_event.md index 2a1e4dc..52a1f77 100644 --- a/docs/zh/groovy-script/minecraft/events/attach_capabilities_event.md +++ b/docs/zh/groovy-script/minecraft/events/attach_capabilities_event.md @@ -1,24 +1,22 @@ -# AttachCapabilitiesEvent +# Attach Capabilities Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.AttachCapabilitiesEvent ``` ## Sub-Classes -This event extends the following events and can use all their methods and fields:
-[GenericEvent](generic_event.md) +This event extends the following events and can use all their methods and fields: ## Methods -```groovy +```groovy:no-line-numbers java.lang.Object getObject() ``` -```groovy +```groovy:no-line-numbers void addCapability(net.minecraft.util.ResourceLocation arg0, net.minecraftforge.common.capabilities.ICapabilityProvider arg1) ``` -```groovy +```groovy:no-line-numbers java.util.Map getCapabilities() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/attack_entity_event.md b/docs/zh/groovy-script/minecraft/events/attack_entity_event.md index 13f3477..887494f 100644 --- a/docs/zh/groovy-script/minecraft/events/attack_entity_event.md +++ b/docs/zh/groovy-script/minecraft/events/attack_entity_event.md @@ -1,8 +1,8 @@ -# AttackEntityEvent +# Attack Entity Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.AttackEntityEvent ``` @@ -13,6 +13,6 @@ This event extends the following events and can use all their methods and fields ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` diff --git a/docs/zh/groovy-script/minecraft/events/baby_entity_spawn_event.md b/docs/zh/groovy-script/minecraft/events/baby_entity_spawn_event.md index 8469fb4..b6c5164 100644 --- a/docs/zh/groovy-script/minecraft/events/baby_entity_spawn_event.md +++ b/docs/zh/groovy-script/minecraft/events/baby_entity_spawn_event.md @@ -1,29 +1,29 @@ -# BabyEntitySpawnEvent +# Baby Entity Spawn Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.BabyEntitySpawnEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLiving getParentB() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLiving getParentA() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getCausedByPlayer() ``` -```groovy +```groovy:no-line-numbers void setChild(net.minecraft.entity.EntityAgeable arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityAgeable getChild() ``` diff --git a/docs/zh/groovy-script/minecraft/events/biome_event/biome_color.md b/docs/zh/groovy-script/minecraft/events/biome_event/biome_color.md index 5ab36af..d952111 100644 --- a/docs/zh/groovy-script/minecraft/events/biome_event/biome_color.md +++ b/docs/zh/groovy-script/minecraft/events/biome_event/biome_color.md @@ -1,8 +1,8 @@ -# BiomeEvent.BiomeColor +# Biome Color To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.BiomeColor ``` @@ -13,14 +13,14 @@ This event extends the following events and can use all their methods and fields ## Methods -```groovy +```groovy:no-line-numbers int getNewColor() ``` -```groovy +```groovy:no-line-numbers int getOriginalColor() ``` -```groovy +```groovy:no-line-numbers void setNewColor(int arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/biome_event/biome_event.md b/docs/zh/groovy-script/minecraft/events/biome_event/biome_event.md index 0151afb..01ea912 100644 --- a/docs/zh/groovy-script/minecraft/events/biome_event/biome_event.md +++ b/docs/zh/groovy-script/minecraft/events/biome_event/biome_event.md @@ -1,12 +1,11 @@ -# BiomeEvent +# Biome Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.biome.Biome getBiome() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/biome_event/create_decorator.md b/docs/zh/groovy-script/minecraft/events/biome_event/create_decorator.md index a54d73d..5a05e4e 100644 --- a/docs/zh/groovy-script/minecraft/events/biome_event/create_decorator.md +++ b/docs/zh/groovy-script/minecraft/events/biome_event/create_decorator.md @@ -1,7 +1,7 @@ -# BiomeEvent.CreateDecorator +# Create Decorator To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.CreateDecorator ``` @@ -10,15 +10,14 @@ This event extends the following events and can use all their methods and fields [BiomeEvent](biome_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.biome.BiomeDecorator getNewBiomeDecorator() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.biome.BiomeDecorator getOriginalBiomeDecorator() ``` -```groovy +```groovy:no-line-numbers void setNewBiomeDecorator(net.minecraft.world.biome.BiomeDecorator arg0) ``` - diff --git a/docs/zh/groovy-script/minecraft/events/biome_event/get_foliage_color.md b/docs/zh/groovy-script/minecraft/events/biome_event/get_foliage_color.md index 055e80d..43e9c3a 100644 --- a/docs/zh/groovy-script/minecraft/events/biome_event/get_foliage_color.md +++ b/docs/zh/groovy-script/minecraft/events/biome_event/get_foliage_color.md @@ -1,7 +1,7 @@ -# BiomeEvent.GetFoliageColor +# Get Foliage Color To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.GetFoliageColor ``` diff --git a/docs/zh/groovy-script/minecraft/events/biome_event/get_grass_color.md b/docs/zh/groovy-script/minecraft/events/biome_event/get_grass_color.md index c635118..265aab8 100644 --- a/docs/zh/groovy-script/minecraft/events/biome_event/get_grass_color.md +++ b/docs/zh/groovy-script/minecraft/events/biome_event/get_grass_color.md @@ -1,7 +1,7 @@ -# BiomeEvent.GetGrassColor +# Get Grass Color To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.GetGrassColor ``` diff --git a/docs/zh/groovy-script/minecraft/events/biome_event/get_village_block_i_d.md b/docs/zh/groovy-script/minecraft/events/biome_event/get_village_block_i_d.md index 8d33cf0..be56bd5 100644 --- a/docs/zh/groovy-script/minecraft/events/biome_event/get_village_block_i_d.md +++ b/docs/zh/groovy-script/minecraft/events/biome_event/get_village_block_i_d.md @@ -1,7 +1,7 @@ -# BiomeEvent.GetVillageBlockID +# Get Village Block ID To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.GetVillageBlockID ``` @@ -10,19 +10,18 @@ This event extends the following events and can use all their methods and fields [BiomeEvent](biome_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getReplacement() ``` -```groovy +```groovy:no-line-numbers void setReplacement(net.minecraft.block.state.IBlockState arg0) ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getOriginal() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/biome_event/get_water_color.md b/docs/zh/groovy-script/minecraft/events/biome_event/get_water_color.md index 50202e4..0591802 100644 --- a/docs/zh/groovy-script/minecraft/events/biome_event/get_water_color.md +++ b/docs/zh/groovy-script/minecraft/events/biome_event/get_water_color.md @@ -1,7 +1,7 @@ -# BiomeEvent.GetWaterColor +# Get Water Color To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.BiomeEvent.GetWaterColor ``` diff --git a/docs/zh/groovy-script/minecraft/events/block_event/block_event.md b/docs/zh/groovy-script/minecraft/events/block_event/block_event.md index 82db4fe..cbd1ede 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/block_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/block_event.md @@ -1,20 +1,19 @@ -# BlockEvent +# Block Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getState() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/block_event/break_event.md b/docs/zh/groovy-script/minecraft/events/block_event/break_event.md index ed58cdb..2e1c2df 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/break_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/break_event.md @@ -1,7 +1,7 @@ -# BlockEvent.BreakEvent +# Break Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.BreakEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers int getExpToDrop() ``` -```groovy +```groovy:no-line-numbers void setExpToDrop(int arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/block_event/create_fluid_source_event.md b/docs/zh/groovy-script/minecraft/events/block_event/create_fluid_source_event.md index 0d84f1c..519a6fa 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/create_fluid_source_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/create_fluid_source_event.md @@ -1,7 +1,7 @@ -# BlockEvent.CreateFluidSourceEvent +# Create Fluid Source Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.CreateFluidSourceEvent ``` @@ -10,7 +10,6 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/block_event/crop_grow_event.md b/docs/zh/groovy-script/minecraft/events/block_event/crop_grow_event.md index 591755f..4aa134a 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/crop_grow_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/crop_grow_event.md @@ -1,7 +1,7 @@ -# BlockEvent.CropGrowEvent +# Crop Grow Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.CropGrowEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -# BlockEvent.CropGrowEvent.Pre +# Crop Grow Event.Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.CropGrowEvent.Pre ``` @@ -22,14 +22,14 @@ This event extends the following events and can use all their methods and fields [CropGrowEvent](crop_grow_event.md), [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -# BlockEvent.CropGrowEvent.Post +# Crop Grow Event.Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.CropGrowEvent.Post ``` @@ -38,7 +38,6 @@ This event extends the following events and can use all their methods and fields [CropGrowEvent](crop_grow_event.md), [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getOriginalState() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/block_event/entity_multi_place_event.md b/docs/zh/groovy-script/minecraft/events/block_event/entity_multi_place_event.md index a2d28ea..1b6ed94 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/entity_multi_place_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/entity_multi_place_event.md @@ -1,7 +1,7 @@ -# BlockEvent.EntityMultiPlaceEvent +# Entity Multi Place Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.EntityMultiPlaceEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityPlaceEvent](entity_place_event.md), [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers java.util.List getReplacedBlockSnapshots() ``` diff --git a/docs/zh/groovy-script/minecraft/events/block_event/entity_place_event.md b/docs/zh/groovy-script/minecraft/events/block_event/entity_place_event.md index abcdf04..fc07359 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/entity_place_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/entity_place_event.md @@ -1,7 +1,7 @@ -# BlockEvent.EntityPlaceEvent +# Entity Place Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.EntityPlaceEvent ``` @@ -10,19 +10,18 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntity() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.common.util.BlockSnapshot getBlockSnapshot() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getPlacedBlock() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getPlacedAgainst() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/block_event/farmland_trample_event.md b/docs/zh/groovy-script/minecraft/events/block_event/farmland_trample_event.md index 9fc772b..0aa845b 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/farmland_trample_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/farmland_trample_event.md @@ -1,7 +1,7 @@ -# BlockEvent.FarmlandTrampleEvent +# Farmland Trample Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.FarmlandTrampleEvent ``` @@ -10,11 +10,10 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntity() ``` -```groovy +```groovy:no-line-numbers float getFallDistance() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/block_event/fluid_place_block_event.md b/docs/zh/groovy-script/minecraft/events/block_event/fluid_place_block_event.md index b8c7915..1c8cde5 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/fluid_place_block_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/fluid_place_block_event.md @@ -1,7 +1,7 @@ -# BlockEvent.FluidPlaceBlockEvent +# Fluid Place Block Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.FluidPlaceBlockEvent ``` @@ -10,19 +10,18 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getNewState() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getLiquidPos() ``` -```groovy +```groovy:no-line-numbers void setNewState(net.minecraft.block.state.IBlockState arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getOriginalState() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/block_event/harvest_drops_event.md b/docs/zh/groovy-script/minecraft/events/block_event/harvest_drops_event.md index a5484cc..c832531 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/harvest_drops_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/harvest_drops_event.md @@ -1,7 +1,7 @@ -# BlockEvent.HarvestDropsEvent +# Harvest Drops Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent ``` @@ -10,27 +10,26 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers void setDropChance(float arg0) ``` -```groovy +```groovy:no-line-numbers java.util.List getDrops() ``` -```groovy +```groovy:no-line-numbers float getDropChance() ``` -```groovy +```groovy:no-line-numbers int getFortuneLevel() ``` -```groovy +```groovy:no-line-numbers boolean isSilkTouching() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getHarvester() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/block_event/multi_place_event.md b/docs/zh/groovy-script/minecraft/events/block_event/multi_place_event.md index 820547c..229dd8e 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/multi_place_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/multi_place_event.md @@ -1,7 +1,7 @@ -# BlockEvent.MultiPlaceEvent +# Multi Place Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.MultiPlaceEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [PlaceEvent](place_event.md), [EntityPlaceEvent](entity_place_event.md), [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers java.util.List getReplacedBlockSnapshots() ``` diff --git a/docs/zh/groovy-script/minecraft/events/block_event/neighbor_notify_event.md b/docs/zh/groovy-script/minecraft/events/block_event/neighbor_notify_event.md index 66a03e8..b3b1563 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/neighbor_notify_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/neighbor_notify_event.md @@ -1,7 +1,7 @@ -# BlockEvent.NeighborNotifyEvent +# Neighbor Notify Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.NeighborNotifyEvent ``` @@ -10,11 +10,10 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean getForceRedstoneUpdate() ``` -```groovy +```groovy:no-line-numbers java.util.EnumSet getNotifiedSides() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/block_event/place_event.md b/docs/zh/groovy-script/minecraft/events/block_event/place_event.md index aaa69f3..acbae6d 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/place_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/place_event.md @@ -1,7 +1,7 @@ -# BlockEvent.PlaceEvent +# Place Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.PlaceEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [EntityPlaceEvent](entity_place_event.md), [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemInHand() ``` diff --git a/docs/zh/groovy-script/minecraft/events/block_event/portal_spawn_event.md b/docs/zh/groovy-script/minecraft/events/block_event/portal_spawn_event.md index 7d23bdb..be27e65 100644 --- a/docs/zh/groovy-script/minecraft/events/block_event/portal_spawn_event.md +++ b/docs/zh/groovy-script/minecraft/events/block_event/portal_spawn_event.md @@ -1,7 +1,7 @@ -# BlockEvent.PortalSpawnEvent +# Portal Spawn Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.PortalSpawnEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [BlockEvent](block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.BlockPortal$Size getPortalSize() ``` diff --git a/docs/zh/groovy-script/minecraft/events/bonemeal_event.md b/docs/zh/groovy-script/minecraft/events/bonemeal_event.md index cfc212b..0bd7675 100644 --- a/docs/zh/groovy-script/minecraft/events/bonemeal_event.md +++ b/docs/zh/groovy-script/minecraft/events/bonemeal_event.md @@ -1,7 +1,7 @@ -# BonemealEvent +# Bonemeal Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.BonemealEvent ``` @@ -10,26 +10,26 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getStack() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getBlock() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_data_event/chunk_data_event.md b/docs/zh/groovy-script/minecraft/events/chunk_data_event/chunk_data_event.md index ad39fa5..f06aeb5 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_data_event/chunk_data_event.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_data_event/chunk_data_event.md @@ -1,7 +1,7 @@ -# ChunkDataEvent +# Chunk Data Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkDataEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [ChunkEvent](../chunk_event/chunk_event.md), [WorldEvent](../world_event/world_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.nbt.NBTTagCompound getData() ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_data_event/load.md b/docs/zh/groovy-script/minecraft/events/chunk_data_event/load.md index 9e65f69..cc503b7 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_data_event/load.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_data_event/load.md @@ -1,7 +1,7 @@ -# ChunkDataEvent.Load +# Load To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkDataEvent.Load ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_data_event/save.md b/docs/zh/groovy-script/minecraft/events/chunk_data_event/save.md index 31c552f..28ffc6b 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_data_event/save.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_data_event/save.md @@ -1,7 +1,7 @@ -# ChunkDataEvent.Save +# Save To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkDataEvent.Save ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_event/chunk_event.md b/docs/zh/groovy-script/minecraft/events/chunk_event/chunk_event.md index a0b08e8..efe597c 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_event/chunk_event.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_event/chunk_event.md @@ -1,7 +1,7 @@ -# ChunkEvent +# Chunk Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [WorldEvent](../world_event/world_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.chunk.Chunk getChunk() ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_event/load.md b/docs/zh/groovy-script/minecraft/events/chunk_event/load.md index 94cd7ef..123cc74 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_event/load.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_event/load.md @@ -1,7 +1,7 @@ -# ChunkEvent.Load +# Load To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkEvent.Load ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_event/unload.md b/docs/zh/groovy-script/minecraft/events/chunk_event/unload.md index 92e7f8b..3c398f5 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_event/unload.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_event/unload.md @@ -1,7 +1,7 @@ -# ChunkEvent.Unload +# Unload To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkEvent.Unload ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_generator_event/chunk_generator_event.md b/docs/zh/groovy-script/minecraft/events/chunk_generator_event/chunk_generator_event.md index 8124998..a8efdfc 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_generator_event/chunk_generator_event.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_generator_event/chunk_generator_event.md @@ -1,16 +1,15 @@ -# ChunkGeneratorEvent +# Chunk Generator Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.ChunkGeneratorEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.IChunkGenerator getGenerator() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.IChunkGenerator getGen() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/chunk_generator_event/init_noise_field.md b/docs/zh/groovy-script/minecraft/events/chunk_generator_event/init_noise_field.md index b5bce91..428f523 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_generator_event/init_noise_field.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_generator_event/init_noise_field.md @@ -1,7 +1,7 @@ -# ChunkGeneratorEvent.InitNoiseField +# Init Noise Field To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.ChunkGeneratorEvent.InitNoiseField ``` @@ -10,38 +10,38 @@ This event extends the following events and can use all their methods and fields [ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getPosZ() ``` -```groovy +```groovy:no-line-numbers [D getNoisefield() ``` -```groovy +```groovy:no-line-numbers void setNoisefield([D arg0) ``` -```groovy +```groovy:no-line-numbers int getSizeX() ``` -```groovy +```groovy:no-line-numbers int getSizeZ() ``` -```groovy +```groovy:no-line-numbers int getSizeY() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers int getPosY() ``` -```groovy +```groovy:no-line-numbers int getPosX() ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_generator_event/replace_biome_blocks.md b/docs/zh/groovy-script/minecraft/events/chunk_generator_event/replace_biome_blocks.md index c247c52..4ef72de 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_generator_event/replace_biome_blocks.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_generator_event/replace_biome_blocks.md @@ -1,7 +1,7 @@ -# ChunkGeneratorEvent.ReplaceBiomeBlocks +# Replace Biome Blocks To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.ChunkGeneratorEvent.ReplaceBiomeBlocks ``` @@ -10,22 +10,22 @@ This event extends the following events and can use all their methods and fields [ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getX() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers int getZ() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.chunk.ChunkPrimer getPrimer() ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_watch_event/chunk_watch_event.md b/docs/zh/groovy-script/minecraft/events/chunk_watch_event/chunk_watch_event.md index 3eb2776..8d910a6 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_watch_event/chunk_watch_event.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_watch_event/chunk_watch_event.md @@ -1,20 +1,19 @@ -# ChunkWatchEvent +# Chunk Watch Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkWatchEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.chunk.Chunk getChunkInstance() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayerMP getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.ChunkPos getChunk() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/chunk_watch_event/un_watch.md b/docs/zh/groovy-script/minecraft/events/chunk_watch_event/un_watch.md index 716aa72..4600135 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_watch_event/un_watch.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_watch_event/un_watch.md @@ -1,7 +1,7 @@ -# ChunkWatchEvent.UnWatch +# Un Watch To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkWatchEvent.UnWatch ``` diff --git a/docs/zh/groovy-script/minecraft/events/chunk_watch_event/watch.md b/docs/zh/groovy-script/minecraft/events/chunk_watch_event/watch.md index 74f5dc6..59505b4 100644 --- a/docs/zh/groovy-script/minecraft/events/chunk_watch_event/watch.md +++ b/docs/zh/groovy-script/minecraft/events/chunk_watch_event/watch.md @@ -1,7 +1,7 @@ -# ChunkWatchEvent.Watch +# Watch To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ChunkWatchEvent.Watch ``` diff --git a/docs/zh/groovy-script/minecraft/events/command_event.md b/docs/zh/groovy-script/minecraft/events/command_event.md index 58a1706..23155fb 100644 --- a/docs/zh/groovy-script/minecraft/events/command_event.md +++ b/docs/zh/groovy-script/minecraft/events/command_event.md @@ -1,32 +1,31 @@ -# CommandEvent +# Command Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.CommandEvent ``` ## Methods -```groovy +```groovy:no-line-numbers java.lang.Throwable getException() ``` -```groovy +```groovy:no-line-numbers [Ljava.lang.String; getParameters() ``` -```groovy +```groovy:no-line-numbers net.minecraft.command.ICommand getCommand() ``` -```groovy +```groovy:no-line-numbers void setParameters([Ljava.lang.String; arg0) ``` -```groovy +```groovy:no-line-numbers void setException(java.lang.Throwable arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.command.ICommandSender getSender() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/critical_hit_event.md b/docs/zh/groovy-script/minecraft/events/critical_hit_event.md index 6a902b3..5113434 100644 --- a/docs/zh/groovy-script/minecraft/events/critical_hit_event.md +++ b/docs/zh/groovy-script/minecraft/events/critical_hit_event.md @@ -1,7 +1,7 @@ -# CriticalHitEvent +# Critical Hit Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.CriticalHitEvent ``` @@ -10,26 +10,26 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers float getDamageModifier() ``` -```groovy +```groovy:no-line-numbers void setDamageModifier(float arg0) ``` -```groovy +```groovy:no-line-numbers float getOldDamageModifier() ``` -```groovy +```groovy:no-line-numbers boolean isVanillaCritical() ``` diff --git a/docs/zh/groovy-script/minecraft/events/decorate_biome_event/decorate.md b/docs/zh/groovy-script/minecraft/events/decorate_biome_event/decorate.md index 3140c4a..814b6b6 100644 --- a/docs/zh/groovy-script/minecraft/events/decorate_biome_event/decorate.md +++ b/docs/zh/groovy-script/minecraft/events/decorate_biome_event/decorate.md @@ -1,7 +1,7 @@ -# DecorateBiomeEvent.Decorate +# Decorate To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate ``` @@ -10,15 +10,14 @@ This event extends the following events and can use all their methods and fields [DecorateBiomeEvent](decorate_biome_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.DecorateBiomeEvent$Decorate$EventType getType() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPlacementPos() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/decorate_biome_event/decorate_biome_event.md b/docs/zh/groovy-script/minecraft/events/decorate_biome_event/decorate_biome_event.md index 7e1456d..9474a16 100644 --- a/docs/zh/groovy-script/minecraft/events/decorate_biome_event/decorate_biome_event.md +++ b/docs/zh/groovy-script/minecraft/events/decorate_biome_event/decorate_biome_event.md @@ -1,31 +1,31 @@ -# DecorateBiomeEvent +# Decorate Biome Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.DecorateBiomeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.ChunkPos getChunkPos() ``` -# DecorateBiomeEvent.Pre +# Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Pre ``` @@ -34,10 +34,10 @@ This event extends the following events and can use all their methods and fields [DecorateBiomeEvent](decorate_biome_event.md) ## Methods -# DecorateBiomeEvent.Post +# Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.DecorateBiomeEvent.Post ``` diff --git a/docs/zh/groovy-script/minecraft/events/difficulty_change_event.md b/docs/zh/groovy-script/minecraft/events/difficulty_change_event.md index 0acf23e..5ec193c 100644 --- a/docs/zh/groovy-script/minecraft/events/difficulty_change_event.md +++ b/docs/zh/groovy-script/minecraft/events/difficulty_change_event.md @@ -1,16 +1,15 @@ -# DifficultyChangeEvent +# Difficulty Change Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.DifficultyChangeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.EnumDifficulty getOldDifficulty() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.EnumDifficulty getDifficulty() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/enchantment_level_set_event.md b/docs/zh/groovy-script/minecraft/events/enchantment_level_set_event.md index 9668d61..2d2ea6f 100644 --- a/docs/zh/groovy-script/minecraft/events/enchantment_level_set_event.md +++ b/docs/zh/groovy-script/minecraft/events/enchantment_level_set_event.md @@ -1,40 +1,39 @@ -# EnchantmentLevelSetEvent +# Enchantment Level Set Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.enchanting.EnchantmentLevelSetEvent ``` ## Methods -```groovy +```groovy:no-line-numbers int getLevel() ``` -```groovy +```groovy:no-line-numbers void setLevel(int arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItem() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers int getOriginalLevel() ``` -```groovy +```groovy:no-line-numbers int getEnchantRow() ``` -```groovy +```groovy:no-line-numbers int getPower() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/ender_teleport_event.md b/docs/zh/groovy-script/minecraft/events/ender_teleport_event.md index 2f39ef7..2ff08f6 100644 --- a/docs/zh/groovy-script/minecraft/events/ender_teleport_event.md +++ b/docs/zh/groovy-script/minecraft/events/ender_teleport_event.md @@ -1,7 +1,7 @@ -# EnderTeleportEvent +# Ender Teleport Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.EnderTeleportEvent ``` @@ -10,34 +10,34 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers double getTargetX() ``` -```groovy +```groovy:no-line-numbers double getTargetY() ``` -```groovy +```groovy:no-line-numbers double getTargetZ() ``` -```groovy +```groovy:no-line-numbers float getAttackDamage() ``` -```groovy +```groovy:no-line-numbers void setAttackDamage(float arg0) ``` -```groovy +```groovy:no-line-numbers void setTargetX(double arg0) ``` -```groovy +```groovy:no-line-numbers void setTargetZ(double arg0) ``` -```groovy +```groovy:no-line-numbers void setTargetY(double arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_event/can_update.md b/docs/zh/groovy-script/minecraft/events/entity_event/can_update.md index ab402cb..1ab2fa8 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_event/can_update.md +++ b/docs/zh/groovy-script/minecraft/events/entity_event/can_update.md @@ -1,7 +1,7 @@ -# EntityEvent.CanUpdate +# Can Update To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityEvent.CanUpdate ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean getCanUpdate() ``` -```groovy +```groovy:no-line-numbers void setCanUpdate(boolean arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_event/entering_chunk.md b/docs/zh/groovy-script/minecraft/events/entity_event/entering_chunk.md index 541e580..ac105f5 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_event/entering_chunk.md +++ b/docs/zh/groovy-script/minecraft/events/entity_event/entering_chunk.md @@ -1,7 +1,7 @@ -# EntityEvent.EnteringChunk +# Entering Chunk To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityEvent.EnteringChunk ``` @@ -10,34 +10,34 @@ This event extends the following events and can use all their methods and fields [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers void setNewChunkX(int arg0) ``` -```groovy +```groovy:no-line-numbers void setNewChunkZ(int arg0) ``` -```groovy +```groovy:no-line-numbers void setOldChunkX(int arg0) ``` -```groovy +```groovy:no-line-numbers void setOldChunkZ(int arg0) ``` -```groovy +```groovy:no-line-numbers int getNewChunkX() ``` -```groovy +```groovy:no-line-numbers int getOldChunkX() ``` -```groovy +```groovy:no-line-numbers int getOldChunkZ() ``` -```groovy +```groovy:no-line-numbers int getNewChunkZ() ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_event/entity_constructing.md b/docs/zh/groovy-script/minecraft/events/entity_event/entity_constructing.md index e39e352..c3006dd 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_event/entity_constructing.md +++ b/docs/zh/groovy-script/minecraft/events/entity_event/entity_constructing.md @@ -1,7 +1,7 @@ -# EntityEvent.EntityConstructing +# Entity Constructing To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityEvent.EntityConstructing ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_event/entity_event.md b/docs/zh/groovy-script/minecraft/events/entity_event/entity_event.md index 2a43262..52e52ed 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_event/entity_event.md +++ b/docs/zh/groovy-script/minecraft/events/entity_event/entity_event.md @@ -1,12 +1,11 @@ -# EntityEvent +# Entity Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntity() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/entity_item_pickup_event.md b/docs/zh/groovy-script/minecraft/events/entity_item_pickup_event.md index b1bde16..ea98aa5 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_item_pickup_event.md +++ b/docs/zh/groovy-script/minecraft/events/entity_item_pickup_event.md @@ -1,7 +1,7 @@ -# EntityItemPickupEvent +# Entity Item Pickup Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.EntityItemPickupEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.item.EntityItem getItem() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_join_world_event.md b/docs/zh/groovy-script/minecraft/events/entity_join_world_event.md index c29d66c..bdc5577 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_join_world_event.md +++ b/docs/zh/groovy-script/minecraft/events/entity_join_world_event.md @@ -1,7 +1,7 @@ -# EntityJoinWorldEvent +# Entity Join World Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityJoinWorldEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_mob_griefing_event.md b/docs/zh/groovy-script/minecraft/events/entity_mob_griefing_event.md index 1362404..98643ef 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_mob_griefing_event.md +++ b/docs/zh/groovy-script/minecraft/events/entity_mob_griefing_event.md @@ -1,7 +1,7 @@ -# EntityMobGriefingEvent +# Entity Mob Griefing Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityMobGriefingEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_mount_event.md b/docs/zh/groovy-script/minecraft/events/entity_mount_event.md index 73237ca..19b1800 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_mount_event.md +++ b/docs/zh/groovy-script/minecraft/events/entity_mount_event.md @@ -1,7 +1,7 @@ -# EntityMountEvent +# Entity Mount Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityMountEvent ``` @@ -10,22 +10,22 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorldObj() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntityBeingMounted() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntityMounting() ``` -```groovy +```groovy:no-line-numbers boolean isMounting() ``` -```groovy +```groovy:no-line-numbers boolean isDismounting() ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_struck_by_lightning_event.md b/docs/zh/groovy-script/minecraft/events/entity_struck_by_lightning_event.md index 5850e2c..3b98f95 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_struck_by_lightning_event.md +++ b/docs/zh/groovy-script/minecraft/events/entity_struck_by_lightning_event.md @@ -1,7 +1,7 @@ -# EntityStruckByLightningEvent +# Entity Struck By Lightning Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityStruckByLightningEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.effect.EntityLightningBolt getLightning() ``` diff --git a/docs/zh/groovy-script/minecraft/events/entity_travel_to_dimension_event.md b/docs/zh/groovy-script/minecraft/events/entity_travel_to_dimension_event.md index 48c1497..191e17a 100644 --- a/docs/zh/groovy-script/minecraft/events/entity_travel_to_dimension_event.md +++ b/docs/zh/groovy-script/minecraft/events/entity_travel_to_dimension_event.md @@ -1,7 +1,7 @@ -# EntityTravelToDimensionEvent +# Entity Travel To Dimension Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.EntityTravelToDimensionEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getDimension() ``` diff --git a/docs/zh/groovy-script/minecraft/events/explosion_event/detonate.md b/docs/zh/groovy-script/minecraft/events/explosion_event/detonate.md index 6b0e3d9..771787e 100644 --- a/docs/zh/groovy-script/minecraft/events/explosion_event/detonate.md +++ b/docs/zh/groovy-script/minecraft/events/explosion_event/detonate.md @@ -1,7 +1,7 @@ -# ExplosionEvent.Detonate +# Detonate To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ExplosionEvent.Detonate ``` @@ -10,11 +10,10 @@ This event extends the following events and can use all their methods and fields [ExplosionEvent](explosion_event.md) ## Methods -```groovy +```groovy:no-line-numbers java.util.List getAffectedBlocks() ``` -```groovy +```groovy:no-line-numbers java.util.List getAffectedEntities() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/explosion_event/explosion_event.md b/docs/zh/groovy-script/minecraft/events/explosion_event/explosion_event.md index 071aa22..7bdbf5e 100644 --- a/docs/zh/groovy-script/minecraft/events/explosion_event/explosion_event.md +++ b/docs/zh/groovy-script/minecraft/events/explosion_event/explosion_event.md @@ -1,16 +1,15 @@ -# ExplosionEvent +# Explosion Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ExplosionEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.Explosion getExplosion() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/explosion_event/start.md b/docs/zh/groovy-script/minecraft/events/explosion_event/start.md index 7de5448..0a47cf6 100644 --- a/docs/zh/groovy-script/minecraft/events/explosion_event/start.md +++ b/docs/zh/groovy-script/minecraft/events/explosion_event/start.md @@ -1,7 +1,7 @@ -# ExplosionEvent.Start +# Start To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.ExplosionEvent.Start ``` diff --git a/docs/zh/groovy-script/minecraft/events/fill_bucket_event.md b/docs/zh/groovy-script/minecraft/events/fill_bucket_event.md index 497c181..541f9f9 100644 --- a/docs/zh/groovy-script/minecraft/events/fill_bucket_event.md +++ b/docs/zh/groovy-script/minecraft/events/fill_bucket_event.md @@ -1,7 +1,7 @@ -# FillBucketEvent +# Fill Bucket Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.FillBucketEvent ``` @@ -10,26 +10,26 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.RayTraceResult getTarget() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getFilledBucket() ``` -```groovy +```groovy:no-line-numbers void setFilledBucket(net.minecraft.item.ItemStack arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getEmptyBucket() ``` diff --git a/docs/zh/groovy-script/minecraft/events/furnace_fuel_burn_time_event.md b/docs/zh/groovy-script/minecraft/events/furnace_fuel_burn_time_event.md index dcab401..7fb8e8a 100644 --- a/docs/zh/groovy-script/minecraft/events/furnace_fuel_burn_time_event.md +++ b/docs/zh/groovy-script/minecraft/events/furnace_fuel_burn_time_event.md @@ -1,20 +1,19 @@ -# FurnaceFuelBurnTimeEvent +# Furnace Fuel Burn Time Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers int getBurnTime() ``` -```groovy +```groovy:no-line-numbers void setBurnTime(int arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemStack() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/game_rule_change_event.md b/docs/zh/groovy-script/minecraft/events/game_rule_change_event.md index 5efaa5c..4e434c4 100644 --- a/docs/zh/groovy-script/minecraft/events/game_rule_change_event.md +++ b/docs/zh/groovy-script/minecraft/events/game_rule_change_event.md @@ -1,20 +1,19 @@ -# GameRuleChangeEvent +# Game Rule Change Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.GameRuleChangeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.GameRules getRules() ``` -```groovy +```groovy:no-line-numbers java.lang.String getRuleName() ``` -```groovy +```groovy:no-line-numbers net.minecraft.server.MinecraftServer getServer() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/generic_event.md b/docs/zh/groovy-script/minecraft/events/generic_event.md deleted file mode 100644 index 1333ed7..0000000 --- a/docs/zh/groovy-script/minecraft/events/generic_event.md +++ /dev/null @@ -1 +0,0 @@ -TODO diff --git a/docs/zh/groovy-script/minecraft/events/get_collision_boxes_event.md b/docs/zh/groovy-script/minecraft/events/get_collision_boxes_event.md index 58cf305..d04fc54 100644 --- a/docs/zh/groovy-script/minecraft/events/get_collision_boxes_event.md +++ b/docs/zh/groovy-script/minecraft/events/get_collision_boxes_event.md @@ -1,7 +1,7 @@ -# GetCollisionBoxesEvent +# Get Collision Boxes Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.GetCollisionBoxesEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [WorldEvent](world_event/world_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getEntity() ``` -```groovy +```groovy:no-line-numbers java.util.List getCollisionBoxesList() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.AxisAlignedBB getAabb() ``` diff --git a/docs/zh/groovy-script/minecraft/events/index.md b/docs/zh/groovy-script/minecraft/events/index.md index fa22c8c..a8e9b7d 100644 --- a/docs/zh/groovy-script/minecraft/events/index.md +++ b/docs/zh/groovy-script/minecraft/events/index.md @@ -9,7 +9,7 @@ Here are listed all minecraft and forge events there are. ::: info Let's see an example: {id="example"} -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.BreakEvent event_manager.listen { BreakEvent event -> @@ -29,7 +29,7 @@ What is happening? ## Other listen methods -```groovy +```groovy:no-line-numbers event_manager.listen(EventPriority eventPriority, EventBusType eventBusType, Closure eventListener) event_manager.listen(EventBusType eventPriority, EventPriority eventBusType, Closure eventListener) event_manager.listen(EventBusType eventPriority, Closure eventListener) @@ -57,7 +57,7 @@ Normally you don't need to chane any of those values.
::: info Let's see an example using `EventPriority`: {id="example"} - ```groovy + ```groovy:no-line-numbers import net.minecraftforge.event.world.BlockEvent.BreakEvent event_manager.listen(EventPriority.HIGHEST) { BreakEvent event -> diff --git a/docs/zh/groovy-script/minecraft/events/init_map_gen_event.md b/docs/zh/groovy-script/minecraft/events/init_map_gen_event.md index 307c285..e8c972f 100644 --- a/docs/zh/groovy-script/minecraft/events/init_map_gen_event.md +++ b/docs/zh/groovy-script/minecraft/events/init_map_gen_event.md @@ -1,24 +1,23 @@ -# InitMapGenEvent +# Init Map Gen Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.InitMapGenEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.InitMapGenEvent$EventType getType() ``` -```groovy +```groovy:no-line-numbers void setNewGen(net.minecraft.world.gen.MapGenBase arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.MapGenBase getOriginalGen() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.MapGenBase getNewGen() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/init_noise_gens_event.md b/docs/zh/groovy-script/minecraft/events/init_noise_gens_event.md index f8925c5..f668f7f 100644 --- a/docs/zh/groovy-script/minecraft/events/init_noise_gens_event.md +++ b/docs/zh/groovy-script/minecraft/events/init_noise_gens_event.md @@ -1,7 +1,7 @@ -# InitNoiseGensEvent +# Init Noise Gens Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.InitNoiseGensEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [WorldEvent](world_event/world_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.InitNoiseGensEvent$Context getNewValues() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.InitNoiseGensEvent$Context getOriginal() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRandom() ``` diff --git a/docs/zh/groovy-script/minecraft/events/item_event.md b/docs/zh/groovy-script/minecraft/events/item_event.md index 12d1b85..2673fff 100644 --- a/docs/zh/groovy-script/minecraft/events/item_event.md +++ b/docs/zh/groovy-script/minecraft/events/item_event.md @@ -1,7 +1,7 @@ -# ItemEvent +# Item Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.item.ItemEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.item.EntityItem getEntityItem() ``` diff --git a/docs/zh/groovy-script/minecraft/events/item_expire_event.md b/docs/zh/groovy-script/minecraft/events/item_expire_event.md index 271ee4a..f177fff 100644 --- a/docs/zh/groovy-script/minecraft/events/item_expire_event.md +++ b/docs/zh/groovy-script/minecraft/events/item_expire_event.md @@ -1,7 +1,7 @@ -# ItemExpireEvent +# Item Expire Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.item.ItemExpireEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [ItemEvent](item_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getExtraLife() ``` -```groovy +```groovy:no-line-numbers void setExtraLife(int arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/item_fished_event.md b/docs/zh/groovy-script/minecraft/events/item_fished_event.md index 34743b1..9a18e61 100644 --- a/docs/zh/groovy-script/minecraft/events/item_fished_event.md +++ b/docs/zh/groovy-script/minecraft/events/item_fished_event.md @@ -1,7 +1,7 @@ -# ItemFishedEvent +# Item Fished Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.ItemFishedEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getRodDamage() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.NonNullList getDrops() ``` -```groovy +```groovy:no-line-numbers void damageRodBy(int arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityFishHook getHookEntity() ``` diff --git a/docs/zh/groovy-script/minecraft/events/item_tooltip_event.md b/docs/zh/groovy-script/minecraft/events/item_tooltip_event.md index 451b59a..6b17e70 100644 --- a/docs/zh/groovy-script/minecraft/events/item_tooltip_event.md +++ b/docs/zh/groovy-script/minecraft/events/item_tooltip_event.md @@ -1,7 +1,7 @@ -# ItemTooltipEvent +# Item Tooltip Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.ItemTooltipEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.client.util.ITooltipFlag getFlags() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getEntityPlayer() ``` -```groovy +```groovy:no-line-numbers java.util.List getToolTip() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemStack() ``` diff --git a/docs/zh/groovy-script/minecraft/events/item_toss_event.md b/docs/zh/groovy-script/minecraft/events/item_toss_event.md index c720fbd..8146fd9 100644 --- a/docs/zh/groovy-script/minecraft/events/item_toss_event.md +++ b/docs/zh/groovy-script/minecraft/events/item_toss_event.md @@ -1,7 +1,7 @@ -# ItemTossEvent +# Item Toss Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.item.ItemTossEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [ItemEvent](item_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_attack_event.md b/docs/zh/groovy-script/minecraft/events/living_attack_event.md index 5ddc2e6..ef64b30 100644 --- a/docs/zh/groovy-script/minecraft/events/living_attack_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_attack_event.md @@ -1,7 +1,7 @@ -# LivingAttackEvent +# Living Attack Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingAttackEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` -```groovy +```groovy:no-line-numbers float getAmount() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_damage_event.md b/docs/zh/groovy-script/minecraft/events/living_damage_event.md index a2d0a88..5dde0f4 100644 --- a/docs/zh/groovy-script/minecraft/events/living_damage_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_damage_event.md @@ -1,7 +1,7 @@ -# LivingDamageEvent +# Living Damage Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingDamageEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` -```groovy +```groovy:no-line-numbers void setAmount(float arg0) ``` -```groovy +```groovy:no-line-numbers float getAmount() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_death_event.md b/docs/zh/groovy-script/minecraft/events/living_death_event.md index a5824fa..b42fbd0 100644 --- a/docs/zh/groovy-script/minecraft/events/living_death_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_death_event.md @@ -1,7 +1,7 @@ -# LivingDeathEvent +# Living Death Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingDeathEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_destroy_block_event.md b/docs/zh/groovy-script/minecraft/events/living_destroy_block_event.md index ce40063..b3f3b7c 100644 --- a/docs/zh/groovy-script/minecraft/events/living_destroy_block_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_destroy_block_event.md @@ -1,7 +1,7 @@ -# LivingDestroyBlockEvent +# Living Destroy Block Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingDestroyBlockEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getState() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_drops_event.md b/docs/zh/groovy-script/minecraft/events/living_drops_event.md index a838e0f..8f3c38f 100644 --- a/docs/zh/groovy-script/minecraft/events/living_drops_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_drops_event.md @@ -1,7 +1,7 @@ -# LivingDropsEvent +# Living Drops Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingDropsEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` -```groovy +```groovy:no-line-numbers java.util.List getDrops() ``` -```groovy +```groovy:no-line-numbers boolean isRecentlyHit() ``` -```groovy +```groovy:no-line-numbers int getLootingLevel() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/finish.md b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/finish.md index 9d229a5..495f431 100644 --- a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/finish.md +++ b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/finish.md @@ -1,7 +1,7 @@ -# LivingEntityUseItemEvent.Finish +# Finish To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Finish ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [LivingEntityUseItemEvent](living_entity_use_item_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getResultStack() ``` -```groovy +```groovy:no-line-numbers void setResultStack(net.minecraft.item.ItemStack arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/living_entity_use_item_event.md b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/living_entity_use_item_event.md index 49e8172..c22511f 100644 --- a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/living_entity_use_item_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/living_entity_use_item_event.md @@ -1,7 +1,7 @@ -# LivingEntityUseItemEvent +# Living Entity Use Item Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getDuration() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItem() ``` -```groovy +```groovy:no-line-numbers void setDuration(int arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/start.md b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/start.md index e88a82a..06e3533 100644 --- a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/start.md +++ b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/start.md @@ -1,7 +1,7 @@ -# LivingEntityUseItemEvent.Start +# Start To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Start ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/stop.md b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/stop.md index a1cc556..95b99df 100644 --- a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/stop.md +++ b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/stop.md @@ -1,7 +1,7 @@ -# LivingEntityUseItemEvent.Stop +# Stop To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Stop ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/tick.md b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/tick.md index 468239a..aec01bd 100644 --- a/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/tick.md +++ b/docs/zh/groovy-script/minecraft/events/living_entity_use_item_event/tick.md @@ -1,7 +1,7 @@ -# LivingEntityUseItemEvent.Tick +# Tick To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEntityUseItemEvent.Tick ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_equipment_change_event.md b/docs/zh/groovy-script/minecraft/events/living_equipment_change_event.md index 7cf49c3..2ea45aa 100644 --- a/docs/zh/groovy-script/minecraft/events/living_equipment_change_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_equipment_change_event.md @@ -1,7 +1,7 @@ -# LivingEquipmentChangeEvent +# Living Equipment Change Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEquipmentChangeEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.inventory.EntityEquipmentSlot getSlot() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getTo() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getFrom() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_event/living_event.md b/docs/zh/groovy-script/minecraft/events/living_event/living_event.md index c2ee665..8c928e3 100644 --- a/docs/zh/groovy-script/minecraft/events/living_event/living_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_event/living_event.md @@ -1,7 +1,7 @@ -# LivingEvent +# Living Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLivingBase getEntityLiving() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_event/living_jump_event.md b/docs/zh/groovy-script/minecraft/events/living_event/living_jump_event.md index 63afaf1..51a6403 100644 --- a/docs/zh/groovy-script/minecraft/events/living_event/living_jump_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_event/living_jump_event.md @@ -1,7 +1,7 @@ -# LivingEvent.LivingJumpEvent +# Living Jump Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEvent.LivingJumpEvent ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_event/living_update_event.md b/docs/zh/groovy-script/minecraft/events/living_event/living_update_event.md index d42187d..972478a 100644 --- a/docs/zh/groovy-script/minecraft/events/living_event/living_update_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_event/living_update_event.md @@ -1,7 +1,7 @@ -# LivingEvent.LivingUpdateEvent +# Living Update Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_experience_drop_event.md b/docs/zh/groovy-script/minecraft/events/living_experience_drop_event.md index 8638fc4..6c00695 100644 --- a/docs/zh/groovy-script/minecraft/events/living_experience_drop_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_experience_drop_event.md @@ -1,7 +1,7 @@ -# LivingExperienceDropEvent +# Living Experience Drop Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingExperienceDropEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getDroppedExperience() ``` -```groovy +```groovy:no-line-numbers void setDroppedExperience(int arg0) ``` -```groovy +```groovy:no-line-numbers int getOriginalExperience() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getAttackingPlayer() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_fall_event.md b/docs/zh/groovy-script/minecraft/events/living_fall_event.md index 63a2845..636b099 100644 --- a/docs/zh/groovy-script/minecraft/events/living_fall_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_fall_event.md @@ -1,7 +1,7 @@ -# LivingFallEvent +# Living Fall Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingFallEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers float getDamageMultiplier() ``` -```groovy +```groovy:no-line-numbers void setDamageMultiplier(float arg0) ``` -```groovy +```groovy:no-line-numbers void setDistance(float arg0) ``` -```groovy +```groovy:no-line-numbers float getDistance() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_heal_event.md b/docs/zh/groovy-script/minecraft/events/living_heal_event.md index 15b34b4..d8beeca 100644 --- a/docs/zh/groovy-script/minecraft/events/living_heal_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_heal_event.md @@ -1,7 +1,7 @@ -# LivingHealEvent +# Living Heal Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingHealEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers void setAmount(float arg0) ``` -```groovy +```groovy:no-line-numbers float getAmount() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_hurt_event.md b/docs/zh/groovy-script/minecraft/events/living_hurt_event.md index c9cc394..8ac8031 100644 --- a/docs/zh/groovy-script/minecraft/events/living_hurt_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_hurt_event.md @@ -1,7 +1,7 @@ -# LivingHurtEvent +# Living Hurt Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingHurtEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getSource() ``` -```groovy +```groovy:no-line-numbers void setAmount(float arg0) ``` -```groovy +```groovy:no-line-numbers float getAmount() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_knock_back_event.md b/docs/zh/groovy-script/minecraft/events/living_knock_back_event.md index 5f39a4f..5d5bd73 100644 --- a/docs/zh/groovy-script/minecraft/events/living_knock_back_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_knock_back_event.md @@ -1,7 +1,7 @@ -# LivingKnockBackEvent +# Living Knock Back Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingKnockBackEvent ``` @@ -10,50 +10,50 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getOriginalAttacker() ``` -```groovy +```groovy:no-line-numbers double getOriginalRatioX() ``` -```groovy +```groovy:no-line-numbers double getOriginalRatioZ() ``` -```groovy +```groovy:no-line-numbers float getOriginalStrength() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getAttacker() ``` -```groovy +```groovy:no-line-numbers float getStrength() ``` -```groovy +```groovy:no-line-numbers double getRatioX() ``` -```groovy +```groovy:no-line-numbers double getRatioZ() ``` -```groovy +```groovy:no-line-numbers void setStrength(float arg0) ``` -```groovy +```groovy:no-line-numbers void setAttacker(net.minecraft.entity.Entity arg0) ``` -```groovy +```groovy:no-line-numbers void setRatioZ(double arg0) ``` -```groovy +```groovy:no-line-numbers void setRatioX(double arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_pack_size_event.md b/docs/zh/groovy-script/minecraft/events/living_pack_size_event.md index a989935..9f16740 100644 --- a/docs/zh/groovy-script/minecraft/events/living_pack_size_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_pack_size_event.md @@ -1,7 +1,7 @@ -# LivingPackSizeEvent +# Living Pack Size Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingPackSizeEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers int getMaxPackSize() ``` -```groovy +```groovy:no-line-numbers void setMaxPackSize(int arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_set_attack_target_event.md b/docs/zh/groovy-script/minecraft/events/living_set_attack_target_event.md index e0b626a..99877e7 100644 --- a/docs/zh/groovy-script/minecraft/events/living_set_attack_target_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_set_attack_target_event.md @@ -1,7 +1,7 @@ -# LivingSetAttackTargetEvent +# Living Set Attack Target Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSetAttackTargetEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLivingBase getTarget() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_spawn_event/allow_despawn.md b/docs/zh/groovy-script/minecraft/events/living_spawn_event/allow_despawn.md index b44a361..a61090e 100644 --- a/docs/zh/groovy-script/minecraft/events/living_spawn_event/allow_despawn.md +++ b/docs/zh/groovy-script/minecraft/events/living_spawn_event/allow_despawn.md @@ -1,7 +1,7 @@ -# LivingSpawnEvent.AllowDespawn +# Allow Despawn To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSpawnEvent.AllowDespawn ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [LivingSpawnEvent](living_spawn_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_spawn_event/check_spawn.md b/docs/zh/groovy-script/minecraft/events/living_spawn_event/check_spawn.md index 68317d3..19a436d 100644 --- a/docs/zh/groovy-script/minecraft/events/living_spawn_event/check_spawn.md +++ b/docs/zh/groovy-script/minecraft/events/living_spawn_event/check_spawn.md @@ -1,7 +1,7 @@ -# LivingSpawnEvent.CheckSpawn +# Check Spawn To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSpawnEvent.CheckSpawn ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [LivingSpawnEvent](living_spawn_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers boolean isSpawner() ``` -```groovy +```groovy:no-line-numbers net.minecraft.tileentity.MobSpawnerBaseLogic getSpawner() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_spawn_event/living_spawn_event.md b/docs/zh/groovy-script/minecraft/events/living_spawn_event/living_spawn_event.md index 51e8c76..56709c4 100644 --- a/docs/zh/groovy-script/minecraft/events/living_spawn_event/living_spawn_event.md +++ b/docs/zh/groovy-script/minecraft/events/living_spawn_event/living_spawn_event.md @@ -1,7 +1,7 @@ -# LivingSpawnEvent +# Living Spawn Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSpawnEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers float getY() ``` -```groovy +```groovy:no-line-numbers float getX() ``` -```groovy +```groovy:no-line-numbers float getZ() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` diff --git a/docs/zh/groovy-script/minecraft/events/living_spawn_event/special_spawn.md b/docs/zh/groovy-script/minecraft/events/living_spawn_event/special_spawn.md index f20f9b1..dd2e016 100644 --- a/docs/zh/groovy-script/minecraft/events/living_spawn_event/special_spawn.md +++ b/docs/zh/groovy-script/minecraft/events/living_spawn_event/special_spawn.md @@ -1,7 +1,7 @@ -# LivingSpawnEvent.SpecialSpawn +# Special Spawn To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LivingSpawnEvent.SpecialSpawn ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [LivingSpawnEvent](living_spawn_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.tileentity.MobSpawnerBaseLogic getSpawner() ``` diff --git a/docs/zh/groovy-script/minecraft/events/loot_table_load_event.md b/docs/zh/groovy-script/minecraft/events/loot_table_load_event.md index 6e56648..99837d5 100644 --- a/docs/zh/groovy-script/minecraft/events/loot_table_load_event.md +++ b/docs/zh/groovy-script/minecraft/events/loot_table_load_event.md @@ -1,24 +1,23 @@ -# LootTableLoadEvent +# Loot Table Load Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.LootTableLoadEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.ResourceLocation getName() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.storage.loot.LootTable getTable() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.storage.loot.LootTableManager getLootTableManager() ``` -```groovy +```groovy:no-line-numbers void setTable(net.minecraft.world.storage.loot.LootTable arg0) ``` - diff --git a/docs/zh/groovy-script/minecraft/events/looting_level_event.md b/docs/zh/groovy-script/minecraft/events/looting_level_event.md index 9d2c300..9fd567e 100644 --- a/docs/zh/groovy-script/minecraft/events/looting_level_event.md +++ b/docs/zh/groovy-script/minecraft/events/looting_level_event.md @@ -1,7 +1,7 @@ -# LootingLevelEvent +# Looting Level Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.LootingLevelEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.DamageSource getDamageSource() ``` -```groovy +```groovy:no-line-numbers void setLootingLevel(int arg0) ``` -```groovy +```groovy:no-line-numbers int getLootingLevel() ``` diff --git a/docs/zh/groovy-script/minecraft/events/merchant_trade_offers_event.md b/docs/zh/groovy-script/minecraft/events/merchant_trade_offers_event.md index e8bd465..e3ef1ad 100644 --- a/docs/zh/groovy-script/minecraft/events/merchant_trade_offers_event.md +++ b/docs/zh/groovy-script/minecraft/events/merchant_trade_offers_event.md @@ -1,24 +1,23 @@ -# MerchantTradeOffersEvent +# Merchant Trade Offers Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.village.MerchantTradeOffersEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.village.MerchantRecipeList getList() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.IMerchant getMerchant() ``` -```groovy +```groovy:no-line-numbers void setList(net.minecraft.village.MerchantRecipeList arg0) ``` - diff --git a/docs/zh/groovy-script/minecraft/events/minecart_collision_event.md b/docs/zh/groovy-script/minecraft/events/minecart_collision_event.md index cfb0ccf..1c074e3 100644 --- a/docs/zh/groovy-script/minecraft/events/minecart_collision_event.md +++ b/docs/zh/groovy-script/minecraft/events/minecart_collision_event.md @@ -1,7 +1,7 @@ -# MinecartCollisionEvent +# Minecart Collision Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.minecart.MinecartCollisionEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [MinecartEvent](minecart_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getCollider() ``` diff --git a/docs/zh/groovy-script/minecraft/events/minecart_event.md b/docs/zh/groovy-script/minecraft/events/minecart_event.md index 7e72abb..6d37eab 100644 --- a/docs/zh/groovy-script/minecraft/events/minecart_event.md +++ b/docs/zh/groovy-script/minecraft/events/minecart_event.md @@ -1,7 +1,7 @@ -# MinecartEvent +# Minecart Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.minecart.MinecartEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.item.EntityMinecart getMinecart() ``` diff --git a/docs/zh/groovy-script/minecraft/events/minecart_interact_event.md b/docs/zh/groovy-script/minecraft/events/minecart_interact_event.md index 8ecec45..c3f43fa 100644 --- a/docs/zh/groovy-script/minecraft/events/minecart_interact_event.md +++ b/docs/zh/groovy-script/minecraft/events/minecart_interact_event.md @@ -1,7 +1,7 @@ -# MinecartInteractEvent +# Minecart Interact Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.minecart.MinecartInteractEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [MinecartEvent](minecart_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItem() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` diff --git a/docs/zh/groovy-script/minecraft/events/minecart_update_event.md b/docs/zh/groovy-script/minecraft/events/minecart_update_event.md index fb03040..d436ad1 100644 --- a/docs/zh/groovy-script/minecraft/events/minecart_update_event.md +++ b/docs/zh/groovy-script/minecraft/events/minecart_update_event.md @@ -1,7 +1,7 @@ -# MinecartUpdateEvent +# Minecart Update Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.minecart.MinecartUpdateEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [MinecartEvent](minecart_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` diff --git a/docs/zh/groovy-script/minecraft/events/note_block_event/change.md b/docs/zh/groovy-script/minecraft/events/note_block_event/change.md index 64ad94d..7d7b9ec 100644 --- a/docs/zh/groovy-script/minecraft/events/note_block_event/change.md +++ b/docs/zh/groovy-script/minecraft/events/note_block_event/change.md @@ -1,7 +1,7 @@ -# NoteBlockEvent.Change +# Change To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.NoteBlockEvent.Change ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [NoteBlockEvent](note_block_event.md), [BlockEvent](../block_event/block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Note getOldNote() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Octave getOldOctave() ``` diff --git a/docs/zh/groovy-script/minecraft/events/note_block_event/note_block_event.md b/docs/zh/groovy-script/minecraft/events/note_block_event/note_block_event.md index 0148ee2..1d552d6 100644 --- a/docs/zh/groovy-script/minecraft/events/note_block_event/note_block_event.md +++ b/docs/zh/groovy-script/minecraft/events/note_block_event/note_block_event.md @@ -1,7 +1,7 @@ -# NoteBlockEvent +# Note Block Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.NoteBlockEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [BlockEvent](../block_event/block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Note getNote() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Octave getOctave() ``` -```groovy +```groovy:no-line-numbers int getVanillaNoteId() ``` -```groovy +```groovy:no-line-numbers void setNote(net.minecraftforge.event.world.NoteBlockEvent$Note arg0, net.minecraftforge.event.world.NoteBlockEvent$Octave arg1) ``` diff --git a/docs/zh/groovy-script/minecraft/events/note_block_event/play.md b/docs/zh/groovy-script/minecraft/events/note_block_event/play.md index 5fb7976..d4c75fd 100644 --- a/docs/zh/groovy-script/minecraft/events/note_block_event/play.md +++ b/docs/zh/groovy-script/minecraft/events/note_block_event/play.md @@ -1,7 +1,7 @@ -# NoteBlockEvent.Play +# Play To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.NoteBlockEvent.Play ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [NoteBlockEvent](note_block_event.md), [BlockEvent](../block_event/block_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.world.NoteBlockEvent$Instrument getInstrument() ``` -```groovy +```groovy:no-line-numbers void setInstrument(net.minecraftforge.event.world.NoteBlockEvent$Instrument arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/ore_gen_event/generate_minable.md b/docs/zh/groovy-script/minecraft/events/ore_gen_event/generate_minable.md index 8093800..cd3b7e3 100644 --- a/docs/zh/groovy-script/minecraft/events/ore_gen_event/generate_minable.md +++ b/docs/zh/groovy-script/minecraft/events/ore_gen_event/generate_minable.md @@ -1,7 +1,7 @@ -# OreGenEvent.GenerateMinable +# Generate Minable To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable ``` @@ -10,15 +10,14 @@ This event extends the following events and can use all their methods and fields [OreGenEvent](ore_gen_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.OreGenEvent$GenerateMinable$EventType getType() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.gen.feature.WorldGenerator getGenerator() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/ore_gen_event/ore_gen_event.md b/docs/zh/groovy-script/minecraft/events/ore_gen_event/ore_gen_event.md index 8427399..c49cc7c 100644 --- a/docs/zh/groovy-script/minecraft/events/ore_gen_event/ore_gen_event.md +++ b/docs/zh/groovy-script/minecraft/events/ore_gen_event/ore_gen_event.md @@ -1,27 +1,27 @@ -# OreGenEvent +# Ore Gen Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.OreGenEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRand() ``` -# OreGenEvent.Pre +# Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.OreGenEvent.Pre ``` @@ -30,10 +30,10 @@ This event extends the following events and can use all their methods and fields [OreGenEvent](ore_gen_event.md) ## Methods -# OreGenEvent.Post +# Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.OreGenEvent.Post ``` diff --git a/docs/zh/groovy-script/minecraft/events/play_sound_at_entity_event.md b/docs/zh/groovy-script/minecraft/events/play_sound_at_entity_event.md index cc21169..2fab61b 100644 --- a/docs/zh/groovy-script/minecraft/events/play_sound_at_entity_event.md +++ b/docs/zh/groovy-script/minecraft/events/play_sound_at_entity_event.md @@ -1,7 +1,7 @@ -# PlaySoundAtEntityEvent +# Play Sound At Entity Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.PlaySoundAtEntityEvent ``` @@ -10,42 +10,42 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers void setCategory(net.minecraft.util.SoundCategory arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.SoundCategory getCategory() ``` -```groovy +```groovy:no-line-numbers float getVolume() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.SoundEvent getSound() ``` -```groovy +```groovy:no-line-numbers float getPitch() ``` -```groovy +```groovy:no-line-numbers void setPitch(float arg0) ``` -```groovy +```groovy:no-line-numbers void setVolume(float arg0) ``` -```groovy +```groovy:no-line-numbers float getDefaultPitch() ``` -```groovy +```groovy:no-line-numbers void setSound(net.minecraft.util.SoundEvent arg0) ``` -```groovy +```groovy:no-line-numbers float getDefaultVolume() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_brewed_potion_event.md b/docs/zh/groovy-script/minecraft/events/player_brewed_potion_event.md index a08c4b8..a3ba5e0 100644 --- a/docs/zh/groovy-script/minecraft/events/player_brewed_potion_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_brewed_potion_event.md @@ -1,7 +1,7 @@ -# PlayerBrewedPotionEvent +# Player Brewed Potion Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.brewing.PlayerBrewedPotionEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getStack() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_container_event/close.md b/docs/zh/groovy-script/minecraft/events/player_container_event/close.md index e45adc9..762e400 100644 --- a/docs/zh/groovy-script/minecraft/events/player_container_event/close.md +++ b/docs/zh/groovy-script/minecraft/events/player_container_event/close.md @@ -1,7 +1,7 @@ -# PlayerContainerEvent.Close +# Close To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerContainerEvent.Close ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_container_event/open.md b/docs/zh/groovy-script/minecraft/events/player_container_event/open.md index 18409f8..a6c3750 100644 --- a/docs/zh/groovy-script/minecraft/events/player_container_event/open.md +++ b/docs/zh/groovy-script/minecraft/events/player_container_event/open.md @@ -1,7 +1,7 @@ -# PlayerContainerEvent.Open +# Open To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerContainerEvent.Open ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_container_event/player_container_event.md b/docs/zh/groovy-script/minecraft/events/player_container_event/player_container_event.md index f8f4743..0c44a67 100644 --- a/docs/zh/groovy-script/minecraft/events/player_container_event/player_container_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_container_event/player_container_event.md @@ -1,7 +1,7 @@ -# PlayerContainerEvent +# Player Container Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerContainerEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.inventory.Container getContainer() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_destroy_item_event.md b/docs/zh/groovy-script/minecraft/events/player_destroy_item_event.md index b4560f8..4cd0432 100644 --- a/docs/zh/groovy-script/minecraft/events/player_destroy_item_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_destroy_item_event.md @@ -1,7 +1,7 @@ -# PlayerDestroyItemEvent +# Player Destroy Item Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerDestroyItemEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getOriginal() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_drops_event.md b/docs/zh/groovy-script/minecraft/events/player_drops_event.md index 411b388..292db1d 100644 --- a/docs/zh/groovy-script/minecraft/events/player_drops_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_drops_event.md @@ -1,7 +1,7 @@ -# PlayerDropsEvent +# Player Drops Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerDropsEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [LivingDropsEvent](living_drops_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getEntityPlayer() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/break_speed.md b/docs/zh/groovy-script/minecraft/events/player_event/break_speed.md index 364f8a4..944bc4b 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/break_speed.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/break_speed.md @@ -1,7 +1,7 @@ -# PlayerEvent.BreakSpeed +# Break Speed To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.BreakSpeed ``` @@ -10,22 +10,22 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getState() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers float getNewSpeed() ``` -```groovy +```groovy:no-line-numbers void setNewSpeed(float arg0) ``` -```groovy +```groovy:no-line-numbers float getOriginalSpeed() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/clone.md b/docs/zh/groovy-script/minecraft/events/player_event/clone.md index a94cd95..ceb8261 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/clone.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/clone.md @@ -1,7 +1,7 @@ -# PlayerEvent.Clone +# Clone To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.Clone ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getOriginal() ``` -```groovy +```groovy:no-line-numbers boolean isWasDeath() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/harvest_check.md b/docs/zh/groovy-script/minecraft/events/player_event/harvest_check.md index 5da2f93..4106f9f 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/harvest_check.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/harvest_check.md @@ -1,7 +1,7 @@ -# PlayerEvent.HarvestCheck +# Harvest Check To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.HarvestCheck ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean canHarvest() ``` -```groovy +```groovy:no-line-numbers net.minecraft.block.state.IBlockState getTargetBlock() ``` -```groovy +```groovy:no-line-numbers void setCanHarvest(boolean arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/load_from_file.md b/docs/zh/groovy-script/minecraft/events/player_event/load_from_file.md index b419486..13ec431 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/load_from_file.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/load_from_file.md @@ -1,7 +1,7 @@ -# PlayerEvent.LoadFromFile +# Load From File To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.LoadFromFile ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers java.io.File getPlayerDirectory() ``` -```groovy +```groovy:no-line-numbers java.lang.String getPlayerUUID() ``` -```groovy +```groovy:no-line-numbers java.io.File getPlayerFile(java.lang.String arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/name_format.md b/docs/zh/groovy-script/minecraft/events/player_event/name_format.md index e9ac1d7..15d2752 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/name_format.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/name_format.md @@ -1,7 +1,7 @@ -# PlayerEvent.NameFormat +# Name Format To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.NameFormat ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers java.lang.String getUsername() ``` -```groovy +```groovy:no-line-numbers java.lang.String getDisplayname() ``` -```groovy +```groovy:no-line-numbers void setDisplayname(java.lang.String arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/player_event.md b/docs/zh/groovy-script/minecraft/events/player_event/player_event.md index 5422cbb..26bacc6 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/player_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/player_event.md @@ -1,7 +1,7 @@ -# PlayerEvent +# Player Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getEntityPlayer() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/save_to_file.md b/docs/zh/groovy-script/minecraft/events/player_event/save_to_file.md index 1f7a553..9655bc0 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/save_to_file.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/save_to_file.md @@ -1,7 +1,7 @@ -# PlayerEvent.SaveToFile +# Save To File To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.SaveToFile ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers java.io.File getPlayerDirectory() ``` -```groovy +```groovy:no-line-numbers java.lang.String getPlayerUUID() ``` -```groovy +```groovy:no-line-numbers java.io.File getPlayerFile(java.lang.String arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/start_tracking.md b/docs/zh/groovy-script/minecraft/events/player_event/start_tracking.md index a0c34d0..690f33d 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/start_tracking.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/start_tracking.md @@ -1,7 +1,7 @@ -# PlayerEvent.StartTracking +# Start Tracking To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.StartTracking ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/stop_tracking.md b/docs/zh/groovy-script/minecraft/events/player_event/stop_tracking.md index 80c7a5e..28de5be 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/stop_tracking.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/stop_tracking.md @@ -1,7 +1,7 @@ -# PlayerEvent.StopTracking +# Stop Tracking To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.StopTracking ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_event/visibility.md b/docs/zh/groovy-script/minecraft/events/player_event/visibility.md index ee346c2..f2b0260 100644 --- a/docs/zh/groovy-script/minecraft/events/player_event/visibility.md +++ b/docs/zh/groovy-script/minecraft/events/player_event/visibility.md @@ -1,7 +1,7 @@ -# PlayerEvent.Visibility +# Visibility To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerEvent.Visibility ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers double getVisibilityModifier() ``` -```groovy +```groovy:no-line-numbers void modifyVisibility(double arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_flyable_fall_event.md b/docs/zh/groovy-script/minecraft/events/player_flyable_fall_event.md index 1b694e7..4fd6cbc 100644 --- a/docs/zh/groovy-script/minecraft/events/player_flyable_fall_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_flyable_fall_event.md @@ -1,7 +1,7 @@ -# PlayerFlyableFallEvent +# Player Flyable Fall Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerFlyableFallEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers float getMultiplier() ``` -```groovy +```groovy:no-line-numbers void setMultiplier(float arg0) ``` -```groovy +```groovy:no-line-numbers void setDistance(float arg0) ``` -```groovy +```groovy:no-line-numbers float getDistance() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_interact_event/entity_interact.md b/docs/zh/groovy-script/minecraft/events/player_interact_event/entity_interact.md index 15caa17..1eb1b2c 100644 --- a/docs/zh/groovy-script/minecraft/events/player_interact_event/entity_interact.md +++ b/docs/zh/groovy-script/minecraft/events/player_interact_event/entity_interact.md @@ -1,7 +1,7 @@ -# PlayerInteractEvent.EntityInteract +# Entity Interact To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.EntityInteract ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_interact_event/entity_interact_specific.md b/docs/zh/groovy-script/minecraft/events/player_interact_event/entity_interact_specific.md index 44598e7..a8bb723 100644 --- a/docs/zh/groovy-script/minecraft/events/player_interact_event/entity_interact_specific.md +++ b/docs/zh/groovy-script/minecraft/events/player_interact_event/entity_interact_specific.md @@ -1,7 +1,7 @@ -# PlayerInteractEvent.EntityInteractSpecific +# Entity Interact Specific To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.EntityInteractSpecific ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.Entity getTarget() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.Vec3d getLocalPos() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_interact_event/left_click_block.md b/docs/zh/groovy-script/minecraft/events/player_interact_event/left_click_block.md index e5a563c..82d1ebe 100644 --- a/docs/zh/groovy-script/minecraft/events/player_interact_event/left_click_block.md +++ b/docs/zh/groovy-script/minecraft/events/player_interact_event/left_click_block.md @@ -1,7 +1,7 @@ -# PlayerInteractEvent.LeftClickBlock +# Left Click Block To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.LeftClickBlock ``` @@ -10,26 +10,26 @@ This event extends the following events and can use all their methods and fields [PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers void setCanceled(boolean arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.common.eventhandler.Event$Result getUseItem() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.Vec3d getHitVec() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.common.eventhandler.Event$Result getUseBlock() ``` -```groovy +```groovy:no-line-numbers void setUseBlock(net.minecraftforge.fml.common.eventhandler.Event$Result arg0) ``` -```groovy +```groovy:no-line-numbers void setUseItem(net.minecraftforge.fml.common.eventhandler.Event$Result arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_interact_event/left_click_empty.md b/docs/zh/groovy-script/minecraft/events/player_interact_event/left_click_empty.md index d660cec..6cbe554 100644 --- a/docs/zh/groovy-script/minecraft/events/player_interact_event/left_click_empty.md +++ b/docs/zh/groovy-script/minecraft/events/player_interact_event/left_click_empty.md @@ -1,7 +1,7 @@ -# PlayerInteractEvent.LeftClickEmpty +# Left Click Empty To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.LeftClickEmpty ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_interact_event/player_interact_event.md b/docs/zh/groovy-script/minecraft/events/player_interact_event/player_interact_event.md index c87b40e..23170a9 100644 --- a/docs/zh/groovy-script/minecraft/events/player_interact_event/player_interact_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_interact_event/player_interact_event.md @@ -1,7 +1,7 @@ -# PlayerInteractEvent +# Player Interact Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent ``` @@ -10,34 +10,34 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.relauncher.Side getSide() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumHand getHand() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumActionResult getCancellationResult() ``` -```groovy +```groovy:no-line-numbers void setCancellationResult(net.minecraft.util.EnumActionResult arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItemStack() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.EnumFacing getFace() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_block.md b/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_block.md index b81a65e..8fa9316 100644 --- a/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_block.md +++ b/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_block.md @@ -1,7 +1,7 @@ -# PlayerInteractEvent.RightClickBlock +# Right Click Block To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock ``` @@ -10,26 +10,26 @@ This event extends the following events and can use all their methods and fields [PlayerInteractEvent](player_interact_event.md), [PlayerEvent](../player_event/player_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers void setCanceled(boolean arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.common.eventhandler.Event$Result getUseItem() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.Vec3d getHitVec() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.fml.common.eventhandler.Event$Result getUseBlock() ``` -```groovy +```groovy:no-line-numbers void setUseBlock(net.minecraftforge.fml.common.eventhandler.Event$Result arg0) ``` -```groovy +```groovy:no-line-numbers void setUseItem(net.minecraftforge.fml.common.eventhandler.Event$Result arg0) ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_empty.md b/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_empty.md index 5627c44..c759390 100644 --- a/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_empty.md +++ b/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_empty.md @@ -1,7 +1,7 @@ -# PlayerInteractEvent.RightClickEmpty +# Right Click Empty To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickEmpty ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_item.md b/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_item.md index 12073a1..4ae2164 100644 --- a/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_item.md +++ b/docs/zh/groovy-script/minecraft/events/player_interact_event/right_click_item.md @@ -1,7 +1,7 @@ -# PlayerInteractEvent.RightClickItem +# Right Click Item To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickItem ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_pickup_xp_event.md b/docs/zh/groovy-script/minecraft/events/player_pickup_xp_event.md index e16b946..0df3570 100644 --- a/docs/zh/groovy-script/minecraft/events/player_pickup_xp_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_pickup_xp_event.md @@ -1,7 +1,7 @@ -# PlayerPickupXpEvent +# Player Pickup Xp Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerPickupXpEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.item.EntityXPOrb getOrb() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_set_spawn_event.md b/docs/zh/groovy-script/minecraft/events/player_set_spawn_event.md index 3e64c72..7601b60 100644 --- a/docs/zh/groovy-script/minecraft/events/player_set_spawn_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_set_spawn_event.md @@ -1,7 +1,7 @@ -# PlayerSetSpawnEvent +# Player Set Spawn Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerSetSpawnEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean isForced() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getNewSpawn() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_sleep_in_bed_event.md b/docs/zh/groovy-script/minecraft/events/player_sleep_in_bed_event.md index 315ff84..ba82f23 100644 --- a/docs/zh/groovy-script/minecraft/events/player_sleep_in_bed_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_sleep_in_bed_event.md @@ -1,7 +1,7 @@ -# PlayerSleepInBedEvent +# Player Sleep In Bed Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerSleepInBedEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers void setResult(net.minecraft.entity.player.EntityPlayer$SleepResult arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer$SleepResult getResultStatus() ``` diff --git a/docs/zh/groovy-script/minecraft/events/player_wake_up_event.md b/docs/zh/groovy-script/minecraft/events/player_wake_up_event.md index f77ca0b..c4e3ec6 100644 --- a/docs/zh/groovy-script/minecraft/events/player_wake_up_event.md +++ b/docs/zh/groovy-script/minecraft/events/player_wake_up_event.md @@ -1,7 +1,7 @@ -# PlayerWakeUpEvent +# Player Wake Up Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.PlayerWakeUpEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean wakeImmediately() ``` -```groovy +```groovy:no-line-numbers boolean shouldSetSpawn() ``` -```groovy +```groovy:no-line-numbers boolean updateWorld() ``` diff --git a/docs/zh/groovy-script/minecraft/events/populate_chunk_event/populate.md b/docs/zh/groovy-script/minecraft/events/populate_chunk_event/populate.md index 9223015..eff75a3 100644 --- a/docs/zh/groovy-script/minecraft/events/populate_chunk_event/populate.md +++ b/docs/zh/groovy-script/minecraft/events/populate_chunk_event/populate.md @@ -1,7 +1,7 @@ -# PopulateChunkEvent.Populate +# Populate To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.PopulateChunkEvent.Populate ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PopulateChunkEvent](populate_chunk_event.md), [ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraftforge.event.terraingen.PopulateChunkEvent$Populate$EventType getType() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` diff --git a/docs/zh/groovy-script/minecraft/events/populate_chunk_event/populate_chunk_event.md b/docs/zh/groovy-script/minecraft/events/populate_chunk_event/populate_chunk_event.md index fab13fb..64940b0 100644 --- a/docs/zh/groovy-script/minecraft/events/populate_chunk_event/populate_chunk_event.md +++ b/docs/zh/groovy-script/minecraft/events/populate_chunk_event/populate_chunk_event.md @@ -1,7 +1,7 @@ -# PopulateChunkEvent +# Populate Chunk Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.PopulateChunkEvent ``` @@ -10,30 +10,30 @@ This event extends the following events and can use all their methods and fields [ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean isHasVillageGenerated() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers int getChunkZ() ``` -```groovy +```groovy:no-line-numbers int getChunkX() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRand() ``` -# PopulateChunkEvent.Pre +# Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.PopulateChunkEvent.Pre ``` @@ -42,10 +42,10 @@ This event extends the following events and can use all their methods and fields [PopulateChunkEvent](populate_chunk_event.md), [ChunkGeneratorEvent](../chunk_generator_event/chunk_generator_event.md) ## Methods -# PopulateChunkEvent.Post +# Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.PopulateChunkEvent.Post ``` diff --git a/docs/zh/groovy-script/minecraft/events/potion_brew_event.md b/docs/zh/groovy-script/minecraft/events/potion_brew_event.md index 8929ad0..7b2c164 100644 --- a/docs/zh/groovy-script/minecraft/events/potion_brew_event.md +++ b/docs/zh/groovy-script/minecraft/events/potion_brew_event.md @@ -1,27 +1,27 @@ -# PotionBrewEvent +# Potion Brew Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.brewing.PotionBrewEvent ``` ## Methods -```groovy +```groovy:no-line-numbers int getLength() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getItem(int arg0) ``` -```groovy +```groovy:no-line-numbers void setItem(int arg0, net.minecraft.item.ItemStack arg1) ``` -# PotionBrewEvent.Pre +# Pre To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.brewing.PotionBrewEvent.Pre ``` @@ -30,10 +30,10 @@ This event extends the following events and can use all their methods and fields [PotionBrewEvent](potion_brew_event.md) ## Methods -# PotionBrewEvent.Post +# Post To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.brewing.PotionBrewEvent.Post ``` diff --git a/docs/zh/groovy-script/minecraft/events/potion_color_calculation_event.md b/docs/zh/groovy-script/minecraft/events/potion_color_calculation_event.md index 0888e0e..0a694d7 100644 --- a/docs/zh/groovy-script/minecraft/events/potion_color_calculation_event.md +++ b/docs/zh/groovy-script/minecraft/events/potion_color_calculation_event.md @@ -1,7 +1,7 @@ -# PotionColorCalculationEvent +# Potion Color Calculation Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionColorCalculationEvent ``` @@ -10,22 +10,22 @@ This event extends the following events and can use all their methods and fields [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers void setColor(int arg0) ``` -```groovy +```groovy:no-line-numbers void shouldHideParticles(boolean arg0) ``` -```groovy +```groovy:no-line-numbers boolean areParticlesHidden() ``` -```groovy +```groovy:no-line-numbers int getColor() ``` -```groovy +```groovy:no-line-numbers java.util.Collection getEffects() ``` diff --git a/docs/zh/groovy-script/minecraft/events/potion_event/potion_added_event.md b/docs/zh/groovy-script/minecraft/events/potion_event/potion_added_event.md index d51e041..618c051 100644 --- a/docs/zh/groovy-script/minecraft/events/potion_event/potion_added_event.md +++ b/docs/zh/groovy-script/minecraft/events/potion_event/potion_added_event.md @@ -1,7 +1,7 @@ -# PotionEvent.PotionAddedEvent +# Potion Added Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent.PotionAddedEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PotionEvent](potion_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getOldPotionEffect() ``` -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getPotionEffect() ``` diff --git a/docs/zh/groovy-script/minecraft/events/potion_event/potion_applicable_event.md b/docs/zh/groovy-script/minecraft/events/potion_event/potion_applicable_event.md index 194f18c..ee520fd 100644 --- a/docs/zh/groovy-script/minecraft/events/potion_event/potion_applicable_event.md +++ b/docs/zh/groovy-script/minecraft/events/potion_event/potion_applicable_event.md @@ -1,7 +1,7 @@ -# PotionEvent.PotionApplicableEvent +# Potion Applicable Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent.PotionApplicableEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PotionEvent](potion_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getPotionEffect() ``` diff --git a/docs/zh/groovy-script/minecraft/events/potion_event/potion_event.md b/docs/zh/groovy-script/minecraft/events/potion_event/potion_event.md index 666e9f2..faa5bca 100644 --- a/docs/zh/groovy-script/minecraft/events/potion_event/potion_event.md +++ b/docs/zh/groovy-script/minecraft/events/potion_event/potion_event.md @@ -1,7 +1,7 @@ -# PotionEvent +# Potion Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getPotionEffect() ``` diff --git a/docs/zh/groovy-script/minecraft/events/potion_event/potion_expiry_event.md b/docs/zh/groovy-script/minecraft/events/potion_event/potion_expiry_event.md index 3adfc38..a73915a 100644 --- a/docs/zh/groovy-script/minecraft/events/potion_event/potion_expiry_event.md +++ b/docs/zh/groovy-script/minecraft/events/potion_event/potion_expiry_event.md @@ -1,7 +1,7 @@ -# PotionEvent.PotionExpiryEvent +# Potion Expiry Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent.PotionExpiryEvent ``` diff --git a/docs/zh/groovy-script/minecraft/events/potion_event/potion_remove_event.md b/docs/zh/groovy-script/minecraft/events/potion_event/potion_remove_event.md index b867401..5fd036a 100644 --- a/docs/zh/groovy-script/minecraft/events/potion_event/potion_remove_event.md +++ b/docs/zh/groovy-script/minecraft/events/potion_event/potion_remove_event.md @@ -1,7 +1,7 @@ -# PotionEvent.PotionRemoveEvent +# Potion Remove Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.PotionEvent.PotionRemoveEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PotionEvent](potion_event.md), [LivingEvent](../living_event/living_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.potion.Potion getPotion() ``` -```groovy +```groovy:no-line-numbers net.minecraft.potion.PotionEffect getPotionEffect() ``` diff --git a/docs/zh/groovy-script/minecraft/events/projectile_impact_event/arrow.md b/docs/zh/groovy-script/minecraft/events/projectile_impact_event/arrow.md index 815df72..b3996d9 100644 --- a/docs/zh/groovy-script/minecraft/events/projectile_impact_event/arrow.md +++ b/docs/zh/groovy-script/minecraft/events/projectile_impact_event/arrow.md @@ -1,7 +1,7 @@ -# ProjectileImpactEvent.Arrow +# Arrow To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ProjectileImpactEvent.Arrow ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [ProjectileImpactEvent](projectile_impact_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityArrow getArrow() ``` diff --git a/docs/zh/groovy-script/minecraft/events/projectile_impact_event/fireball.md b/docs/zh/groovy-script/minecraft/events/projectile_impact_event/fireball.md index 03e04f6..f15bcfd 100644 --- a/docs/zh/groovy-script/minecraft/events/projectile_impact_event/fireball.md +++ b/docs/zh/groovy-script/minecraft/events/projectile_impact_event/fireball.md @@ -1,7 +1,7 @@ -# ProjectileImpactEvent.Fireball +# Fireball To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ProjectileImpactEvent.Fireball ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [ProjectileImpactEvent](projectile_impact_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityFireball getFireball() ``` diff --git a/docs/zh/groovy-script/minecraft/events/projectile_impact_event/projectile_impact_event.md b/docs/zh/groovy-script/minecraft/events/projectile_impact_event/projectile_impact_event.md index 796cf73..b0dbe79 100644 --- a/docs/zh/groovy-script/minecraft/events/projectile_impact_event/projectile_impact_event.md +++ b/docs/zh/groovy-script/minecraft/events/projectile_impact_event/projectile_impact_event.md @@ -1,7 +1,7 @@ -# ProjectileImpactEvent +# Projectile Impact Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ProjectileImpactEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.math.RayTraceResult getRayTraceResult() ``` diff --git a/docs/zh/groovy-script/minecraft/events/projectile_impact_event/throwable.md b/docs/zh/groovy-script/minecraft/events/projectile_impact_event/throwable.md index 23ad158..ef2a468 100644 --- a/docs/zh/groovy-script/minecraft/events/projectile_impact_event/throwable.md +++ b/docs/zh/groovy-script/minecraft/events/projectile_impact_event/throwable.md @@ -1,7 +1,7 @@ -# ProjectileImpactEvent.Throwable +# Throwable To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ProjectileImpactEvent.Throwable ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [ProjectileImpactEvent](projectile_impact_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityThrowable getThrowable() ``` diff --git a/docs/zh/groovy-script/minecraft/events/registry_event/missing_mappings.md b/docs/zh/groovy-script/minecraft/events/registry_event/missing_mappings.md index a94b019..3299e14 100644 --- a/docs/zh/groovy-script/minecraft/events/registry_event/missing_mappings.md +++ b/docs/zh/groovy-script/minecraft/events/registry_event/missing_mappings.md @@ -1,31 +1,31 @@ -# RegistryEvent.MissingMappings +# Missing Mappings To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.RegistryEvent.MissingMappings ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[RegistryEvent](registry_event.md), [GenericEvent](../generic_event.md) +[RegistryEvent](registry_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.ResourceLocation getName() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.registries.IForgeRegistry getRegistry() ``` -```groovy +```groovy:no-line-numbers void setModContainer(net.minecraftforge.fml.common.ModContainer arg0) ``` -```groovy +```groovy:no-line-numbers com.google.common.collect.ImmutableList getAllMappings() ``` -```groovy +```groovy:no-line-numbers com.google.common.collect.ImmutableList getMappings() ``` diff --git a/docs/zh/groovy-script/minecraft/events/registry_event/new_registry.md b/docs/zh/groovy-script/minecraft/events/registry_event/new_registry.md index 936a351..04d1716 100644 --- a/docs/zh/groovy-script/minecraft/events/registry_event/new_registry.md +++ b/docs/zh/groovy-script/minecraft/events/registry_event/new_registry.md @@ -1,7 +1,7 @@ -# RegistryEvent.NewRegistry +# New Registry To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.RegistryEvent.NewRegistry ``` diff --git a/docs/zh/groovy-script/minecraft/events/registry_event/register.md b/docs/zh/groovy-script/minecraft/events/registry_event/register.md index b63af01..47bc76d 100644 --- a/docs/zh/groovy-script/minecraft/events/registry_event/register.md +++ b/docs/zh/groovy-script/minecraft/events/registry_event/register.md @@ -1,19 +1,19 @@ -# RegistryEvent.Register +# Register To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.RegistryEvent.Register ``` ## Sub-Classes This event extends the following events and can use all their methods and fields:
-[RegistryEvent](registry_event.md), [GenericEvent](../generic_event.md) +[RegistryEvent](registry_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.util.ResourceLocation getName() ``` -```groovy +```groovy:no-line-numbers net.minecraftforge.registries.IForgeRegistry getRegistry() ``` diff --git a/docs/zh/groovy-script/minecraft/events/registry_event/registry_event.md b/docs/zh/groovy-script/minecraft/events/registry_event/registry_event.md index 5df790d..12a8079 100644 --- a/docs/zh/groovy-script/minecraft/events/registry_event/registry_event.md +++ b/docs/zh/groovy-script/minecraft/events/registry_event/registry_event.md @@ -1,12 +1,11 @@ -# RegistryEvent +# Registry Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.RegistryEvent ``` ## Sub-Classes -This event extends the following events and can use all their methods and fields:
-[GenericEvent](../generic_event.md) +This event extends the following events and can use all their methods and fields: ## Methods diff --git a/docs/zh/groovy-script/minecraft/events/sapling_grow_tree_event.md b/docs/zh/groovy-script/minecraft/events/sapling_grow_tree_event.md index 3f26ee0..b5ebb1e 100644 --- a/docs/zh/groovy-script/minecraft/events/sapling_grow_tree_event.md +++ b/docs/zh/groovy-script/minecraft/events/sapling_grow_tree_event.md @@ -1,7 +1,7 @@ -# SaplingGrowTreeEvent +# Sapling Grow Tree Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.SaplingGrowTreeEvent ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [WorldEvent](world_event/world_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers java.util.Random getRand() ``` diff --git a/docs/zh/groovy-script/minecraft/events/server_chat_event.md b/docs/zh/groovy-script/minecraft/events/server_chat_event.md index 43000ac..8607b7c 100644 --- a/docs/zh/groovy-script/minecraft/events/server_chat_event.md +++ b/docs/zh/groovy-script/minecraft/events/server_chat_event.md @@ -1,28 +1,27 @@ -# ServerChatEvent +# Server Chat Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.ServerChatEvent ``` ## Methods -```groovy +```groovy:no-line-numbers java.lang.String getMessage() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.text.ITextComponent getComponent() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayerMP getPlayer() ``` -```groovy +```groovy:no-line-numbers void setComponent(net.minecraft.util.text.ITextComponent arg0) ``` -```groovy +```groovy:no-line-numbers java.lang.String getUsername() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/sleeping_location_check_event.md b/docs/zh/groovy-script/minecraft/events/sleeping_location_check_event.md index 009c195..7bc42a0 100644 --- a/docs/zh/groovy-script/minecraft/events/sleeping_location_check_event.md +++ b/docs/zh/groovy-script/minecraft/events/sleeping_location_check_event.md @@ -1,7 +1,7 @@ -# SleepingLocationCheckEvent +# Sleeping Location Check Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.SleepingLocationCheckEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getSleepingLocation() ``` diff --git a/docs/zh/groovy-script/minecraft/events/sleeping_time_check_event.md b/docs/zh/groovy-script/minecraft/events/sleeping_time_check_event.md index b7c05f8..e9d26f0 100644 --- a/docs/zh/groovy-script/minecraft/events/sleeping_time_check_event.md +++ b/docs/zh/groovy-script/minecraft/events/sleeping_time_check_event.md @@ -1,7 +1,7 @@ -# SleepingTimeCheckEvent +# Sleeping Time Check Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.SleepingTimeCheckEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getSleepingLocation() ``` diff --git a/docs/zh/groovy-script/minecraft/events/throwable_impact_event.md b/docs/zh/groovy-script/minecraft/events/throwable_impact_event.md index b6bc5cc..c8f745a 100644 --- a/docs/zh/groovy-script/minecraft/events/throwable_impact_event.md +++ b/docs/zh/groovy-script/minecraft/events/throwable_impact_event.md @@ -1,7 +1,7 @@ -# ThrowableImpactEvent +# Throwable Impact Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.ThrowableImpactEvent ``` @@ -10,10 +10,10 @@ This event extends the following events and can use all their methods and fields [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.projectile.EntityThrowable getEntityThrowable() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.RayTraceResult getRayTraceResult() ``` diff --git a/docs/zh/groovy-script/minecraft/events/use_hoe_event.md b/docs/zh/groovy-script/minecraft/events/use_hoe_event.md index 739b36c..fa6667e 100644 --- a/docs/zh/groovy-script/minecraft/events/use_hoe_event.md +++ b/docs/zh/groovy-script/minecraft/events/use_hoe_event.md @@ -1,7 +1,7 @@ -# UseHoeEvent +# Use Hoe Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.player.UseHoeEvent ``` @@ -10,18 +10,18 @@ This event extends the following events and can use all their methods and fields [PlayerEvent](player_event/player_event.md), [LivingEvent](living_event/living_event.md), [EntityEvent](entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers net.minecraft.item.ItemStack getCurrent() ``` diff --git a/docs/zh/groovy-script/minecraft/events/village_siege_event.md b/docs/zh/groovy-script/minecraft/events/village_siege_event.md index 14686e9..a5fd829 100644 --- a/docs/zh/groovy-script/minecraft/events/village_siege_event.md +++ b/docs/zh/groovy-script/minecraft/events/village_siege_event.md @@ -1,28 +1,27 @@ -# VillageSiegeEvent +# Village Siege Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.village.VillageSiegeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.village.Village getVillage() ``` -```groovy +```groovy:no-line-numbers net.minecraft.village.VillageSiege getSiege() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.Vec3d getAttemptedSpawnPos() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.player.EntityPlayer getPlayer() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/world_event/create_spawn_position.md b/docs/zh/groovy-script/minecraft/events/world_event/create_spawn_position.md index 7c87941..261b906 100644 --- a/docs/zh/groovy-script/minecraft/events/world_event/create_spawn_position.md +++ b/docs/zh/groovy-script/minecraft/events/world_event/create_spawn_position.md @@ -1,7 +1,7 @@ -# WorldEvent.CreateSpawnPosition +# Create Spawn Position To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.CreateSpawnPosition ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [WorldEvent](../world_event/world_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.WorldSettings getSettings() ``` diff --git a/docs/zh/groovy-script/minecraft/events/world_event/load.md b/docs/zh/groovy-script/minecraft/events/world_event/load.md index 9a1dfb7..df56479 100644 --- a/docs/zh/groovy-script/minecraft/events/world_event/load.md +++ b/docs/zh/groovy-script/minecraft/events/world_event/load.md @@ -1,7 +1,7 @@ -# WorldEvent.Load +# Load To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.Load ``` diff --git a/docs/zh/groovy-script/minecraft/events/world_event/potential_spawns.md b/docs/zh/groovy-script/minecraft/events/world_event/potential_spawns.md index a9624a1..9a9f96d 100644 --- a/docs/zh/groovy-script/minecraft/events/world_event/potential_spawns.md +++ b/docs/zh/groovy-script/minecraft/events/world_event/potential_spawns.md @@ -1,7 +1,7 @@ -# WorldEvent.PotentialSpawns +# Potential Spawns To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.PotentialSpawns ``` @@ -10,14 +10,14 @@ This event extends the following events and can use all their methods and fields [WorldEvent](../world_event/world_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.EnumCreatureType getType() ``` -```groovy +```groovy:no-line-numbers net.minecraft.util.math.BlockPos getPos() ``` -```groovy +```groovy:no-line-numbers java.util.List getList() ``` diff --git a/docs/zh/groovy-script/minecraft/events/world_event/save.md b/docs/zh/groovy-script/minecraft/events/world_event/save.md index 16d94e5..2fb5884 100644 --- a/docs/zh/groovy-script/minecraft/events/world_event/save.md +++ b/docs/zh/groovy-script/minecraft/events/world_event/save.md @@ -1,7 +1,7 @@ -# WorldEvent.Save +# Save To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.Save ``` diff --git a/docs/zh/groovy-script/minecraft/events/world_event/unload.md b/docs/zh/groovy-script/minecraft/events/world_event/unload.md index 0d0ee5d..716b48d 100644 --- a/docs/zh/groovy-script/minecraft/events/world_event/unload.md +++ b/docs/zh/groovy-script/minecraft/events/world_event/unload.md @@ -1,7 +1,7 @@ -# WorldEvent.Unload +# Unload To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent.Unload ``` diff --git a/docs/zh/groovy-script/minecraft/events/world_event/world_event.md b/docs/zh/groovy-script/minecraft/events/world_event/world_event.md index 2693107..884b1a7 100644 --- a/docs/zh/groovy-script/minecraft/events/world_event/world_event.md +++ b/docs/zh/groovy-script/minecraft/events/world_event/world_event.md @@ -1,12 +1,11 @@ -# WorldEvent +# World Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.world.WorldEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/world_type_event/biome_size.md b/docs/zh/groovy-script/minecraft/events/world_type_event/biome_size.md index fb04c12..4409795 100644 --- a/docs/zh/groovy-script/minecraft/events/world_type_event/biome_size.md +++ b/docs/zh/groovy-script/minecraft/events/world_type_event/biome_size.md @@ -1,7 +1,7 @@ -# WorldTypeEvent.BiomeSize +# Biome Size To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.WorldTypeEvent.BiomeSize ``` @@ -10,15 +10,14 @@ This event extends the following events and can use all their methods and fields [WorldTypeEvent](world_type_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getOriginalSize() ``` -```groovy +```groovy:no-line-numbers void setNewSize(int arg0) ``` -```groovy +```groovy:no-line-numbers int getNewSize() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/world_type_event/init_biome_gens.md b/docs/zh/groovy-script/minecraft/events/world_type_event/init_biome_gens.md index e8a516a..cba82dd 100644 --- a/docs/zh/groovy-script/minecraft/events/world_type_event/init_biome_gens.md +++ b/docs/zh/groovy-script/minecraft/events/world_type_event/init_biome_gens.md @@ -1,7 +1,7 @@ -# WorldTypeEvent.InitBiomeGens +# Init Biome Gens To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.WorldTypeEvent.InitBiomeGens ``` @@ -10,19 +10,18 @@ This event extends the following events and can use all their methods and fields [WorldTypeEvent](world_type_event.md) ## Methods -```groovy +```groovy:no-line-numbers long getSeed() ``` -```groovy +```groovy:no-line-numbers void setNewBiomeGens([Lnet.minecraft.world.gen.layer.GenLayer; arg0) ``` -```groovy +```groovy:no-line-numbers [Lnet.minecraft.world.gen.layer.GenLayer; getNewBiomeGens() ``` -```groovy +```groovy:no-line-numbers [Lnet.minecraft.world.gen.layer.GenLayer; getOriginalBiomeGens() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/world_type_event/world_type_event.md b/docs/zh/groovy-script/minecraft/events/world_type_event/world_type_event.md index 42d2c4c..a526369 100644 --- a/docs/zh/groovy-script/minecraft/events/world_type_event/world_type_event.md +++ b/docs/zh/groovy-script/minecraft/events/world_type_event/world_type_event.md @@ -1,12 +1,11 @@ -# WorldTypeEvent +# World Type Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.terraingen.WorldTypeEvent ``` ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.world.WorldType getWorldType() ``` - diff --git a/docs/zh/groovy-script/minecraft/events/zombie_event/summon_aid_event.md b/docs/zh/groovy-script/minecraft/events/zombie_event/summon_aid_event.md index a324e29..c37ffde 100644 --- a/docs/zh/groovy-script/minecraft/events/zombie_event/summon_aid_event.md +++ b/docs/zh/groovy-script/minecraft/events/zombie_event/summon_aid_event.md @@ -1,7 +1,7 @@ -# ZombieEvent.SummonAidEvent +# Summon Aid Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.ZombieEvent.SummonAidEvent ``` @@ -10,38 +10,38 @@ This event extends the following events and can use all their methods and fields [ZombieEvent](zombie_event.md), [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers int getY() ``` -```groovy +```groovy:no-line-numbers int getX() ``` -```groovy +```groovy:no-line-numbers boolean hasResult() ``` -```groovy +```groovy:no-line-numbers void setCustomSummonedAid(net.minecraft.entity.monster.EntityZombie arg0) ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.monster.EntityZombie getCustomSummonedAid() ``` -```groovy +```groovy:no-line-numbers int getZ() ``` -```groovy +```groovy:no-line-numbers net.minecraft.world.World getWorld() ``` -```groovy +```groovy:no-line-numbers double getSummonChance() ``` -```groovy +```groovy:no-line-numbers net.minecraft.entity.EntityLivingBase getAttacker() ``` diff --git a/docs/zh/groovy-script/minecraft/events/zombie_event/zombie_event.md b/docs/zh/groovy-script/minecraft/events/zombie_event/zombie_event.md index 4a413d7..261f6e3 100644 --- a/docs/zh/groovy-script/minecraft/events/zombie_event/zombie_event.md +++ b/docs/zh/groovy-script/minecraft/events/zombie_event/zombie_event.md @@ -1,7 +1,7 @@ -# ZombieEvent +# Zombie Event To use this event use the following import: -```groovy +```groovy:no-line-numbers import net.minecraftforge.event.entity.living.ZombieEvent ``` @@ -10,6 +10,6 @@ This event extends the following events and can use all their methods and fields [EntityEvent](../entity_event/entity_event.md) ## Methods -```groovy +```groovy:no-line-numbers net.minecraft.entity.monster.EntityZombie getSummoner() ```