Mapped some stuff about fish, especially fish group and tropical fish (#341)

* Mapped some stuff about fish, especially fish group and tropical fish

also include some mob spawning/despawning mappings

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

* Fixes for review

Signed-off-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2018-12-19 13:21:43 -08:00 committed by Adrian Siekierka
parent a7b7fe0152
commit 7d736ef495
40 changed files with 154 additions and 21 deletions

View File

@ -1,6 +0,0 @@
CLASS aiw
METHOD a canStart ()Z
METHOD b shouldContinue ()Z
METHOD c start ()V
METHOD d onRemove ()V
METHOD e tick ()V

View File

@ -1,8 +0,0 @@
CLASS alz
METHOD <init> (Lagz;Lbbp;)V
ARG 1 type
METHOD N getLimitPerChunk ()I
METHOD W_ update ()V
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD n ()V

View File

@ -4,4 +4,6 @@ CLASS amx net/minecraft/entity/WaterCreatureEntity
METHOD Y updateLogic ()V
METHOD a canBeLeashedBy (Larb;)Z
METHOD bx canFly ()Z
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD d getCurrentExperience (Larb;)I

View File

@ -0,0 +1,10 @@
CLASS aiw net/minecraft/entity/ai/goal/FollowGroupLeaderGoal
FIELD a owner Lalz;
FIELD b moveDelay I
FIELD c checkSurroundingDelay I
METHOD a canStart ()Z
METHOD a getSurroundingSearchDelay (Lalz;)I
METHOD b shouldContinue ()Z
METHOD c start ()V
METHOD d onRemove ()V
METHOD e tick ()V

View File

@ -30,6 +30,7 @@ CLASS aph net/minecraft/entity/mob/DrownedEntity
ARG 1 target
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD af getSoundSwim ()Lxm;
METHOD b createNavigation (Lbbp;)Lalg;
METHOD bx canFly ()Z

View File

@ -3,6 +3,7 @@ CLASS apk net/minecraft/entity/mob/EndermiteEntity
FIELD b playerSpawned Z
METHOD D getAmbientSound ()Lxm;
METHOD W_ update ()V
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a playStepSound (Let;Lbpm;)V
ARG 1 pos
METHOD a readCustomDataFromTag (Lhs;)V

View File

@ -24,6 +24,7 @@ CLASS apn net/minecraft/entity/mob/GhastEntity
METHOD a damage (Lage;F)Z
ARG 1 source
ARG 2 amount
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD a setShooting (Z)V
METHOD b writeCustomDataToTag (Lhs;)V

View File

@ -14,6 +14,7 @@ CLASS app net/minecraft/entity/mob/GuardianEntity
METHOD a damage (Lage;F)Z
ARG 1 source
ARG 2 amount
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a onTrackedDataSet (Lpr;)V
METHOD b createNavigation (Lbbp;)Lalg;
METHOD bG getEyeHeight ()F

View File

@ -5,6 +5,7 @@ CLASS apu net/minecraft/entity/mob/HostileEntity
METHOD a damage (Lage;F)Z
ARG 1 source
ARG 2 amount
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD af getSoundSwim ()Lxm;
METHOD ag getSoundSplash ()Lxm;
METHOD bW getSoundCategory ()Lxo;

View File

@ -1,5 +1,6 @@
CLASS apq net/minecraft/entity/mob/HuskEntity
METHOD D getAmbientSound ()Lxm;
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD cv getDeathSound ()Lxm;
METHOD dB getSoundStep ()Lxm;
METHOD dC getSkull ()Lawo;

View File

@ -1,5 +1,6 @@
CLASS apt net/minecraft/entity/mob/MagmaCubeEntity
METHOD F getLootTableId ()Lqc;
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD aA getLightmapCoordinates ()I
METHOD aX isOnFire ()Z
METHOD c handleFallDamage (FF)V

View File

@ -27,7 +27,7 @@ CLASS ahf net/minecraft/entity/mob/MobEntity
METHOD A playAmbientSound ()V
METHOD D getAmbientSound ()Lxm;
METHOD F getLootTableId ()Lqc;
METHOD G ()Z
METHOD G cannotDespawn ()Z
METHOD H checkDespawn ()V
METHOD I mobTick ()V
METHOD N getLimitPerChunk ()I
@ -47,6 +47,7 @@ CLASS ahf net/minecraft/entity/mob/MobEntity
ARG 1 player
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a getPathNodeTypeWeight (Lchg;)F
METHOD a setPathNodeTypeWeight (Lchg;F)V
ARG 1 type
@ -64,6 +65,11 @@ CLASS ahf net/minecraft/entity/mob/MobEntity
METHOD b writeCustomDataToTag (Lhs;)V
METHOD b canTrack (Ljava/lang/Class;)Z
METHOD bo getSafeFallDistance ()I
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD c spawnsTooManyForEachTry (I)Z
ARG 1 count
METHOD cT ()Z
METHOD cW getMainHand ()Lahd;
METHOD ca initAttributes ()V
METHOD d getCurrentExperience (Larb;)I

View File

@ -3,6 +3,7 @@ CLASS ahl net/minecraft/entity/mob/MobEntityWithAi
FIELD b aiRadius F
METHOD <init> (Lagz;Lbbp;)V
ARG 1 type
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a setAiHome (Let;I)V
ARG 1 home
METHOD dt isInAiRange ()Z

View File

@ -14,4 +14,6 @@ CLASS apv net/minecraft/entity/mob/PatrolEntity
METHOD a readCustomDataFromTag (Lhs;)V
METHOD aK getHeightOffset ()D
METHOD b writeCustomDataToTag (Lhs;)V
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD n ()V

View File

@ -13,6 +13,7 @@ CLASS apx net/minecraft/entity/mob/PigZombieEntity
METHOD a setAttacker (Lahe;)V
METHOD a interactMob (Larb;Lafo;)Z
ARG 1 player
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD b writeCustomDataToTag (Lhs;)V
METHOD ca initAttributes ()V

View File

@ -1,15 +1,18 @@
CLASS apy net/minecraft/entity/mob/PillagerEntity
FIELD bD inventory Lafx;
METHOD D getAmbientSound ()Lxm;
METHOD G ()Z
METHOD G cannotDespawn ()Z
METHOD N getLimitPerChunk ()I
METHOD a initEquipment (Lafn;)V
METHOD a attack (Lahe;F)V
ARG 1 target
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD b writeCustomDataToTag (Lhs;)V
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD ca initAttributes ()V
METHOD cv getDeathSound ()Lxm;
METHOD dz hasArmsRaised ()Z

View File

@ -11,6 +11,7 @@ CLASS aqc net/minecraft/entity/mob/SilverfishEntity
METHOD a damage (Lage;F)Z
ARG 1 source
ARG 2 amount
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a playStepSound (Let;Lbpm;)V
ARG 1 pos
METHOD aK getHeightOffset ()D

View File

@ -26,6 +26,7 @@ CLASS aqe net/minecraft/entity/mob/SlimeEntity
METHOD X invalidate ()V
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD a onTrackedDataSet (Lpr;)V
METHOD b writeCustomDataToTag (Lhs;)V

View File

@ -1,4 +1,5 @@
CLASS aqh net/minecraft/entity/mob/StrayEntity
METHOD D getAmbientSound ()Lxm;
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD cv getDeathSound ()Lxm;
METHOD e getHurtSound (Lage;)Lxm;

View File

@ -12,6 +12,8 @@ CLASS aqn net/minecraft/entity/mob/ZombieVillagerEntity
METHOD a readCustomDataFromTag (Lhs;)V
METHOD a setConverting (Ljava/util/UUID;I)V
METHOD b writeCustomDataToTag (Lhs;)V
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD cI getSoundPitch ()F
METHOD cv getDeathSound ()Lxm;
METHOD dB getSoundStep ()Lxm;

View File

@ -10,8 +10,11 @@ CLASS ama net/minecraft/entity/passive/AnimalEntity
ARG 2 amount
METHOD a interactMob (Larb;Lafo;)Z
ARG 1 player
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD aK getHeightOffset ()D
METHOD b writeCustomDataToTag (Lhs;)V
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD d getCurrentExperience (Larb;)I
METHOD k updateMovement ()V

View File

@ -7,6 +7,7 @@ CLASS alv net/minecraft/entity/passive/BatEntity
METHOD a damage (Lage;F)Z
ARG 1 source
ARG 2 amount
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD a setRoosting (Z)V
METHOD b writeCustomDataToTag (Lhs;)V

View File

@ -30,6 +30,8 @@ CLASS amb net/minecraft/entity/passive/CatEntity
METHOD b createChild (Lags;)Lamb;
METHOD b writeCustomDataToTag (Lhs;)V
METHOD bG getEyeHeight ()F
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD c handleFallDamage (FF)V
ARG 1 fallDistance
METHOD ca initAttributes ()V

View File

@ -9,6 +9,8 @@ CLASS amc net/minecraft/entity/passive/ChickenEntity
METHOD b createChild (Lags;)Lamc;
METHOD b writeCustomDataToTag (Lhs;)V
METHOD bG getEyeHeight ()F
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD c handleFallDamage (FF)V
ARG 1 fallDistance
METHOD ca initAttributes ()V

View File

@ -3,3 +3,4 @@ CLASS amd net/minecraft/entity/passive/CodEntity
METHOD cv getDeathSound ()Lxm;
METHOD dA getFlopSound ()Lxm;
METHOD e getHurtSound (Lage;)Lxm;
METHOD l getFishBucketStack ()Lawo;

View File

@ -27,6 +27,7 @@ CLASS amf net/minecraft/entity/passive/DolphinEntity
ARG 1 player
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD af getSoundSwim ()Lxm;
METHOD ag getSoundSplash ()Lxm;

View File

@ -2,21 +2,30 @@ CLASS alx net/minecraft/entity/passive/FishEntity
CLASS alx$a FishMoveControl
FIELD i fish Lalx;
METHOD a tick ()V
CLASS alx$b
CLASS alx$b SwimToRandomPlaceGoal
METHOD a canStart ()Z
FIELD a FROM_BUCKET Lpr;
METHOD <init> (Lagz;Lbbp;)V
ARG 1 type
METHOD G ()Z
METHOD G cannotDespawn ()Z
METHOD N getLimitPerChunk ()I
METHOD a interactMob (Larb;Lafo;)Z
ARG 1 player
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD a setFromBucket (Z)V
METHOD af getSoundSwim ()Lxm;
METHOD b createNavigation (Lbbp;)Lalg;
METHOD b writeCustomDataToTag (Lhs;)V
METHOD bG getEyeHeight ()F
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD ca initAttributes ()V
METHOD dA getFlopSound ()Lxm;
METHOD dB isFromBucket ()Z
METHOD dz hasSelfControl ()Z
METHOD f copyDataToStack (Lawo;)V
METHOD k updateMovement ()V
METHOD l getFishBucketStack ()Lawo;
METHOD n ()V
METHOD y_ initDataTracker ()V

View File

@ -2,6 +2,8 @@ CLASS aly net/minecraft/entity/passive/GolemEntity
METHOD <init> (Lagz;Lbbp;)V
ARG 1 type
METHOD D getAmbientSound ()Lxm;
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD c handleFallDamage (FF)V
ARG 1 fallDistance
METHOD cv getDeathSound ()Lxm;

View File

@ -12,8 +12,11 @@ CLASS amj net/minecraft/entity/passive/OcelotEntity
ARG 1 player
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD b writeCustomDataToTag (Lhs;)V
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD c handleFallDamage (FF)V
ARG 1 fallDistance
METHOD ca initAttributes ()V

View File

@ -10,6 +10,7 @@ CLASS aml net/minecraft/entity/passive/ParrotEntity
ARG 1 player
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a playStepSound (Let;Lbpm;)V
ARG 1 pos
METHOD a readCustomDataFromTag (Lhs;)V

View File

@ -13,6 +13,7 @@ CLASS amn net/minecraft/entity/passive/PolarBearEntity
METHOD a createChild (Lags;)Lags;
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a playStepSound (Let;Lbpm;)V
ARG 1 pos
METHOD ca initAttributes ()V

View File

@ -15,5 +15,6 @@ CLASS amo net/minecraft/entity/passive/PufferfishEntity
METHOD dA getFlopSound ()Lxm;
METHOD e getHurtSound (Lage;)Lxm;
METHOD k updateMovement ()V
METHOD l getFishBucketStack ()Lawo;
METHOD n ()V
METHOD y_ initDataTracker ()V

View File

@ -24,6 +24,7 @@ CLASS amp net/minecraft/entity/passive/RabbitEntity
METHOD a createChild (Lags;)Lags;
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a readCustomDataFromTag (Lhs;)V
METHOD ax attemptSprintingParticles ()V
METHOD b createChild (Lags;)Lamp;

View File

@ -2,4 +2,6 @@ CLASS amq net/minecraft/entity/passive/SalmonEntity
METHOD D getAmbientSound ()Lxm;
METHOD cv getDeathSound ()Lxm;
METHOD dA getFlopSound ()Lxm;
METHOD dB getMaxGroupSize ()I
METHOD e getHurtSound (Lage;)Lxm;
METHOD l getFishBucketStack ()Lawo;

View File

@ -0,0 +1,23 @@
CLASS alz net/minecraft/entity/passive/SchoolingFishEntity
CLASS alz$a Data
FIELD a leader Lalz;
FIELD a leader Lalz;
FIELD b groupSize I
METHOD <init> (Lagz;Lbbp;)V
ARG 1 type
METHOD N getLimitPerChunk ()I
METHOD W_ update ()V
METHOD a joinGroupOf (Lalz;)Lalz;
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
METHOD a pullInOtherFish (Ljava/util/stream/Stream;)V
METHOD dB getMaxGroupSize ()I
METHOD dC hasLeader ()Z
METHOD dD leaveGroup ()V
METHOD dE canHaveMoreFishInGroup ()Z
METHOD dF hasOtherFishInGroup ()Z
METHOD dG isCloseEnoughToLeader ()Z
METHOD dH moveTowardLeader ()V
METHOD dI increaseGroupSize ()V
METHOD dJ decreaseGroupSize ()V
METHOD dz hasSelfControl ()Z
METHOD n ()V

View File

@ -10,6 +10,7 @@ CLASS amu net/minecraft/entity/passive/SquidEntity
METHOD a damage (Lage;F)Z
ARG 1 source
ARG 2 amount
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD bG getEyeHeight ()F
METHOD cH getSoundVolume ()F
METHOD ca initAttributes ()V

View File

@ -1,11 +1,62 @@
CLASS amv net/minecraft/entity/passive/TropicalFishEntity
CLASS amv$a Variety
FIELD m shape I
FIELD n pattern I
METHOD <init> (Ljava/lang/String;III)V
ARG 3 shape
ARG 4 pattern
METHOD a getShape ()I
METHOD a getTranslateKey (II)Ljava/lang/String;
ARG 0 shape
ARG 1 pattern
METHOD b getPattern ()I
METHOD c getTranslationKey ()Ljava/lang/String;
CLASS amv$b Data
FIELD b shape I
FIELD c pattern I
FIELD d baseColor I
FIELD e patternColor I
FIELD a COMMON_VARIANTS [I
FIELD bD SMALL_FISH_VARIETY_IDS [Lqc;
FIELD bE LARGE_FISH_VARIETY_IDS [Lqc;
FIELD bF commonSpawn Z
FIELD b VARIANT Lpr;
FIELD c SHAPE_IDS [Lqc;
METHOD D getAmbientSound ()Lxm;
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a toVariant (Lamv$a;Lavl;Lavl;)I
ARG 0 variety
ARG 1 baseColor
ARG 2 patternColor
METHOD a readCustomDataFromTag (Lhs;)V
METHOD b getToolTipForVariant (I)Ljava/lang/String;
ARG 0 variant
METHOD b writeCustomDataToTag (Lhs;)V
METHOD c spawnsTooManyForEachTry (I)Z
ARG 1 count
METHOD cv getDeathSound ()Lxm;
METHOD d getBaseDyeColor (I)Lavl;
ARG 0 variant
METHOD dA getFlopSound ()Lxm;
METHOD dI getVariant ()I
METHOD dJ getBaseColorComponents ()[F
METHOD dK getPatternColorComponents ()[F
METHOD dL getShape ()I
METHOD dM getVarietyId ()Lqc;
METHOD dN getShapeId ()Lqc;
METHOD e getHurtSound (Lage;)Lxm;
METHOD f copyDataToStack (Lawo;)V
METHOD l getFishBucketStack ()Lawo;
METHOD q getPatternDyeColor (I)Lavl;
ARG 0 variant
METHOD r getTranslationKey (I)Ljava/lang/String;
ARG 0 variant
METHOD s setVariant (I)V
METHOD t getShape (I)I
ARG 0 variant
METHOD u getBaseDyeColorIndex (I)I
ARG 0 variant
METHOD v getPatternDyeColorIndex (I)I
ARG 0 variant
METHOD w getPattern (I)I
ARG 0 variant
METHOD y_ initDataTracker ()V

View File

@ -45,6 +45,7 @@ CLASS amw net/minecraft/entity/passive/TurtleEntity
METHOD a canBeLeashedBy (Larb;)Z
METHOD a (Lbbq;Lafn;Lahh;Lahp;Lhs;)Lahp;
ARG 3 difficulty
METHOD a canSpawn (Lbbq;Lahh;)Z
METHOD a playStepSound (Let;Lbpm;)V
ARG 1 pos
METHOD a readCustomDataFromTag (Lhs;)V

View File

@ -28,6 +28,8 @@ CLASS aqr net/minecraft/entity/passive/VillagerEntity
METHOD b writeCustomDataToTag (Lhs;)V
METHOD bG getEyeHeight ()F
METHOD c getRecipes ()Lbav;
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD ca initAttributes ()V
METHOD cv getDeathSound ()Lxm;
METHOD d getVillagerWorld ()Lbbp;

View File

@ -7,12 +7,14 @@ CLASS asg net/minecraft/entity/raid/RaiderEntity
FIELD c raid Lasf;
METHOD <init> (Lagz;Lbbp;)V
ARG 1 type
METHOD G ()Z
METHOD G cannotDespawn ()Z
METHOD a onDeath (Lage;)V
METHOD a setRaid (Lasf;)V
METHOD a readCustomDataFromTag (Lhs;)V
METHOD b setWave (I)V
METHOD b writeCustomDataToTag (Lhs;)V
METHOD c canImmediatelyDespawn (D)Z
ARG 1 distanceSquared
METHOD dM hasRaidGoal ()Z
METHOD dN getRaid ()Lasf;
METHOD dP getWave ()I