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
* 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
* 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.
* 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"
Fixes from review
More fixes from review
passesLight -> allowsLightTransmission, blocksLight -> preventsLightTransmission
Remove badly named params from "nearest" function
* 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
* 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.
* Map LevelGeneratorType
From WorldGenerator
* Map LevelInfo
From WorldInfo
* Map Level related and many more
* Fix construct => createProvider
* Unfinished stuff please ignore
* LanServerQueryManager
* moved to sortme; GUI tidbits
* mouse mappings for gui (+ server lists)
* entryCount for gui lists
* width/height/scroll for bfb
* setLeftPos for bfb
* scrolls + more mouse stuff (bfb)
* bfb entryWidth/handleButtonPressed/drawEntries
* bfb drawEntry
* starting to decipher none.bew
* add index to a bew.a method
* bmk -> ServerList (fully deobf'd)
* starting on none.big
* index selections for bfb & co
* set(User|Lan)Servers for none.big
* quick names for bfb and whatnot
* name tweaks
* Mapped some world stuff. Partially related to saving.
* Named some dimension stuff.
* Mapped out some more save stuff. Should be enough to get stuff rolling.
* Implement feedback