Explosions (#1429)

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

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2020-06-07 09:33:15 -05:00 committed by GitHub
parent 3eb088abba
commit 4edabede94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 35 additions and 2 deletions

View File

@ -13,4 +13,13 @@ CLASS net/minecraft/class_4969 net/minecraft/block/RespawnAnchorBlock
ARG 2 state
METHOD method_27353 isNether (Lnet/minecraft/class_1937;)Z
METHOD method_29289 isChargeItem (Lnet/minecraft/class_1799;)Z
ARG 0 stack
METHOD method_29290 canCharge (Lnet/minecraft/class_2680;)Z
ARG 0 state
METHOD method_29560 hasStillWater (Lnet/minecraft/class_2338;Lnet/minecraft/class_1937;)Z
ARG 0 pos
ARG 1 world
METHOD method_29561 explode (Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
ARG 1 state
ARG 2 world
ARG 3 explodedPos

View File

@ -0,0 +1 @@
CLASS net/minecraft/class_1286 net/minecraft/entity/damage/BadRespawnPointDamageSource

View File

@ -67,7 +67,7 @@ CLASS net/minecraft/class_1282 net/minecraft/entity/damage/DamageSource
METHOD method_5522 arrow (Lnet/minecraft/class_1665;Lnet/minecraft/class_1297;)Lnet/minecraft/class_1282;
ARG 0 projectile
ARG 1 attacker
METHOD method_5523 netherBed ()Lnet/minecraft/class_1282;
METHOD method_5523 badRespawnPoint ()Lnet/minecraft/class_1282;
METHOD method_5524 thrownProjectile (Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)Lnet/minecraft/class_1282;
ARG 0 projectile
ARG 1 attacker

View File

@ -1 +0,0 @@
CLASS net/minecraft/class_1286 net/minecraft/entity/damage/NetherBedDamageSource

View File

@ -16,3 +16,5 @@ CLASS net/minecraft/class_1269 net/minecraft/util/ActionResult
METHOD method_23666 shouldSwingHand ()Z
COMMENT Returns whether an actor should have a hand-swinging animation on
COMMENT action performance.
METHOD method_29236 success (Z)Lnet/minecraft/class_1269;
ARG 0 swingHand

View File

@ -97,5 +97,6 @@ CLASS net/minecraft/class_2350 net/minecraft/util/math/Direction
ARG 3 directions
METHOD method_10183 random (Ljava/util/Random;)Lnet/minecraft/class_2350;
ARG 1 random
METHOD method_29716 stream ()Ljava/util/stream/Stream;
METHOD test (Ljava/lang/Object;)Z
ARG 1 direction

View File

@ -0,0 +1 @@
CLASS net/minecraft/class_5360 net/minecraft/world/explosion/DefaultExplosionBehavior

View File

@ -0,0 +1,4 @@
CLASS net/minecraft/class_5361 net/minecraft/world/explosion/EntityExplosionBehavior
FIELD field_25399 entity Lnet/minecraft/class_1297;
METHOD <init> (Lnet/minecraft/class_1297;)V
ARG 1 entity

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_1927 net/minecraft/world/explosion/Explosion
FIELD field_25400 behavior Lnet/minecraft/class_5362;
FIELD field_9184 destructionType Lnet/minecraft/class_1927$class_4179;
FIELD field_9185 entity Lnet/minecraft/class_1297;
FIELD field_9186 createFire Z
@ -35,6 +36,8 @@ CLASS net/minecraft/class_1927 net/minecraft/world/explosion/Explosion
METHOD method_17752 getExposure (Lnet/minecraft/class_243;Lnet/minecraft/class_1297;)F
ARG 0 source
ARG 1 entity
METHOD method_29553 chooseBehavior (Lnet/minecraft/class_1297;)Lnet/minecraft/class_5362;
ARG 1 entity
METHOD method_8346 getAffectedBlocks ()Ljava/util/List;
METHOD method_8347 getCausingEntity ()Lnet/minecraft/class_1309;
METHOD method_8348 collectBlocksAndDamageEntities ()V

View File

@ -0,0 +1,13 @@
CLASS net/minecraft/class_5362 net/minecraft/world/explosion/ExplosionBehavior
METHOD method_29554 canDestroyBlock (Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;F)Z
ARG 1 explosion
ARG 2 world
ARG 3 pos
ARG 4 state
ARG 5 power
METHOD method_29555 getBlastResistance (Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Ljava/util/Optional;
ARG 1 explosion
ARG 2 world
ARG 3 pos
ARG 4 blockState
ARG 5 fluidState