Block render mappings (#2567)

* Block render mappings

* isBlockEntityInRenderDistance -> isInRenderDistance
This commit is contained in:
ByMartrixX 2021-07-10 07:27:34 -04:00 committed by GitHub
parent b054090c81
commit 62fb2bda10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 44 additions and 0 deletions

View File

@ -1,5 +1,6 @@
CLASS net/minecraft/class_778 net/minecraft/client/render/block/BlockModelRenderer
FIELD field_27743 DIRECTIONS [Lnet/minecraft/class_2350;
FIELD field_32784 BRIGHTNESS_CACHE_MAX_SIZE I
FIELD field_4178 colorMap Lnet/minecraft/class_324;
FIELD field_4179 brightnessCache Ljava/lang/ThreadLocal;
METHOD <init> (Lnet/minecraft/class_324;)V
@ -115,8 +116,12 @@ CLASS net/minecraft/class_778 net/minecraft/client/render/block/BlockModelRender
ARG 5 thirdCorner
ARG 6 fourthCorner
METHOD method_3394 getTranslations (Lnet/minecraft/class_2350;)Lnet/minecraft/class_778$class_781;
ARG 0 direction
CLASS class_782 NeighborOrientation
FIELD field_4222 shape I
METHOD <init> (Ljava/lang/String;ILnet/minecraft/class_2350;Z)V
ARG 3 direction
ARG 4 flip
CLASS class_4303 BrightnessCache
FIELD field_19320 enabled Z
FIELD field_19321 intCache Lit/unimi/dsi/fastutil/longs/Long2IntLinkedOpenHashMap;
@ -124,6 +129,7 @@ CLASS net/minecraft/class_778 net/minecraft/client/render/block/BlockModelRender
METHOD method_20548 enable ()V
METHOD method_20549 getInt (Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;)I
ARG 1 state
ARG 2 world
ARG 3 pos
METHOD method_20550 disable ()V
METHOD method_20551 getFloat (Lnet/minecraft/class_2680;Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;)F

View File

@ -5,6 +5,8 @@ CLASS net/minecraft/class_773 net/minecraft/client/render/block/BlockModels
ARG 1 modelManager
METHOD method_3333 getModelManager ()Lnet/minecraft/class_1092;
METHOD method_3334 propertyValueToString (Lnet/minecraft/class_2769;Ljava/lang/Comparable;)Ljava/lang/String;
ARG 0 property
ARG 1 value
METHOD method_3335 getModel (Lnet/minecraft/class_2680;)Lnet/minecraft/class_1087;
ARG 1 state
METHOD method_3336 getModelId (Lnet/minecraft/class_2960;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1091;
@ -13,6 +15,7 @@ CLASS net/minecraft/class_773 net/minecraft/client/render/block/BlockModels
METHOD method_3337 (Lnet/minecraft/class_2680;)V
ARG 1 state
METHOD method_3338 propertyMapToString (Ljava/util/Map;)Ljava/lang/String;
ARG 0 map
METHOD method_3339 getSprite (Lnet/minecraft/class_2680;)Lnet/minecraft/class_1058;
ARG 1 state
METHOD method_3340 getModelId (Lnet/minecraft/class_2680;)Lnet/minecraft/class_1091;

View File

@ -13,6 +13,11 @@ CLASS net/minecraft/class_775 net/minecraft/client/render/block/FluidRenderer
ARG 11 u
ARG 12 v
ARG 13 light
METHOD method_29708 (Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z
ARG 0 world
ARG 1 pos
ARG 2 state
ARG 3 blockState
METHOD method_29709 isOppositeSideCovered (Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z
ARG 0 world
ARG 1 pos

View File

@ -3,6 +3,9 @@ CLASS net/minecraft/class_823 net/minecraft/client/render/block/entity/BannerBlo
FIELD field_20811 pillar Lnet/minecraft/class_630;
FIELD field_20812 crossbar Lnet/minecraft/class_630;
FIELD field_32816 BANNER Ljava/lang/String;
FIELD field_32817 WIDTH I
FIELD field_32818 HEIGHT I
FIELD field_32819 ROTATIONS I
FIELD field_32820 PILLAR Ljava/lang/String;
FIELD field_32821 CROSSBAR Ljava/lang/String;
METHOD <init> (Lnet/minecraft/class_5614$class_5615;)V

View File

@ -3,11 +3,16 @@ CLASS net/minecraft/class_825 net/minecraft/client/render/block/entity/BedBlockE
FIELD field_27745 bedFoot Lnet/minecraft/class_630;
METHOD <init> (Lnet/minecraft/class_5614$class_5615;)V
ARG 1 ctx
METHOD method_24188 (Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Z
ARG 0 world
ARG 1 pos
METHOD method_32136 getHeadTexturedModelData ()Lnet/minecraft/class_5607;
METHOD method_32137 getFootTexturedModelData ()Lnet/minecraft/class_5607;
METHOD method_3558 renderPart (Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;Lnet/minecraft/class_630;Lnet/minecraft/class_2350;Lnet/minecraft/class_4730;IIZ)V
ARG 1 matrix
ARG 2 vertexConsumers
ARG 3 part
ARG 4 direction
ARG 5 sprite
ARG 6 light
ARG 7 overlay

View File

@ -32,7 +32,9 @@ CLASS net/minecraft/class_824 net/minecraft/client/render/block/entity/BlockEnti
ARG 1 world
METHOD method_3554 runReported (Lnet/minecraft/class_2586;Ljava/lang/Runnable;)V
ARG 0 blockEntity
ARG 1 runnable
METHOD method_3555 render (Lnet/minecraft/class_2586;FLnet/minecraft/class_4587;Lnet/minecraft/class_4597;)V
ARG 1 blockEntity
ARG 2 tickDelta
ARG 3 matrix
ARG 4 vertexConsumers

View File

@ -1,4 +1,7 @@
CLASS net/minecraft/class_827 net/minecraft/client/render/block/entity/BlockEntityRenderer
METHOD method_33892 isInRenderDistance (Lnet/minecraft/class_2586;Lnet/minecraft/class_243;)Z
ARG 1 blockEntity
ARG 2 pos
METHOD method_33893 getRenderDistance ()I
METHOD method_3563 rendersOutsideBoundingBox (Lnet/minecraft/class_2586;)Z
ARG 1 blockEntity

View File

@ -3,5 +3,8 @@ CLASS net/minecraft/class_5616 net/minecraft/client/render/block/entity/BlockEnt
METHOD method_32144 register (Lnet/minecraft/class_2591;Lnet/minecraft/class_5614;)V
ARG 0 type
ARG 1 factory
METHOD method_32145 (Lcom/google/common/collect/ImmutableMap$Builder;Lnet/minecraft/class_5614$class_5615;Lnet/minecraft/class_2591;Lnet/minecraft/class_5614;)V
ARG 2 type
ARG 3 factory
METHOD method_32146 reload (Lnet/minecraft/class_5614$class_5615;)Ljava/util/Map;
ARG 0 args

View File

@ -5,6 +5,8 @@ CLASS net/minecraft/class_840 net/minecraft/client/render/block/entity/EndPortal
ARG 1 ctx
METHOD method_23084 renderSides (Lnet/minecraft/class_2640;Lnet/minecraft/class_1159;Lnet/minecraft/class_4588;)V
ARG 1 entity
ARG 2 matrix
ARG 3 vertexConsumer
METHOD method_23085 renderSide (Lnet/minecraft/class_2640;Lnet/minecraft/class_1159;Lnet/minecraft/class_4588;FFFFFFFFLnet/minecraft/class_2350;)V
ARG 1 entity
ARG 2 model
@ -17,5 +19,7 @@ CLASS net/minecraft/class_840 net/minecraft/client/render/block/entity/EndPortal
ARG 9 z2
ARG 10 z3
ARG 11 z4
ARG 12 side
METHOD method_34589 getLayer ()Lnet/minecraft/class_1921;
METHOD method_35793 getBottomYOffset ()F
METHOD method_3594 getTopYOffset ()F

View File

@ -1,6 +1,8 @@
CLASS net/minecraft/class_837 net/minecraft/client/render/block/entity/SignBlockEntityRenderer
FIELD field_27754 typeToModel Ljava/util/Map;
FIELD field_27755 textRenderer Lnet/minecraft/class_327;
FIELD field_32828 MAX_TEXT_WIDTH I
FIELD field_32829 TEXT_HEIGHT I
FIELD field_32830 STICK Ljava/lang/String;
FIELD field_33962 GLOWING_BLACK_COLOR I
FIELD field_33963 RENDER_DISTANCE I
@ -9,9 +11,15 @@ CLASS net/minecraft/class_837 net/minecraft/client/render/block/entity/SignBlock
METHOD method_32154 getTexturedModelData ()Lnet/minecraft/class_5607;
METHOD method_32155 getSignType (Lnet/minecraft/class_2248;)Lnet/minecraft/class_4719;
ARG 0 block
METHOD method_32156 (Lnet/minecraft/class_4719;)Lnet/minecraft/class_4719;
ARG 0 signType
METHOD method_32157 createSignModel (Lnet/minecraft/class_5599;Lnet/minecraft/class_4719;)Lnet/minecraft/class_837$class_4702;
ARG 0 entityModelLoader
ARG 1 type
METHOD method_32158 (Lnet/minecraft/class_5614$class_5615;Lnet/minecraft/class_4719;)Lnet/minecraft/class_837$class_4702;
ARG 1 signType
METHOD method_32159 (Lnet/minecraft/class_2561;)Lnet/minecraft/class_5481;
ARG 1 text
METHOD method_37311 getColor (Lnet/minecraft/class_2625;)I
ARG 0 sign
METHOD method_37312 shouldRender (Lnet/minecraft/class_2625;I)Z

View File

@ -13,6 +13,7 @@ CLASS net/minecraft/class_836 net/minecraft/client/render/block/entity/SkullBloc
ARG 4 vertexConsumers
ARG 5 light
ARG 6 model
ARG 7 renderLayer
METHOD method_3578 getRenderLayer (Lnet/minecraft/class_2484$class_2485;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_1921;
ARG 0 type
ARG 1 profile

View File

@ -5,3 +5,4 @@ CLASS net/minecraft/class_838 net/minecraft/client/render/block/entity/Structure
ARG 1 entity
ARG 2 vertices
ARG 3 pos
ARG 4 matrices