Commit Graph

56 Commits

Author SHA1 Message Date
LambdAurora 355c529aa1
NBT refactor: step 3 (#2257)
* Refactor NBT parameter names and a bit more.

* Apply suggestions from code review.

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

* Apply more suggestions from code review.

* MobEntity leashTag stuff -> leashNbt

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
2021-04-02 22:03:30 +01:00
LambdAurora aaf9d28388
Refactor toTag/fromTag to follow current conventions. (#2037)
* Refactor toTag/fromTag to follow current conventions.

* More refactor.

* Refactor saveSelfToNbt and saveToNbt.

* Include more renames.

* Last automatic batch.

* Update mappings/net/minecraft/structure/StructurePiece.mapping

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

* Fix GitHub resolve conflict error.

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-02-17 18:16:46 +00:00
Shnupbups ae4a1cc89b
Entity package stuff (#1979)
* entity

* forgot this

* this too

* Update mappings/net/minecraft/entity/projectile/FishingBobberEntity.mapping

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

* 2 more things

* remove reference to ItemStackHolder

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2021-01-25 18:28:38 +00:00
modmuss50 db6fa87282 20w49a 2020-12-02 18:29:46 +00:00
modmuss50 49710ba86a 1.16-pre3 2020-06-10 18:05:28 +01:00
modmuss50 0c14fa6444 20w14a 2020-04-02 18:40:17 +01:00
liach 4f26ca97bd Status effect stufff (#1068)
* Minor status effect stuff

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

* hiddenEffect

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

* Err

Signed-off-by: liach <liach@users.noreply.github.com>
2020-01-24 10:10:35 +00:00
modmuss50 f233f5a380 1.15.2-pre2 2020-01-16 15:03:24 +00:00
modmuss50 ea08e25f4f 1.15.2-pre1 2020-01-14 20:22:47 +00:00
Pyrofab 7b6268654f Remaining StatusEffect methods (#1043)
* StatusEffect#method_5563(2) -> adjustModifierAmount

* StatusEffect#adjustModifierAmount(2)[1 = ] -> amplifier

* StatusEffect#adjustModifierAmount(2)[2 = ] -> modifier

* StatusEffect#method_5573(0) -> isBeneficial

* StatusEffect#onApplied(3)[1 = ] -> entity

* StatusEffect#onApplied(3)[2 = ] -> attributes

* StatusEffect#onApplied(3)[3 = ] -> amplifier

* StatusEffect#onRemoved(3)[1 = ] -> entity

* StatusEffect#onRemoved(3)[2 = ] -> attributes

* StatusEffect#onRemoved(3)[3 = ] -> amplifier

* StatusEffect#<init>(2)[2 = ] -> color

* StatusEffect#<init>(2)[1 = ] -> type
2020-01-11 15:59:27 +00:00
howtonotwin 805178edc7 Some potion-related names (#1032)
* Change some odd naming in Potion

* Some names in StatusEffectInstance
2020-01-07 00:55:16 +00:00
biom4st3r 11d3a5cf6e StatusEffect mapping and Cuboid Method rename (#906)
* Mappings for statusEffects
Changed Cuboid.copyRotation -> Cuboid.copyRotationAndPoint because of the misleading name

* Apply suggestions from code review

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

* Update mappings/net/minecraft/entity/effect/StatusEffect.mapping

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>
2019-10-30 15:50:18 +00:00
modmuss50 bf500b5591 Fix 19w38b 2019-09-18 17:39:49 +01:00
modmuss50 5f624356fc 19w38b 2019-09-18 16:29:55 +01:00
modmuss50 2565f0b45b 19w38a 2019-09-18 16:17:05 +01:00
­Sollace 7166083ec4 LivingEntity mappings (#802)
* field_6276 -> lastDamageSource
field_6226 -> lastDamageTime

* getHealthMaximum -> getMaximumHealth

* method_6124 -> getPrimeAdversary

* addPotionEffect -> addStatusEffect

* method_6009 -> onStatusEffectUpgraded
method_6020 -> onStatusEffectApplied

* clearPotionEffects -> clearStatusEffects

* method_6024 -> getLeaningPitch
field_6243 -> leaningPitch
field_6264 -> lastLeaningPitch

* Mapped all the tracking fields. (These are sent by the server and incrementally applied on the client to rubber-band entities into position)

* method_18802 -> getMovementSpeed
field_6281 -> flyingSpeed

* method_18801 -> applyClimbingSpeed

* method_6093 -> knockDownwards

* cannotMove -> isImmobile

* method_18396 -> getArmorVisibility

* isEquippedStackValid -> hasStackEquipped

* setEquippedStack -> equipStack

* attributeContainer -> attributes

* method_6039 -> isBlocking
method_6061 -> canPierceDefense

* method_6040 -> consumeItem

* method_6076 -> tickActiveItemStack

* method_6072 -> updateLeaningPitch

* method_6077 -> canEnterTrapdoor

* method_16212 -> getBlockStateUnderFeet (suggestions welcome)

* method_6095 -> absorbDamage

* field_6271 -> knockbackVelocity (or painFactor)

* field_6239 -> roll

* field_6228 -> jumpingCooldown

* field_6254 -> maxHurtTime

* method_6129 -> onStatusEffectRemoved

* field_6285 -> effectsChanged

* spawnPotionParticles -> tickStatusEffects

* method_6031 -> turnHead (as hinted by Mojang)
field_6283 -> bodyYaw
field_6220 -> prevBodyYaw

* field_6255 -> lookDirection (result of turnHead)

* method_6038 -> onDismounted (checks collisions and pushes the entity and boat apart)

* field_6267 -> diagonalSpeed

* field_6261 -> pushCooldown
method_6035 -> push (As hinted by Mojang)
tickPushing -> tickCramming (applies the cramming rule)

* field_6232 -> scoreAmount (appears unused. Value increments a score on the player when this entity is killed - see ServerPlayerEntity.updateKilledAdvancementCriterion)

* field_6253 -> lastDamageTaken (Damage amount is stored and applyDamage is called with the difference only if the new damage is higher than it was before)

* field_6275 -> prevLookDirection

* field_6269 -> defaultMaximumHealth (public, final, value is 20)

* (unused - interpolated between 0 and 0.3 when the entity is on the ground, and always 0 when riding)
field_6233 -> stepBobbingAmount
field_6217 -> prevStepBobbingAmount

* (unused - set to a random float when constructing)
field_6244 -> randomLargeSeed
field_6262 -> randomSmallSeed

* Stitch did this. I don't know why.

* StatusEffect.method_5555 -> onApplied

* canPierceDefense -> tryUseShield

* absorbDamage -> tryUseTotem

* getBlockStateUnderFeet -> getBlockState

* diagonalSpeed -> turningSpeed

* Mapped several parameters

* removeStatusEffect -> tryRemoveStatusEffect
removePotionEffect -> removeStatusEffect

* isPotionEffective -> canHaveStatusEffect

* More parameters

* tryUseShield -> blockedByShield (because "hitsShield" reads like manglish)
2019-08-22 21:25:19 +01:00
Runemoro 618083791c Fix some methods not using intermediaries (#788) 2019-07-08 18:09:22 +02:00
modmuss50 e20cfe9b0e 1.14.4-pre3 2019-07-08 13:27:46 +01:00
Adrian Siekierka ab32dae2fa 1.14.4-pre1 2019-07-03 20:50:19 +02:00
Adrian Siekierka 1a6f261a2e The Great Intermediary Update, Part 1 2019-06-28 23:55:20 +02:00
modmuss50 8554a5ae8c 1.14.3-pre2 2019-06-07 12:45:25 +01:00
Adrian Siekierka bdbf125b33 1.14.3-pre1 2019-06-03 18:48:18 +02:00
modmuss50 fa072139bf 1.14.1 Pre-Release 1 2019-05-07 17:05:49 +01:00
modmuss50 de13dda07c 1.14 Pre-Release 5 2019-04-18 22:01:39 +01:00
modmuss50 782b07c692 1.14 Pre-Release 4 2019-04-17 17:41:25 +01:00
Runemoro 7bedd4cd9f Map all commands and argument types 2019-04-11 01:58:54 -04:00
modmuss50 b13686aed0 1.14 Pre-Release 1 2019-04-10 16:36:17 +01:00
modmuss50 0e8b18ad3f 19w14b 2019-04-05 17:03:47 +01:00
Runemoro fca78f74f4 More mappings 2019-04-04 18:04:19 -04:00
Runemoro 8fb75cc949 Entity mappings 2019-04-04 16:04:27 -04:00
modmuss50 53620837bf 19w13a 2019-03-27 18:35:10 +00:00
modmuss50 b9285540bc 19w12a 2019-03-20 17:56:26 +00:00
modmuss50 eef3d973f2 Save in enigma, removes some propagated method names 2019-03-14 16:26:35 +00:00
modmuss50 e3d24ae102 19w11b 2019-03-14 15:39:51 +00:00
Adrian Siekierka 333e59da73 19w11a 2019-03-14 13:57:09 +01:00
Adrian Siekierka 436cf33f9f
improve resource mappings (#508) 2019-02-27 19:06:10 +01:00
Meredith Espinosa cdb7916a69 map the new enum for status effects (#497) 2019-02-22 13:33:25 +01:00
Adrian Siekierka c25fcbb177 19w08b 2019-02-21 19:19:18 +01:00
Adrian Siekierka 66156a5471 update to 19w08a 2019-02-20 21:49:23 +01:00
modmuss50 8a2af8044e 19w07a 2019-02-13 17:35:08 +00:00
Adrian Siekierka e2a1bba0b6 19w06a 2019-02-06 21:22:24 +01:00
Adrian Siekierka 1bfe80a06a update to 19w05a 2019-01-30 18:48:39 +01:00
Adrian Siekierka 995df6291a update to 19w04a/Enigma 0.13.x 2019-01-24 20:10:22 +01:00
modmuss50 347fd572c2 19w03a 2019-01-16 18:24:40 +00:00
Adrian Siekierka bf62f29ddf update to 19w02a 2019-01-09 18:20:38 +01:00
Adrian Siekierka c8152014af rebuild method names 2018-12-12 18:22:18 +01:00
Adrian Siekierka e9ccf701a7 port to 18w50a 2018-12-12 18:12:26 +01:00
asie 710d7d3f05 fix StatusEffectInstance 2018-12-12 15:31:23 +01:00
Adrian Siekierka 245ce1dd92 update to 18w49a 2018-12-05 15:13:16 +01:00
Adrian Siekierka 50764e1853 update to 18w48a 2018-11-29 21:10:38 +01:00
Adrian Siekierka 13ed3f8e2c update to 18w47b 2018-11-27 19:50:51 +01:00
asie 895ed3ad61 The Great Suffixification 2018-11-27 19:42:03 +01:00
Adrian Siekierka 591e770b72 update to 18w47a 2018-11-21 17:58:05 +01:00
Adrian Siekierka 1418bb1b37 update to 18w46a 2018-11-15 18:05:03 +01:00
Adrian Siekierka 47d8c24214 update to 18w45a 2018-11-07 17:37:58 +01:00
Adrian Siekierka 4e8d79aef4 move Attribute -> EntityAttribute, PotionEffectType -> MobEffect 2018-11-04 20:05:56 +01:00