Commit Graph

426 Commits

Author SHA1 Message Date
modmuss50 252ad11d0a 21w10a 2021-03-10 18:34:17 +00:00
modmuss50 1bc0fa389c 21w08a 2021-02-24 19:41:03 +00:00
liach 3313e442f2
Some client nested classes (#2056)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2021-02-13 17:03:45 +00:00
liach 3b23315115
Game events stuff. Map 2 unmapped top level classes (#2045)
* Game events stuff. Map 2 unmapped top level classes

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/world/event/listener/EntityGameEventHandler.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/world/event/PositionSource.mapping

Co-authored-by: liach <liach@users.noreply.github.com>
Co-authored-by: YanisBft <doublecraft.official@gmail.com>
2021-02-13 17:01:00 +00:00
liach d80319f717
Map one class in rendersytem (#2025)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2021-02-07 13:31:16 +00:00
liach 492292782d
New inner classes in model overrides (#2013)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2021-02-04 18:34:03 +00:00
modmuss50 323e6f8e29 21w05a 2021-02-03 19:34:30 +00:00
Shnupbups 2b7b0f411f
render (#1972) 2021-01-23 21:21:31 +00:00
YanisBft 85fa278887
21w03a stuff (#1964)
* 21w03a stuff

* Update mappings/net/minecraft/client/render/entity/ItemFrameEntityRenderer.mapping

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
2021-01-22 13:36:31 +00:00
LambdAurora 1640c6fafd
Add and update filled map related mappings. (#1969)
* Add and update filled map related mappings.

* Fix stuff.
2021-01-21 23:33:35 +00:00
modmuss50 a6ba184207 21w03a 2021-01-20 19:22:41 +00:00
yyny 6988b5b651
Complete mapping for `ModelVariant` (#1948)
The type is `AffineTransformation` but it is only used for rotation.
2021-01-03 20:53:47 +00:00
Tom_The_Geek 9a5273f484
Map some BE renderers (#1945)
* Map some be renderer stuff

* Remove mappings that conflict with #1944

* dont delete other mappings

* fix typos

* fix tab/space issues
2021-01-03 20:53:25 +00:00
yyny 98fbc1b636
`getFirst` -> `build` (#1946)
As an optimization, this method returns the first model if there was only one model added. In the general case, this returns a `new WeightedBakedModel`
2021-01-03 20:52:02 +00:00
YanisBft 7a3b5e7c30
Beacon beam rendering and other be renderers (#1944)
* Beacon beam rendering and other be renderers

* missing parameters

* follow conventions
2020-12-31 14:23:15 +00:00
Shnupbups b9d56158e5
20w51a things (#1918)
* stuff

haha yes

* buckets

* sleeping gamerule thing

* haha yes

* haha yes

* Update mappings/net/minecraft/item/ItemUsage.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/entity/ai/brain/Brain.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/entity/LivingEntity.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* stuff

* things

* whoop

* Update mappings/net/minecraft/entity/Entity.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/server/world/ServerWorld.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/world/gen/chunk/GenerationShapeConfig.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/world/dimension/DimensionType.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/world/dimension/AreaHelper.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

Co-authored-by: YanisBft <doublecraft.official@gmail.com>
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2020-12-31 14:22:27 +00:00
YanisBft 992926dd04
Fix javadocs and update Enigma (#1937)
* Fix javadocs and update Enigma

* oops
2020-12-25 23:25:28 +00:00
Hephaestus-Dev c1edcd1149
Update ModelBakeSettings.mapping (#1927)
This method used to be called `isUvLocked`, and was at some point renamed to `isShaded`, which is a horribly misleading name. I'd just like to change it back to actually describing what it does.
2020-12-23 16:47:35 +00:00
Shnupbups d05efed548
20w49a stuff (#1903)
* fuck it i'm committing and going to bed

here's what i got

* lots of misc stuff

haha yes

* Delete class_5700.mapping
2020-12-09 12:21:32 +00:00
Shnupbups b06cc505e0
48a things (#1894)
* 48a things

* stuff

* Apply suggestions from code review

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* just to get checks running again

* Revert "just to get checks running again"

This reverts commit 509ab81d80.

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
2020-12-03 19:50:38 +00:00
­Sollace c0a046c665
Model part names (#1900)
* Update all the models fields that come from Mojang's json code

* Unswap tailAngle and spikeExtension fields

* Fill in missing names in MathHelper

* Apply suggestions from code review

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* More code review fixes

Co-authored-by: YanisBft <doublecraft.official@gmail.com>
2020-12-03 13:51:45 +00:00
modmuss50 db6fa87282 20w49a 2020-12-02 18:29:46 +00:00
YanisBft 9de49c608f
Some client mappings (#1888) 2020-11-29 22:05:47 +00:00
modmuss50 b4c1720de7 20w48a 2020-11-25 18:55:46 +00:00
MounderFod 29ec35b5d7
Added GameModeSelection and CameraSubmersionEnvironment (#1882)
* Added GameModeSelection and CauldronFluids

* Renamed enums, moved to relevant places.

* Refactored ClientCauldronFluid to CameraSubmersionType.

* Camera.getSubmergedFluidState -> Camera.getSubmersionType

* Camera.getSubmergedFluidState -> Camera.getSubmersionType

* Added javadoc to GameModeSelection.mapping

* Fixed Javadoc.

* Added some more Javadoc.
2020-11-18 12:05:09 +00:00
Thalia Nero e0df01cad6
Entity rendering (#1861)
* Map entity model classes.

* Map new stuff in entity renderers.

* - EntityModelParts -> EntityModels
- ModelPartGroup -> ModelPartData
- ModelPartData -> ModelPartDataNode
- TexturedModelPartGroup -> TexturedModelPartData

* Apply suggestions from code review

Co-authored-by: Gegy <gegy1000@gmail.com>

* Apply other suggestions

* Update mappings/net/minecraft/client/model/TexturedModelData.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Remap *PartData -> *ModelData, move Dilation to client.util.math

* Update crobbed mapping.

Co-authored-by: Gegy <gegy1000@gmail.com>
Co-authored-by: YanisBft <doublecraft.official@gmail.com>
2020-11-12 08:57:40 +00:00
modmuss50 3e78db4504 20w46a 2020-11-11 19:27:23 +00:00
YanisBft bbf3086597
Misc things (#1862) 2020-11-08 14:35:59 +00:00
Thalia Nero b0078fdaeb
Block Entity renderer factories and dirt path datafixer (#1848)
* Block Entity renderer factories and dirt path datafixer

* Context
2020-11-07 23:17:14 +00:00
LambdAurora 65b7048e2d
Add mappings for VertexFormat changes. (#1852)
* Add mappings for VertexFormat changes.

* Update mappings/net/minecraft/client/render/VertexFormat.mapping

Co-authored-by: SuperCoder79 <25208576+SuperCoder7979@users.noreply.github.com>

Co-authored-by: SuperCoder79 <25208576+SuperCoder7979@users.noreply.github.com>
2020-11-06 14:25:59 +00:00
Shnupbups 1e46390347
20w45a things (#1833)
* Things

* Update AbstractCauldronBlock.mapping

* a few more things

* Create EntityModelLayers.mapping

* Update MinecraftVersion.mapping

* Update Oxidizable.mapping
2020-11-06 14:24:34 +00:00
LambdAurora b44b26d435
Add entity mappings (#1829)
* Add entity mappings

* Add javadoc to dismountVehicle.
2020-11-05 09:41:29 +00:00
modmuss50 c91f482141 20w45a 2020-11-04 20:44:22 +00:00
Thalia Nero 1c99d1ff21
Map some sky properties (#1793)
* Map some sky properties

* Update mappings/net/minecraft/client/render/SkyProperties.mapping

Co-authored-by: YanisBft <doublecraft.official@gmail.com>

* Manually add auto-named enum constant mappings.

Co-authored-by: YanisBft <doublecraft.official@gmail.com>
2020-11-01 22:55:29 +00:00
YanisBft fa6bfa04c2
Entity model things (#1759)
* Entity model things

* Update TurtleEntityModel.mapping
2020-10-01 23:33:31 +01:00
­Sollace 175bf8ce1a
Glint layer mappings (#1484)
* mapped the item glint layer methods

* Rename the fields to match the methods
2020-10-01 23:30:55 +01:00
i509VCB 577ff9ccbf
Assorted mappings, mainly enchanting, some rendering params and generator type. (#1671)
* Assorted mappings, mainly enchanting, some rendering params and generator type.

(cherry picked from commit b573c98c68)

* Back to consumer

* drop empty comments

* yeet broken

* oops2

* Update World.mapping
2020-08-31 00:37:36 +01:00
Yanis48 18cc384c52
Random client things (#1663) 2020-08-07 19:32:22 +01:00
Yanis48 53cb803fda
Worldgen stuff (#1664)
* Worldgen stuff

* sky properties
2020-08-07 19:32:09 +01:00
modmuss50 7f0d3ff088 1.16.2-rc1 2020-08-07 17:13:30 +01:00
shartte 1c1ba19432
Chest internals (#1648) 2020-08-03 12:49:22 +01:00
Erlend Åmdal 2d5595b39a
TransformingVertexConsumer -> OverlayVertexConsumer (#1636)
* TransformingVertexConsumer -> OverlayVertexConsumer

* getTransformingGlint -> getGlint
2020-07-31 15:53:19 +01:00
Yanis48 70b1474a32
Random client mappings (#1616)
* Random client mappings

* Update MinecraftClient.mapping

* Update gradle.properties
2020-07-29 01:40:12 +01:00
haykam821 a83a057fe4
Map unmapped fields that have getter methods (#1612)
* Map unmapped fields that have getter methods

* Fix the parts field in GhastEntityModel using the same name as its getter method

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update outdated getter method names

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-07-27 19:44:57 +01:00
modmuss50 8bc6276f19 20w29a 2020-07-15 17:04:53 +01:00
Vincent Lee 6f59e5c9c0
Adjustments to render layers (#1545) 2020-07-09 18:44:57 +01:00
Yanis48 4b5dadbafa
Quick fixes (#1534)
* Quick fixes

* Update EntryListWidget.mapping
2020-07-05 13:45:54 +01:00
shartte 760883751e
Mappend rendering flashing TNT blocks (#1532)
Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-07-02 11:52:31 +01:00
modmuss50 b446f6047d 20w27a 2020-07-01 17:44:38 +01:00
Joseph Burton d3e8fd1935
Fix lots of spelling errors throughout yarn (#1506)
* Fix lots of spelling errors throughout yarn

* Delete empty comment
2020-06-24 17:34:48 +01:00
Shnupbups 987aa1a483
1.16 pre3 things (#1459)
* stuff

mapped every class except 5395 because i dont understand codecs lol

* dont mind me

* there we go

* Apply suggestions from code review

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/entity/ai/goal/UniversalAngerGoal.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/entity/passive/WolfEntity.mapping

Co-authored-by: jadon <jadonflower@gmail.com>

* Update EditGameRulesScreen.mapping

* Apply suggestions from code review

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: jadon <jadonflower@gmail.com>
2020-06-18 20:17:05 +01:00
modmuss50 a4305ccae9 1.16-pre8 2020-06-17 17:11:43 +01:00
Lars van der Zande 298e9b23fa
add Tripwire RenderLayer PhaseParameters getter (#1471)
```java
private static RenderLayer.MultiPhaseParameters method_29996() {
        return RenderLayer.MultiPhaseParameters.builder().shadeModel(SMOOTH_SHADE_MODEL).lightmap(ENABLE_LIGHTMAP).texture(MIPMAP_BLOCK_ATLAS_TEXTURE).transparency(TRANSLUCENT_TRANSPARENCY).target(WEATHER_TARGET).build(true);
    }
```
```java
private static RenderLayer.MultiPhaseParameters getTripwirePhaseData() {
        return RenderLayer.MultiPhaseParameters.builder().shadeModel(SMOOTH_SHADE_MODEL).lightmap(ENABLE_LIGHTMAP).texture(MIPMAP_BLOCK_ATLAS_TEXTURE).transparency(TRANSLUCENT_TRANSPARENCY).target(WEATHER_TARGET).build(true);
    }
```
2020-06-15 22:08:17 +01:00
Lars van der Zande 118a3fb671
add tickRainSplashing Mapping (#1473)
* add updateRainSplashing Mapping

GameRenderer calls method_22713 every tick()

method_22713
creates rain particles hitting the ground and plays rain sound

* Update mappings/net/minecraft/client/render/WorldRenderer.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-06-15 22:08:07 +01:00
modmuss50 3974dc0927 1.16-pre6 2020-06-15 19:17:37 +01:00
Lars van der Zande 8b19485c8a
Added mapping TRIPWIRE RenderLayer getter (#1470)
```java
public static RenderLayer method_29997() {
        return TRIPWIRE;
    }
```
```java
public static RenderLayer getTripwire() {
        return TRIPWIRE;
    }
```
2020-06-15 17:39:37 +01:00
Lars van der Zande 6e54e173d4
add ITEM_TARGET field mapping (#1472) 2020-06-15 17:39:30 +01:00
i509VCB e2526d88ae
Document drawBox methods (#1455) 2020-06-11 11:35:50 +01:00
modmuss50 49710ba86a 1.16-pre3 2020-06-10 18:05:28 +01:00
Shnupbups 49284a0f45
pre1 stuff (#1420)
* pre1 stuff

idk

* more stuff

* remove things already mapped

removes things already mapped by newly merged prs
2020-06-07 16:02:50 +01:00
Juuxel 3eb088abba
Various misc changes (#1372)
* Fix #1369

* CriteriaMerger -> CriterionMerger

* ItemRenderer.renderGuiItem + related names

Closes #1361.

* WololoGoal.purpleSheepPredicate -> convertibleSheepPredicate

Co-authored-by: liach <liach@users.noreply.github.com>

Closes #1344.

* Improve GUI item rendering names

* MinecraftClient.(block/item)ColorMap -> (block/item)Colors

* Change wording a little

* Model overrides
2020-06-07 15:26:33 +01:00
haykam821 f02f57cf81
Map graphics modes (#1418)
* Map graphics modes

* Change languageKey to translationKey

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Simplify GraphicsMode method names

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Map graphics mode methods in MinecraftClient

* Change fancyGraphics field in RenderLayers to fancyGraphicsOrBetter

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-06-07 15:21:41 +01:00
modmuss50 0295b1e8d5 1.16-pre1 2020-06-04 20:08:31 +01:00
Pyrofab 563be43174
Map transparency shader fields and methods (#1412)
* Entity#isAlive(0) -> isValid

* Framebuffer#method_29329(1) -> copyFrom

* GlStateManager#method_29330(0) -> supportsGl30

* GlStateManager#method_29332(10) -> blitFramebuffer

* GlStateManager#method_29333(0) -> getFramebufferAttachmentParameter

* GlStateManager#method_29334(0) -> getActiveBoundTexture

* GlStateManager#method_29331(8) -> copyTexSubImage2D

* GlStateManager#getFramebufferAttachmentParameter(0) -> getFramebufferDepthAttachment

* Framebuffer#copyFrom(1) -> copyDepthFrom

* WorldRenderer%field_25275 -> entityFramebuffer

* WorldRenderer%field_25276 -> particleFramebuffer

* WorldRenderer%field_25274 -> translucentFramebuffer

* RenderPhase%field_25281 -> PARTICLES_TARGET

* RenderPhase%field_25280 -> TRANSLUCENT_TARGET

* RenderPhase%field_25282 -> WEATHER_TARGET

* RenderPhase%field_25283 -> CLOUDS_TARGET

* RenderPhase%field_25284 -> ITEM_TRANSPARENCY

* RenderPhase$DepthTest%field_22242 -> depthFunction

* +133 doc in RenderPhase$DepthTest%depthFunction

* WorldRenderer#method_29362(0) -> getParticlesFramebuffer

* WorldRenderer%particleFramebuffer -> particlesFramebuffer

* WorldRenderer%field_25278 -> cloudsFramebuffer

* WorldRenderer%field_25277 -> weatherFramebuffer

* WorldRenderer%field_25279 -> transparencyShader

* WorldRenderer#method_29365(0) -> loadTransparencyShader

* Lowercase 2d

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Revert "Entity#isAlive(0) -> isValid"

This reverts commit 0199e61e68.

* Remove whitespace

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-05-31 18:21:17 +01:00
Deximus-Maximus 2fbbb01395
Misc. Issue Resolution (#1401)
* PlayerAbilitiesS2CPacket.fovModifier -> walkSpeed (#1392)

* GameJoinS2CPacket seed -> sha256Seed (#1360)

* checkBlockRerender -> scheduleBlockRerenderIfNecessary (#1332)

* StatusEffectType -> StatusEffectCategory (#1036)
StatusEffect -> StatusEffectType
StatusEfectInstance -> StatusEffect
(and related names)

* SettingsScreen -> OptionsScreen (#787)
AccessibilityScreen -> AccessibilityOptionsScreen
Moved OptionsScreen to options package with all the other options screens

* Finishes making maximum/minimum -> max/min (#672)
(the ones in TreeDecoratorConfig as they have no postfix)

DefaultBiomeFeatures moved to world/gen/feature from world/biome (#667)

* fix missing file

* Revert "StatusEffectType -> StatusEffectCategory (#1036)"

This reverts commit 07f887a3d2.

* fix capitalization

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/client/render/WorldRenderer.mapping

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>

* Update mappings/net/minecraft/client/render/WorldRenderer.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/client/render/WorldRenderer.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/world/World.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
2020-05-30 19:31:17 +01:00
modmuss50 e9c5c02d50 20w22a 2020-05-29 14:31:34 +01:00
2xsaiko 77f8ede4b4
20w20a mappings (#1353)
* 20w20a mappings

* GameModeSelectScreen -> GameModeSelectionScreen

* Revert class_5281 to obfuscated in favor of #1350

* Some improvements

* worldBorderProperties -> worldBorder

* Merge non-conflicting names

* Rename some existing mappings where names got lost

* Small changes

* Remove leftover rebase tags

* Remove duplicate mappings

* 20w21a changes

* Cleanup & Map ChunkGeneratorType.Preset

* Adjust DimensionType mappings

* hellish -> hasCeiling
2020-05-20 22:57:06 +01:00
modmuss50 015995dd3f 20w20a 2020-05-13 18:06:00 +01:00
Joseph Burton 7725dcb827
Lots of entity mappings (#1322)
* Lots of entity mappings

* Apply review suggestions

* Apply more review suggestions

* Tweak drowned and enderman mappings

* Properly rename EndermanEntity.chasing -> provoked

* capChange -> stepTowards
2020-05-06 21:49:35 +01:00
modmuss50 ef74eec9c1 20w19a 2020-05-06 18:28:56 +01:00
Joseph Burton d31805d0b7
Block Action -> Synced Block Event. Level Event -> Synced World Event (#1323)
* block action -> synced block event, level event -> synced world event

* Missed a couple, made parameters consistent
2020-05-02 21:29:07 +01:00
Yanis48 1f2d9d7e4b
Bring back the parameters (#1307)
* Bring back the parameters

* better

* isBlock -> matches

* matches -> is / isOf
2020-05-02 13:31:02 +01:00
liach 3dff7b8529
Restore missing BeeDebugRenderer$Bee (#1314)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-05-02 00:40:51 +01:00
liach c1df20bd04
item property getter (#1305)
* item property getter

Signed-off-by: liach <liach@users.noreply.github.com>

* rename this to model predicate provider as it provides values for model predicates

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-30 12:20:29 +01:00
modmuss50 9a617e4707 20w18a 2020-04-29 17:24:56 +01:00
modmuss50 659b0da1dd 20w17a 2020-04-22 16:59:47 +01:00
liach 7180726b1f
Fix javadoc warnings (#1286)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-18 14:55:18 +01:00
modmuss50 863b0e905c 20w16a 2020-04-15 16:34:32 +01:00
Shnupbups 558487a1c0
i mapped things: HD remaster (#1271)
* some stuff HD remaster

* Update mappings/net/minecraft/world/biome/BasaltDeltaBiome.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Delta -> Deltas

* Apply suggestions from code review

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/world/gen/feature/DeltaFeatureConfig.mapping

Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-04-14 15:01:16 +01:00
liach 159546e8cd
Map some 20w15a new classes (entities, enchantments) (#1269)
* Map some 20w15a new classes (entities, enchantments)

Signed-off-by: liach <liach@users.noreply.github.com>

* Some javadocs

* Just refer by id

Signed-off-by: liach <liach@users.noreply.github.com>

* Fix bad class name

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-04-08 21:48:41 +01:00
Shnupbups 5ef7ccfb9b
some 14a stuff (#1251)
* some 14a stuff

* Apply suggestions from code review

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>
Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-04-03 20:11:08 +01:00
modmuss50 0c14fa6444 20w14a 2020-04-02 18:40:17 +01:00
Yanis48 d154cce219
block entity mappings (#1237) 2020-04-01 02:02:51 +01:00
­Sollace 3d228282e6
Renderer mappings (#988)
* part.render(matrix, vertices, light, overlay, red, green, blue, alpha)

* Fixed bad names

* Determined by the call to part.render(matrix, vertices, light, overlay)
  which delegates to part.render(matrix, vertices, light, overlay, 1, 1, 1, 1)

* Now we extrapolate to everything that calls part.render(matrix, vertices, light, overlay)
  Meanhile VertexConsumerProvider is

* Now we extrapolate to everything that cals pars.render(matrix, vertices, light, overlay, red, green, blue, alpha)

* This is not a render method! It sets the yaw and pitch on the skull

* Now we extrapolate to things that call mode.render(matrix, vertices, light, overlay, red, green, blue, alpha)
  Not much to change there though

* These are known from EntityRenderDispatcher

* render calls renderLabelIfPresent

* Now we're looking at things which call EntityRenderDispatcher.render(entity, x, y, z, yaw, matrix, provider, light)

* In ClientPlayNetworkHandler.onItemPickupAnimation the second entity is gotten from packet.getCollectorEntityId and defaulted to the player if null. The first entity is an item entity or an experience orb entity

* Going back to EntityRenderDispatcher, we can see the code for rendering shadows was moved here from the renderer itself

if (this.gameOptions.entityShadows && this.renderShadows && entityRenderer14.shadowRadius > 0.0f && !entity.isInvisible()) {
    double double22 = this.getSquaredDistanceToCamera(entity.getX(), entity.getY(), entity.getZ());
    float float24 = (float)((1.0 - double22 / 256.0) * entityRenderer14.field_4672);
    if (float24 > 0.0f) {
       renderShadow(matrix, provider, entity, float24, tickDelta, this.world, entityRenderer14.shadowRadius);
    }
}

* The last parameter is shadow radius, but to be sure we check, nd indeed it is reduced when the rendered entity is a baby

    private static void renderShadow(MatrixStack matrix, VertexConsumerProvider provider, Entity entity, float float4, float tickDelta, WorldView world, float radius) {
        float float8 = radius;
        if (entity instanceof MobEntity) {
            if (((MobEntity)entity).isBaby()) {
                float8 *= 0.5f;
            }
        }

* float4 was a myster, but it's just passed down as-is and used to determine the opacity of the shadow!

float float16 = (float)((opacity - (y - pos.getY()) / 2.0) * 0.5 * world.getBrightness(pos));
if (float16 >= 0.0f) {

* Forgot this one

* This is all low-hanging fruit.

* EntityRenderDispatcher.shouldRender(entity, frustrum, x, y, z)
-> EntityRenderer.isVisible(entity, frustrum, x, y, z)
-> Entity.shouldRenderFrom(x, y, z)

    @Environment(EnvType.CLIENT)
    public boolean shouldRenderFrom(double x, double y, double z) {
        double double8 = this.getX() - x;
        double double10 = this.getY() - y;
        double double12 = this.getZ() - z;
        double double14 = double8 * double8 + double10 * double10 + double12 * double12;
        return this.shouldRenderAtDistance(double14);
    }

* More things we know

* This is set by calling entity.getLeaningPitch

* This is only overriden by CreeperEntityRenderer and returns a float computed from the fuse time.
The value is then passed to getOverlay where it's passed to OverlayTexture.getU(animationCounter).

This causes the creeper to flash white when active. The same method,
interestingly, will use the V to create the hurt/death overlay

OverlayTexture.packUv(
	OverlayTexture.getU(animationCounter),
	OverlayTexture.getV(entity.hurtTime > 0 || entity.deathTime > 0)
)

* The final patches

* xrayEnabled -> isGlowing

* Commit suggestions/name changes I missed during rebase

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Fix typos

* yaw -> tickDelta

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* provider -> vertexConsumers

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* matrix -> matrices

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Fixed some encorrect names

* entry -> matrices

* textureU/V -> u/v

* isBanner -> isBannerBlock

* frustrum -> frustum

Co-Authored-By: Gegy <gegy1000@gmail.com>

* Fix broken/changed mappings for 20w10a

* grammar

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/client/particle/ItemPickupParticle.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Gegy <gegy1000@gmail.com>
2020-03-27 11:06:32 +00:00
liach ab49bb2e7b
Jigsaw and rotation/rule test stuff (#1227)
Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-26 14:10:31 +00:00
Yanis48 f3692142b6
Strider entity mappings (#1225)
* strider entity mappings

* some additions

* changes

* changes

* Update ItemSteerable.mapping

* class_4988
2020-03-26 14:09:47 +00:00
modmuss50 a068df5d3d 20w13a 2020-03-25 17:49:03 +00:00
­Sollace 0f9c44a541
Mappings relating to code that uses CsvWriter (#1186)
* Mappings relating to code that uses CsvWriter

* ok

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* 👌

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/server/world/ChunkTicketManager.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* directionalLighting -> shade

* Revise param names for createArea

* @Sollace misreads the code again

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2020-03-20 18:16:55 +00:00
Yanis48 666890b9d8
Made some entity renderer and model fields and parameters consistent (#1176)
* Entity renderers' SKIN -> TEXTURE & made some parameters consistent

* some fields and constructor parameters in model classes

* shulker colored textures

* Update mappings/net/minecraft/client/render/entity/WitherEntityRenderer.mapping

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Update mappings/net/minecraft/client/render/entity/WitherSkullEntityRenderer.mapping

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-03-13 13:54:42 +00:00
Juuxel 08f62761fc
EnderCrystal -> EndCrystal, #1163 improvements (#1173)
The end crystal entity is registered as minecraft:end_crystal.
2020-03-11 16:17:29 +00:00
liach 7bd162989d
Pick up rendering stuff and dragon stuff (#1163)
* Pick up #1026 and adjustments

ArmorFeatureRenderer, BipedEntityModel and some player stuff

Parrot entity rendering fixes

At the moment, I don't know the difference between method_17110 and method_17111.

method_17110 -> animateModel

Still a provisional name.

Finish the other feature renderers (except CapeFeatureRenderer)

Name methods involving armor stands

Work on Ender Dragon-related things

overlay{Message, Tinted} -> {message, tinted}

Add docs for ClientPlayerEntity#wateriness (now wetness)

ClientPlayerEntity#getVisibilityReductionFromWater -> getScaledWetness

Actually add javadocs

newHealth -> health

DragonFireballEntityRenderer#FIREBALL -> LAYER

* Update mappings/net/minecraft/client/render/RenderLayer.mapping

Co-authored-by: Kyarei <uruwi@protonmail.com>
2020-03-11 15:09:33 +00:00
liach d24dec94fb
Plant block, smithing table container, data gen, dfu, dynamic seriali… (#1148)
* Plant block, smithing table container, data gen, dfu, dynamic serializable boolean

Signed-off-by: liach <liach@users.noreply.github.com>

* updateresult

Signed-off-by: liach <liach@users.noreply.github.com>

* Some biome sound and container screen etc

Signed-off-by: liach <liach@users.noreply.github.com>

* More stuff
block state model generator is too big, maybe need cloak (enigma too slow)

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/container/ForgingContainer.mapping

* conatiner name -> screen title

Signed-off-by: liach <liach@users.noreply.github.com>

* Document the 3 types of sounds; biome ambient sound player -> effect sound player

Signed-off-by: liach <liach@users.noreply.github.com>

* Update ModelIds.mapping

* container -> screen handler

Signed-off-by: liach <liach@users.noreply.github.com>

* Update mappings/net/minecraft/client/gui/screen/ingame/SmithingScreen.mapping

Missed this boi

Co-authored-by: liach <liach@users.noreply.github.com>
2020-03-08 22:23:40 +00:00
Yanis48 168d6b23ec
Random fixes (#1162) 2020-03-08 22:14:25 +00:00
modmuss50 f339c99217
some piglin stuff + misc (#1144)
* some piglin stuff + misc

* Update mappings/net/minecraft/entity/mob/ZombifiedPiglinEntity.mapping

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* more stuff

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-03-05 21:40:35 +00:00
modmuss50 1b7aa91a4d 20w10a
bit of a big one
2020-03-04 20:22:46 +00:00
liach d924b03325
Eliminate all unmapped classes from yarn (#1135)
Signed-off-by: liach <liach@users.noreply.github.com>
2020-02-28 18:28:02 +00:00
modmuss50 8e7f7a8d35 20w09a 2020-02-26 17:56:39 +00:00
liach b00c92199f
Map new classes, staging (#1122)
Map new classes, staging
2020-02-24 20:14:56 +00:00
qouteall b9aaf4b959
small things (#1130)
* ServerPlayNetworkHandler#method_20630(1) -> isPlayerCollidingWithBlocks

* GameRenderer#method_22973(3) -> getBasicProjectionMatrix

* GameRenderer#method_22709(1) -> loadProjectionMatrix

* Update ServerPlayNetworkHandler.mapping
2020-02-22 23:05:53 +00:00
LambdAurora f20fc8f630
Rename every view argument to world and random additions. (#1114)
* WIP on view argument nuking.

* More mappings.

* Nuke remaining view arguments.

* FeatureRendererContext#getTexture() ARG 1 wolf -> entity
2020-02-17 13:48:43 +00:00