I renamed all persisted to persistent, though vanilla fix types enum calls them saved data.
Mapped out the persistent data manager that is bound to each dimension and the persistent data updater for stuctures.
* Mapped some stuff about fish, especially fish group and tropical fish
also include some mob spawning/despawning mappings
Signed-off-by: liach <liach@users.noreply.github.com>
* Fixes for review
Signed-off-by: liach <liach@users.noreply.github.com>
* Added mappings for the model class and fixed name for the other one
The class before called model had the swing value and was not the true base model class. Not sure what to call it but for now I'm just calling it entity model because SwingingModel seems a bit silly though it would represent this new class from 1.14 better
*The following are an exert from my mapping set, they are my own work*.
```
CL: asd net/minecraft/world/entity/projectile/WitherSkull
CL: asf net/minecraft/world/entity/raid/Raid
CL: asg net/minecraft/world/entity/raid/Raider
CL: ash net/minecraft/world/entity/raid/RaidManager
CL: asi net/minecraft/world/entity/vehicle/AbstractMinecart
```
(mapping order shows they are packaged together)
Methods working on json objects renamed to `hasXxx` instead of `isXxx` (reserved for json elements).
Type\\Operation | Check | Retrieve
-- | ----- | --------
`JsonElement` | `isXxx` | `asXxx`
`JsonObject` | `hasXxx` | `getXxx`
I made all methods follow the guide set in that form above so that new modders can understand the `JsonHelper` more easily.
Also added some mappings for string and boolean parameters and missing default values.
Apologies for PR spam, just this one has a couple of changes I was unsure of, so it felt cleaner to split it into something separate:
- I'm a bit conflicted on `.getCollisionShape` - it appears to be used both
for entity collision and determining if a block's side is a "full cube" (and so can have torches placed against or w/e)
- I've renamed `getRenderingState` to `getStateForNeighborUpdate`, though am not 100% it's a good name - it may also perform side effects (mostly scheduling this block to be ticked next thread), so isn't quite a pure getter.
* Block related mappings
* Block related mappings, pt2
* Block related mappings, pt3
* Darnit, it ate my files again
* Unmap BaseFluid#g()Z
* prevState -> oldState
* apply some change suggestions
* Hopefully unmap all local variables
* T data -> T object
* Biome layer system mapping
* Move to biome layer package
* Integrate mappings from former biome layer PR
* OverworldBiomeLayers
* Change back to BiomeLayers per request
* saturationRestored -> saturationModifier
Saturation restored is calculated by (hungerRestored * saturationModifier * 2), so saturationRestored is an incorrect name for the field
* Fix typo in saturation method names (extra at)
* Map various obfuscated names
* "active" actually had more uses as opposed to "enabled", so that's what it's going to be
* Chunk -> WorldChunk, IChunk -> Chunk
* Add mappings back for GUI methods
* Add back argument mappings for blocks
And some other changes. I rather forgot.
* Item and entity arguments
* A whole bunch of argument mappings
* Items (again) and fluids
* Entity stuff 'n things
* Fixup most of the client stuff
* Some remaining items
There's an Enigma bug where if you renamed a class A to B and class C to A, the new class A won't be saved.
I didn't notice back when I refactored the data package a while back that I ended up removing DataGenerator :p
* Add RecipeSerializers mappings
* Add class mappings for several items
* Add several BlockSoundGroups
* Add World.getDimension and World.playRecord
* Add a couple of methods to bounding boxes
* A couple of minor mappings for servers
* Some mappings for TextComponent (de)serialization
* A very minor mapping for Polar2f
I'm really unsure about this name, so comments welcome!
* A few mappings for chat
* Basic fluid mappings
* Waterlogged -> Waterloggable, removeChatMessage -> removeMessage
* Polar2f -> Vec2f, setPlayingOverlay -> setRecordPlayingOverlay
* Add some mappings for GUIs and input handling
- Add keyboard, mouse and clipboard control
- Flesh out the GuiEventListener mappings
* Rename to SharedConstants
* Initial pass of data fixers and schemas
* Some fleshing out of the palette converter
Dubiously helpful mappings, but very useful in working out how data
fixer actually works.
* CommandAdvancement and onPlayerConnect
* chat message stuff
* more chat and related methods
* updated gitignore
* more chat, commands and packets
* fix compressTiny not being executed on publish
format and simplify build.gradle
* update
* broadcast -> sendTo
* add newline to editorconfig
Looking back through the classes, I figured out why I had previously called them providers (see DataGenerator)...
This commit resolves that discrepancy.
* 2 1/2 hours of me mapping stuff
* Round two!
* Few small additions
* Fix mappings from merge
* Make proper changes
* loadsMoreDecoration -> moreSurfaceDecoration
* Make requested changes
* Mapped a bunch of entity stuff.
* Named a bunch of entity model classes.
* Added some more gui mappings
* Mapped a few misc block things.
* Even more block mappings.
* Mapped the rest of the entity classes.
* Changed minecraftGame -> game
* Mapped some throwable entity stuff.
* Added some player, player inventory stuff.
* Mapped some stuff related to the dragon fight.
* Mapped a bunch of params and methods for item.
* Fixed several typos.
* Added to the rendering mappings for parrots.
* Fixed a typo in setUpdateCooldown.
* Added several parameter names to ItemStack.
* Mapped the remaining missing fields.
* Added the missing param mappings for Potion.
* More potion stuff. (Forgot to include in last commit)
* Mapped the shulker box renderer.
* Little changes to World
* Lots of parameter changes
* There are so many world mappings
* Fix misnamed chunkZ
* Change consultRemoteProvider to ingoreRemote
* Named two constants
* Whoops, wrong names
* Testing out enigma with a basic mapping
* A lot of work on command mappings
* Fix weird Enigma naming error
* An attempt to fix mappings, but bigger issues are afoot
* Change CommandLocateStructure to CommandLocate
* Make suggested changes by unascribed
Followup to #147
- getBlockBreakingSpeed (EntityPlayer / InventoryPlayer / Item), was "Strength" and "StrengthWithSelectedTool", too verbose
- InventoryPlayer.canHarvest => isUsingEffectiveTool (+ mapped corresponding EntityPlayer method)
- Item.canHarvestBlock => isEffectiveOn
- calcBlockBreakingDelta (Block / IBlockInfoProxy)
Leaving the Material.harvestable field / methods alone due to lack of better name ("doesntRequireEffectiveTool"?)
As this doesn't disable all kinds of collision (such as being hit by arrows), only movement related ones: Block collision and entities pushing each other (both ways).
* Misc mappings
* Misc random mappings (#120)
* Misc random mappings
* Minor changes & move WorldServerChild to sortme
* username -> userName
* Rename some Gui related methods & more
lastPressedWidget
mouseDragged => onMouseDragged
handleMouseClick => onMousePressed
handleTouchEvent => onMouseReleased
handleKeyPress => onKeyPressed
handleButtonPressed => onWidgetPressed
WidgetButton.released => onReleased
* Add some mappings for mob pathfinding (#127)
* Add some mappings for mob pathfinding
* Fixes for review
* Fixes for review
* Several mappings (#129)
* Mapped a bunch of loot stuff.
* Mapped some random stuff.
* Mapped some debug renderers.
* Mapped a few misc things.
* element -> json
* Map / rename PlayerFormatUpgrader
* Fix StatManager, map StatManagerServer and such
updateStatState => set
increaseState => increase
getValue => get
EntityPlayer.getStatManager => getStats
* Fix LootTable related mappings
serialze => serialize
Serializer => DeSerializer
LootTableContext:
* TARGET => Target
* source => damageSource
* setX(x) => setX(value)
* Random block stuff
* Random world stuff
* Add some mappings for block rendering (#133)
* Add some mappings for block rendering
* Fixes some things
* Make getAoBrightness to getAmbientOcclusionBrightness
* Fix merge conflicts
* Fix a few minor things
VertexBuffer.putColorRGB => putColor
BlockRenderer hashcode parameter => variationSeed
Revert to IBlockView.getCombinedLight
* BIomes, biome generation (#132)
* BIomes, biome generation
* Misc random mappings (#120)
* Misc random mappings
* Minor changes & move WorldServerChild to sortme
* username -> userName
* Rename some Gui related methods & more
lastPressedWidget
mouseDragged => onMouseDragged
handleMouseClick => onMousePressed
handleTouchEvent => onMouseReleased
handleKeyPress => onKeyPressed
handleButtonPressed => onWidgetPressed
WidgetButton.released => onReleased
* Add some mappings for mob pathfinding (#127)
* Add some mappings for mob pathfinding
* Fixes for review
* Fixes for review
* Several mappings (#129)
* Mapped a bunch of loot stuff.
* Mapped some random stuff.
* Mapped some debug renderers.
* Mapped a few misc things.
* element -> json
* Map / rename PlayerFormatUpgrader
* Fix StatManager, map StatManagerServer and such
updateStatState => set
increaseState => increase
getValue => get
EntityPlayer.getStatManager => getStats
* Fix LootTable related mappings
serialze => serialize
Serializer => DeSerializer
LootTableContext:
* TARGET => Target
* source => damageSource
* setX(x) => setX(value)
* Random block stuff
* Random world stuff
* Add some mappings for block rendering (#133)
* Add some mappings for block rendering
* Fixes some things
* Make getAoBrightness to getAmbientOcclusionBrightness
* Fix merge conflicts
* Fix a few minor things
VertexBuffer.putColorRGB => putColor
BlockRenderer hashcode parameter => variationSeed
Revert to IBlockView.getCombinedLight
* Fix a few things
* Remove Vector3f (fixes Enigma mapping conflict)
* Map WidgetLockButton
* Fix gameMode setters to use "value"
* BIomes, biome generation
* Misc random mappings (#120)
* Misc random mappings
* Minor changes & move WorldServerChild to sortme
* username -> userName
* Rename some Gui related methods & more
lastPressedWidget
mouseDragged => onMouseDragged
handleMouseClick => onMousePressed
handleTouchEvent => onMouseReleased
handleKeyPress => onKeyPressed
handleButtonPressed => onWidgetPressed
WidgetButton.released => onReleased
* Add some mappings for mob pathfinding (#127)
* Add some mappings for mob pathfinding
* Fixes for review
* Fixes for review
* Several mappings (#129)
* Mapped a bunch of loot stuff.
* Mapped some random stuff.
* Mapped some debug renderers.
* Mapped a few misc things.
* element -> json
* Map / rename PlayerFormatUpgrader
* Fix StatManager, map StatManagerServer and such
updateStatState => set
increaseState => increase
getValue => get
EntityPlayer.getStatManager => getStats
* Fix LootTable related mappings
serialze => serialize
Serializer => DeSerializer
LootTableContext:
* TARGET => Target
* source => damageSource
* setX(x) => setX(value)
* Random block stuff
* Random world stuff
* Add some mappings for block rendering (#133)
* Add some mappings for block rendering
* Fixes some things
* Make getAoBrightness to getAmbientOcclusionBrightness
* Fix merge conflicts
* Fix a few minor things
VertexBuffer.putColorRGB => putColor
BlockRenderer hashcode parameter => variationSeed
Revert to IBlockView.getCombinedLight
* Fix a few things
* Add some mappings for block rendering
* Fixes some things
* Make getAoBrightness to getAmbientOcclusionBrightness
* Fix merge conflicts
* Fix a few minor things
VertexBuffer.putColorRGB => putColor
BlockRenderer hashcode parameter => variationSeed
Revert to IBlockView.getCombinedLight
Fixes from review
More fixes from review
passesLight -> allowsLightTransmission, blocksLight -> preventsLightTransmission
Remove badly named params from "nearest" function
* Completed the render layer mapping. Fixed a few misnamed things.
* partialTicks -> deltaTicks
* Fixed partial ticks in existing mapping as well. Also some new stuff.
* Map some EnchantmentHelper
* Map BlockFire.registerFlammable(s)
Still missing mappings for the two maps used by these methods regarding fire spread.
* Map some entity death / loot stuff
* Map some entity sound stuff
* Map a few small things
* Rename init => registerDefaults
And registerFlammables => registerDefaultFlammables
* Map GuiSettingsVideo and related classes
* Change isSlider/isBoolean to slider/toggle
Still very confusing without documentation, both of the values are just booleans. They indicate whether or not the option is a numeric slider value option or a boolean value option.
* Mapped resource index objects.
* Mapped a bunch of misc stuff.
* Mapped something to do with default light values.
* Fixed several issues
- Stray overlay texture is now SKIN
- Mapped the missing field for stray model.
- Renamed EntityrRendererArrows -> EntityRendererStuckArrows
- Renamed EnumLightTypes -> LightType
* Fixed a typo
* Map World.globalEntities
* Map sendToAllPlayersInRange
* Map IntHashMap
Also renamed fields using it
(And incorrectly named non-static ALL_CAPS fields)
* Map block tick scheduling
* Map World raining / thundering things
* Fix some IntHashMap things
- Bucket -> Element
- Remove "ForKey"
* Fix some suggested things
* Entity Rendering Stuff
* Fix some issues
* Fix some issues + a few small things
* More fixes, again
* Last fix?
* Update EntityRendererWither.mapping
* Vec3d fully mapped; Polar2d identified
* s/coerce/fromPolar/g
* Vec3i fully mapped
* BlockPos fully mapped
also demapped a method in Vec3i that may cause issues
(I suspect Enigma has a bug)
* review round 1
closes#87
* Vec3i s/ORIGIN/ZERO/g
* dammit when will you all take a linear algebra course
Also known as Fast Inverse Square Root.
MC uses the double-precision version.
The magic number is one more than Robertson's constant.
It is used for atan2, which has also been mapped here.