Commit Graph

214 Commits

Author SHA1 Message Date
Shnupbups ebb104d39e
More 23w45a stuff, including unpicks (#3728)
+ a couple of random tiny things
2023-11-12 12:36:29 +09:00
apple502j f8d26ea5f4
23w45a misc (#3726)
* 23w45a misc

* Add unpick
2023-11-12 00:58:28 +11:00
Shnupbups bc0aacbaff
23w45a stuff (#3719)
* 23w45a stuff

very unfinished, lots still left to do
feel free to add to this

* map class_8984
2023-11-10 00:13:56 +09:00
Shnupbups 6f328548df
23w44a stuff (#3714)
* 23w44a stuff

None of the command stuff here - I tried but scrapped it all, I don't understand that stuff lol

* fixes
2023-11-02 14:02:01 +09:00
modmuss50 e48363370c 23w44a 2023-11-01 16:08:21 +00:00
apple502j aa19b05380
23w43a more stuff (#3709)
* 23w43a more stuff

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

Co-authored-by: YanisBft <yanis.briffaut@gmail.com>

---------

Co-authored-by: YanisBft <yanis.briffaut@gmail.com>
2023-10-28 12:19:46 +11:00
Shnupbups 96e9bc2d65
23w43a stuff (#3706)
* 23w43a stuff

No tick stuff in this PR

* Update mappings/net/minecraft/data/client/BlockStateModelGenerator.mapping

Co-authored-by: YanisBft <yanis.briffaut@gmail.com>

---------

Co-authored-by: YanisBft <yanis.briffaut@gmail.com>
2023-10-26 11:35:51 +02:00
modmuss50 06ee097207 23w43a 2023-10-25 16:10:58 +01:00
Shnupbups f128da972b
More 23w40a stuff (#3685) 2023-10-06 22:50:47 +09:00
bluebear94 46503b6892
1.20 client mappings (#3582)
* Map LogoDrawer constants

* Map constants in PlayerSkinDrawer

Since we can’t consult mojmap, the precise meanings of the various
‘8’ constants will remain elusive. The mappings in this commit
are inferred from the position of the ‘40’ (FACE_OVERLAY_X).

* Map more GUI constants

* Add parameter mapping for SpectatorHud.cycleSlot

* Map two Particle fields

* Map the rest of the Frustum class

* Map WorldRenderer

* Add mappings for debug renderers and entity models

* SinglePartEntityModel.ZERO → TEMP

This is not always zero; rather, it is used for temporary storage.

* Add more mappings for SplashTextRenderer

* Fix javadocs for SplashText.render’s alpha parameter

* Map screen handler constants

* Map interactivity parameters for structure blocks

* Add mappings for various fixes

* Implement suggested changes

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Shnupbups <shnupbups@gmail.com>
2023-06-29 11:48:21 +01:00
apple502j 48a697cbb2
1.20-pre2 stuff (#3579)
* 1.20-pre2 stuff

* Update mappings/net/minecraft/screen/AnvilScreenHandler.mapping

* Update mappings/net/minecraft/recipe/Ingredient.mapping
2023-05-18 20:15:52 +09:00
Shnupbups c9b27361a0
23w13a stuff (#3530)
* 23w13a stuff

Much of the changes to lighting are still unmapped as I'm feeling too small brain to figure them out right now.

* dropped hanging sign block stuff

Apple says theirs is better :)

* drop projectileutil
2023-03-30 02:01:36 +09:00
Shnupbups 61628fa98e
Misc small things (#3517)
* Misc small things

Looked at the mapping stats graph and went through and mapped some things

* Update BuiltinBiomes.mapping

* Update mappings/net/minecraft/world/gen/structure/RuinedPortalStructure.mapping

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-28 21:21:44 +09:00
Shnupbups c9788b4f8e
1.19.4-pre1 stuff (#3515)
* 1.19.4-pre1 stuff

Might do more later

* little more

* Suggestions
2023-02-24 20:56:03 +09:00
apple502j 22afda81cb
23w07a client (#3496) 2023-02-17 18:09:58 +11:00
Shnupbups 81301f8764
23w07a stuff (#3492)
* 23w07a stuff

Got a bit carried away...

Some names aren't ideal, and there's still more that could be done, so feedback is appreciated

* More + suggestions
2023-02-16 21:22:27 +09:00
Shnupbups ec08cd64c5
23w06a Display Entities (#3477)
and related stuff
2023-02-09 08:01:05 +09:00
apple502j fdc46b9335
More 23w05a stuff (#3472)
* 23w05a stuff

* FIx MatrixUtil javadoc

* Fix javadoc

---------

Co-authored-by: YanisBft <yanis.briffaut@gmail.com>
2023-02-08 14:53:33 +00:00
Shnupbups e9dc3a1c4d
23w03a stuff (#3458)
* 23w03a stuff

kinda rough, but i need sleep

* Delete C2SBundlePacket.mapping
2023-01-20 13:10:00 +09:00
Shnupbups 55dd7f6fd5
1.19.3-pre3 stuff (#3437)
* 1.19.3-pre3 stuff

* javadoc fix

100acb44f5 (r91439942)

* Update mappings/net/minecraft/sound/SoundEvent.mapping

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2022-11-30 18:58:00 +01:00
modmuss50 100acb44f5 1.19.3-pre3 2022-11-29 15:35:55 +00:00
apple502j 743a512a6d
22w46a client (#3414)
* 22w46a client

* Add head to vex model javadoc
2022-11-21 19:45:10 +00:00
Shnupbups a675bd1685
22w46a Note Block and Piglin Head (#3406) 2022-11-16 20:32:31 +00:00
apple502j bae43effff
22w45a client (#3398) 2022-11-15 17:04:16 +00:00
Shnupbups 309902bd3a
22w45a misc (#3395) 2022-11-10 08:18:14 +09:00
modmuss50 76d101e1c9 22w45a 2022-11-09 15:51:18 +00:00
Shnupbups e488670b8d
Client stuff (#3381)
just a few misc things in the client package
2022-11-04 09:32:43 +09:00
apple502j 657bc4749b
22w43a stuff (#3369)
* 22w43a stuff

* Fix javadoc

* Map more stuff

* More field mappings

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

* Apply suggestions from code review
2022-11-01 22:11:24 +11:00
modmuss50 aa17ad327b 22w43a 2022-10-26 15:05:20 +01:00
apple502j 69ef5d1276
22w42a client (#3352)
* 22w42a client

* Fix javadoc

* Drop invalid mappings

* Fix javadoc from previous PRs

* Rename getFeatureSet

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

* Rename UnclampedModelPredicateProvider

* Rename BipedStateModel#setAttributes
2022-10-26 17:44:19 +09:00
apple502j bfd3542a4d
22w42a sprites (#3342)
* 22w42a sprites

* Finish mapping sprites

* Rename validateParent

* Rename sprite loader methods
2022-10-26 17:44:06 +09:00
Shnupbups 05be0bde2e
22w42a hanging signs (#3331)
* 22w42a hanging signs

* whoops forgot the BER

* rotationpropertyhelper

* Apply suggestions from code review

* math indeed

* dangit github
2022-10-20 19:23:06 +01:00
Shnupbups 52d825a351
22w42a Chiseled Bookshelves and Bamboo stuff (#3327)
* 22w42a Chiseled Bookshelves and Bamboo stuff

including raft

* whoops forgot this

* more stuff

* more stuff

* Apply suggestions from code review
2022-10-20 18:36:31 +01:00
Shnupbups 9fc3154726
22w42a Camels (#3325)
* Camels stuff part 1

WIP

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

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

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

* more camel stuff

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2022-10-20 18:34:35 +01:00
Player be004e3916 22w42a 2022-10-19 19:11:34 +02:00
apple502j 18b806e7c7
Fix typo, javadoc, etc (#3264)
* Fix typo, javadoc, etc

* Fix indent error

* More typo fix

* One more javadoc fix

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-08-12 11:48:14 +01:00
Shnupbups a8e67455be
Allay Duplication mechanic and related (#3213) 2022-06-19 13:59:19 +01:00
apple502j 1adf25af2e
22w19a misc (#3159)
* 22w19a misc

* Drop BufferBuilder mapping

* Apply suggestions from code review

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

* Wait what, I haven't pushed Realms32BitWarningChecker!?

* Fix javadoc

* Update mappings/net/minecraft/client/render/chunk/ChunkBuilder.mapping

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2022-05-17 12:53:58 +01:00
Player 33ca01b966 22w19a 2022-05-12 20:28:43 +02:00
Shnupbups d9b288b901
22w18a stuff (#3137)
* 22w18a stuff

oh gosh oh heck

* whoops i did more

* Update Registry.mapping

* fixes

* Update MinecraftServer.mapping

* Apply suggestions from code review

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
Co-authored-by: frqnny <45723631+frqnny@users.noreply.github.com>

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
Co-authored-by: frqnny <45723631+frqnny@users.noreply.github.com>
2022-05-11 19:28:01 +01:00
Player 5dc883892e 22w18a 2022-05-04 20:34:27 +02:00
apple502j f9bbd6124b
Map rendering stuff (#3114)
* Map rendering stuff

* Apply suggestions from code review

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

* Map a GLFW const in Clipboard

* GlBlendState: use names from OpenGL

* Fix mappings for BufferRenderer

* Add unpick definitions for GL and GLFW

* Fix unpick

* Apply suggestions from code review

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2022-04-27 16:40:20 +00:00
enbrain fe3bdd302d
Fix typo: FrogEntityModel.rightLEg -> rightLeg (#3088) 2022-04-11 18:26:32 +00:00
Shnupbups 42acd4afae
22w14a stuff 2: electric boogaloo (#3085)
* 22w14a stuff 2: electric boogaloo

* Update mappings/net/minecraft/predicate/entity/TypeSpecificPredicate.mapping

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2022-04-11 14:39:36 +00:00
apple502j 95ba1767b5
22w14a random (#3080)
* 22w14a random package move, BlockingSimpleRandom

* Map new util methods for shuffling

* 22w14a random params
2022-04-07 15:14:42 +01:00
Player 13c4ad0853 22w14a 2022-04-06 21:01:01 +02:00
Shnupbups b029eaf79c
22w13a stuff (#3070)
* 22w13a stuff

* more stuff

dunno about this structure stuff tbh might delete later

* remove duplicates

* Apply suggestions from code review

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
2022-04-06 13:34:24 +00:00
apple502j fa051488ea
22w12a chest boat (#3058)
* 22w12a chest boat

* FIx some names
2022-03-30 09:18:07 +00:00
Shnupbups 77aef71b0a
22w12a stuff (#3059)
* 22w12a stuff

* fixes from @apple502j and a bit more

* Update mappings/net/minecraft/block/entity/SculkShriekerWarningManager.mapping

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
2022-03-30 09:10:15 +00:00
Player f5611fdd0f Port from 1.19-exp1 2022-03-24 23:48:18 +01:00
modmuss50 18cd8cc489 22w12a 2022-03-24 19:10:04 +00:00
Shnupbups 64377ac365
22w11a stuff (#3044)
* this is all i can bear to do for now, im tired

* i lied

* Update DispenserBehavior.mapping

* have a little more, as a treat

* fixes

* *more* stuff

* more animation stuff

* model parts

* initAndGetDefault

y'all have some weird defaults mojang
2022-03-19 15:55:02 +00:00
Jake Potrebic 45c56b435b
Rename flag from 'scared' to 'sitting' (#2965)
When you send the entity metadata packet with the appropriate update to the client
the panda's behavior can be better described as sitting up rather than being scared
2022-02-22 16:59:28 +00:00
enbrain 83d7540f2f
Fix javadoc reference errors (#2871) 2021-11-23 10:37:28 +00:00
Shnupbups 72c878c76c
Mapping Bonanza Part 1: Client stuff (#2845)
* Client stuff

* Update mappings/net/minecraft/client/font/BlankGlyph.mapping

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
2021-11-22 15:28:19 +00:00
modmuss50 d792ab8d27 1.18-pre2 2021-11-16 18:18:51 +00:00
ByMartrixX 5c3acefeeb
Use upper snake case with static final fields (#2624)
* Use upper snake case with static final fields

* Fix fields that I missed
2021-08-07 16:51:52 +01:00
ByMartrixX 552595f20f
Some entity renderer and model mappings (#2566)
* Some entity renderer and model mappings

* More mappings

* Update mappings, add some parameters
2021-07-13 03:05:29 +00:00
YanisBft 86a0f7ffb8
Some client mappings (#2481)
* Some client mappings

* Update mappings/net/minecraft/client/gui/widget/EntryListWidget.mapping

Co-authored-by: ByMartrixX <47987888+ByMartrixx@users.noreply.github.com>

* Update mappings/net/minecraft/client/gui/widget/EntryListWidget.mapping

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

Co-authored-by: ByMartrixX <47987888+ByMartrixx@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-06-09 00:16:31 +01:00
LambdAurora a0ec4231f8
Entity and entity models documentations (#2431)
* Map some axolotl stuff and start work on entity and entity models documentation.

* Improve entity models documentation.

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

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

* More entity model documentation.

* Axolotl brain and tasks.

* Update mappings/net/minecraft/client/render/entity/model/CatEntityModel.mapping

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

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-05-29 11:52:11 +01:00
Shnupbups fd0d13ce44
21w20a stuff (#2417)
* 21w20a stuff

* Apply suggestions from code review

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

* AngledModelEntity

idk about the name but eh

* Update HoeItem.mapping

* Update FoodComponent.mapping

* stuff

* Update ItemCooldownManager.mapping

* Revert "Merge branch '21w20a-stuff' of https://github.com/Shnupbups/yarn into 21w20a-stuff"

This reverts commit 494e736d32, reversing
changes made to c481e02b48.

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2021-05-24 14:46:09 +01:00
Player 38f713e4fc 21w20a 2021-05-19 19:20:40 +02:00
haykam821 1317eb48c0
Make the parameter for equals methods consistent (#2361)
* Make the parameter for equals methods consistent

Fixes #2299

* Add conventions for the correct parameter for equals methods
2021-04-29 17:12:46 +01:00
Shnupbups 19c661296a
more 21w14a stuff (#2300)
* stuff

mostly client stuff

* Apply suggestions from code review

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

* 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>
2021-04-10 18:09:14 +01:00
LambdAurora 3d45004495
Map some stuff in entity models. (#2267)
* Map some stuff in entity models.

* Update mappings/net/minecraft/client/render/entity/model/ModelWithHat.mapping

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-04-03 13:30:15 +01:00
YanisBft da26f6b3ba
Entity model part constants (#2222)
* Entity model part constants

* "constants" -> "names"

* add target methods but it still doesn't work

* add even more target methods, but it still still doesn't work

* finally (thx liach)
2021-04-03 09:34:51 +01:00
Alexander 56d442309e
Goat mappings (#2220)
* Goat mappings

* Fix Goat renderer and model packages
2021-04-01 13:21:58 +01:00
Shnupbups 2b7b0f411f
render (#1972) 2021-01-23 21:21:31 +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
­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 b4c1720de7 20w48a 2020-11-25 18:55:46 +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
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
YanisBft fa6bfa04c2
Entity model things (#1759)
* Entity model things

* Update TurtleEntityModel.mapping
2020-10-01 23:33:31 +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
Yanis48 4b5dadbafa
Quick fixes (#1534)
* Quick fixes

* Update EntryListWidget.mapping
2020-07-05 13:45:54 +01:00
modmuss50 a4305ccae9 1.16-pre8 2020-06-17 17:11:43 +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
­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
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
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
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 1b7aa91a4d 20w10a
bit of a big one
2020-03-04 20:22:46 +00:00
liach b00c92199f
Map new classes, staging (#1122)
Map new classes, staging
2020-02-24 20:14:56 +00:00
Shnupbups 18a0bd11f1
A few 1.16 mappings (#1091)
* A few 1.16 mappings

* Update and rename WeepingVInesPlantBlock.mapping to WeepingVinesPlantBlock.mapping

* more stuff

* Wall mappings

ioly partially done, but eh

* Update and rename WallType.mapping to WallShape.mapping

* Update Properties.mapping

* Update WallBlock.mapping

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

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

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-02-06 20:02:23 +00:00
modmuss50 b3d3023795 1.15-pre4 2019-12-03 13:35:46 +00:00
modmuss50 89b749da2a Update enigma for Javadoc support.
Mappings were re-written storing the inner classes at the end of the file.
2019-12-02 13:55:18 +00:00
Runemoro 966033b532 More rendering mappings (#986)
* More rendering mappings

* Even more rendering mappings

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

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

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

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

* Fix HashStrategy removed in last PR

* Fixes by liach
2019-12-02 13:47:40 +00:00
Runemoro 35d803542c Model part mappings (#982)
* Model part mappings

* Fix

* Suggestions by liach

* Fix
2019-11-25 13:58:59 +00:00
modmuss50 a2adfae9eb Remove a conflicting method
This time on the right branch
2019-11-21 19:43:37 +00:00
modmuss50 9fb64b9b26 1.15-pre1 2019-11-21 19:13:18 +00:00
­Sollace 9b09c7929c Rename the body parts to be more descriptive (#950)
* Rename the body parts to be more descriptive

* unmap "accept" method

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

* Mapped the quadrupedal model fields

* StrayEntityModel -> SkeletonEntityModel

* Map parameters
2019-11-18 13:11:10 +00:00
modmuss50 3bf4ded164 19w45a 2019-11-07 19:37:31 +00:00