Commit Graph

32 Commits

Author SHA1 Message Date
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 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
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
­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
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
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
Adrian Siekierka 333e59da73 19w11a 2019-03-14 13:57:09 +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
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
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