mirror of https://github.com/FabricMC/yarn.git
Map block entitiy methods (#2118)
* Map block entitiy methods * Rename getOrCreateTeleportIsland to setupExitPortalLocation * Rename isChunkEmptyAt to isChunkEmpty * Map 21w10a block entity methods
This commit is contained in:
parent
e8fa3b83e4
commit
f717d5059d
|
@ -14,6 +14,7 @@ CLASS net/minecraft/class_2643 net/minecraft/block/entity/EndGatewayBlockEntity
|
|||
ARG 0 world
|
||||
ARG 1 pos
|
||||
ARG 2 searchRadius
|
||||
ARG 3 force
|
||||
METHOD method_11411 startTeleportCooldown (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)V
|
||||
ARG 0 world
|
||||
ARG 1 pos
|
||||
|
@ -42,9 +43,15 @@ CLASS net/minecraft/class_2643 net/minecraft/block/entity/EndGatewayBlockEntity
|
|||
METHOD method_11421 needsCooldownBeforeTeleporting ()Z
|
||||
METHOD method_30276 canTeleport (Lnet/minecraft/class_1297;)Z
|
||||
ARG 0 entity
|
||||
METHOD method_31698 (Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z
|
||||
METHOD method_31698 isChunkEmpty (Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z
|
||||
ARG 0 world
|
||||
METHOD method_31699 (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
|
||||
ARG 1 pos
|
||||
METHOD method_31699 setupExitPortalLocation (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
|
||||
COMMENT Finds teleport location and creates an island to teleport to (if there is none).
|
||||
COMMENT
|
||||
COMMENT <p>This does not create an exit portal.
|
||||
COMMENT
|
||||
COMMENT @return the position of the exit portal
|
||||
ARG 0 world
|
||||
ARG 1 pos
|
||||
METHOD method_31700 clientTick (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)V
|
||||
|
@ -52,7 +59,7 @@ CLASS net/minecraft/class_2643 net/minecraft/block/entity/EndGatewayBlockEntity
|
|||
ARG 1 pos
|
||||
ARG 2 state
|
||||
ARG 3 blockEntity
|
||||
METHOD method_31701 (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;
|
||||
METHOD method_31701 findTeleportLocation (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Lnet/minecraft/class_243;
|
||||
ARG 0 world
|
||||
ARG 1 pos
|
||||
METHOD method_31702 serverTick (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2643;)V
|
||||
|
|
|
@ -53,6 +53,17 @@ CLASS net/minecraft/class_2669 net/minecraft/block/entity/PistonBlockEntity
|
|||
ARG 3 amount
|
||||
METHOD method_11515 isSource ()Z
|
||||
METHOD method_23364 isPushingHoneyBlock ()Z
|
||||
METHOD method_23671 canMoveEntity (Lnet/minecraft/class_238;Lnet/minecraft/class_1297;)Z
|
||||
ARG 0 box
|
||||
ARG 1 entity
|
||||
METHOD method_23672 moveEntity (Lnet/minecraft/class_2350;Lnet/minecraft/class_1297;DLnet/minecraft/class_2350;)V
|
||||
ARG 1 entity
|
||||
METHOD method_23673 (Lnet/minecraft/class_238;Lnet/minecraft/class_1297;)Z
|
||||
ARG 1 entity
|
||||
METHOD method_23674 moveEntitiesInHoneyBlock (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;FLnet/minecraft/class_2669;)V
|
||||
ARG 0 world
|
||||
ARG 1 pos
|
||||
ARG 3 blockEntity
|
||||
METHOD method_31707 tick (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2669;)V
|
||||
ARG 0 world
|
||||
ARG 1 pos
|
||||
|
|
|
@ -4,7 +4,8 @@ CLASS net/minecraft/class_5704 net/minecraft/block/entity/SculkSensorBlockEntity
|
|||
METHOD <init> (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
||||
ARG 1 pos
|
||||
ARG 2 state
|
||||
METHOD method_32910 (II)I
|
||||
METHOD method_32910 getPower (II)I
|
||||
ARG 0 distance
|
||||
ARG 1 range
|
||||
METHOD method_32911 getEventListener ()Lnet/minecraft/class_5718;
|
||||
METHOD method_32912 getLastVibrationFrequency ()I
|
||||
|
|
|
@ -8,6 +8,7 @@ CLASS net/minecraft/class_2625 net/minecraft/block/entity/SignBlockEntity
|
|||
FIELD field_28906 FILTERED_TEXT_KEYS [Ljava/lang/String;
|
||||
FIELD field_28907 filteredTexts [Lnet/minecraft/class_2561;
|
||||
FIELD field_28908 filterText Z
|
||||
FIELD field_29225 glowingText Z
|
||||
METHOD <init> (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
||||
ARG 1 pos
|
||||
ARG 2 state
|
||||
|
@ -43,3 +44,7 @@ CLASS net/minecraft/class_2625 net/minecraft/block/entity/SignBlockEntity
|
|||
ARG 2 textOrderingFunction
|
||||
METHOD method_33830 getTexts (Z)[Lnet/minecraft/class_2561;
|
||||
ARG 1 filtered
|
||||
METHOD method_34270 setGlowingText (Z)Z
|
||||
ARG 1 glowingText
|
||||
METHOD method_34271 isGlowingText ()Z
|
||||
METHOD method_34272 updateListeners ()V
|
||||
|
|
|
@ -76,4 +76,19 @@ CLASS net/minecraft/class_2633 net/minecraft/block/entity/StructureBlockBlockEnt
|
|||
METHOD method_21864 place (Lnet/minecraft/class_3218;ZLnet/minecraft/class_3499;)Z
|
||||
ARG 1 world
|
||||
METHOD method_21865 getStructurePath ()Ljava/lang/String;
|
||||
METHOD method_34273 (Lnet/minecraft/class_2586;)Lnet/minecraft/class_2633;
|
||||
ARG 0 blockEntity
|
||||
METHOD method_34274 (Lnet/minecraft/class_2633;)Z
|
||||
ARG 1 blockEntity
|
||||
METHOD method_34276 streamCornerPos (Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Ljava/util/stream/Stream;
|
||||
COMMENT Streams positions of {@link StructureBlockMode#CORNER} mode structure blocks with matching names.
|
||||
ARG 1 start
|
||||
ARG 2 end
|
||||
METHOD method_34277 getStructureBox (Lnet/minecraft/class_2338;Ljava/util/stream/Stream;)Ljava/util/Optional;
|
||||
ARG 0 pos
|
||||
ARG 1 corners
|
||||
METHOD method_34278 (Lnet/minecraft/class_2586;)Z
|
||||
ARG 0 blockEntity
|
||||
METHOD method_34279 (Lnet/minecraft/class_2338;)Z
|
||||
ARG 1 pos
|
||||
CLASS class_2634 Action
|
||||
|
|
Loading…
Reference in New Issue