Skip to content

Commit

Permalink
Rendering stuff, part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
apple502j committed Nov 11, 2024
1 parent 6e811df commit c01ee5e
Show file tree
Hide file tree
Showing 39 changed files with 204 additions and 13 deletions.
17 changes: 17 additions & 0 deletions mappings/net/minecraft/client/model/ItemAssetsLoader.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CLASS net/minecraft/class_10521 net/minecraft/client/model/ItemAssetsLoader
FIELD field_55460 LOGGER Lorg/slf4j/Logger;
FIELD field_55461 FINDER Lnet/minecraft/class_7654;
METHOD method_65726 (Lnet/minecraft/class_2960;Lnet/minecraft/class_3298;Lcom/mojang/serialization/DataResult$Error;)V
ARG 2 message
METHOD method_65728 load (Lnet/minecraft/class_3300;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
ARG 0 resourceManager
ARG 1 executor
METHOD method_65729 (Ljava/util/List;)Lnet/minecraft/class_10521$class_10522;
ARG 0 definitions
METHOD method_65730 (Ljava/util/List;Ljava/util/concurrent/Executor;Lnet/minecraft/class_2960;Lnet/minecraft/class_3298;)V
ARG 2 path
ARG 3 resource
METHOD method_65731 (Ljava/util/concurrent/Executor;Ljava/util/Map;)Ljava/util/concurrent/CompletionStage;
ARG 1 resources
CLASS class_10522 Result
CLASS class_10523 Definition
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CLASS net/minecraft/class_10525 net/minecraft/client/model/ModelNameSupplier
5 changes: 5 additions & 0 deletions mappings/net/minecraft/client/model/SpriteGetter.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CLASS net/minecraft/class_10527 net/minecraft/client/model/SpriteGetter
METHOD method_65741 get (Lnet/minecraft/class_4730;)Lnet/minecraft/class_1058;
ARG 1 spriteId
METHOD method_65742 getMissing (Ljava/lang/String;)Lnet/minecraft/class_1058;
ARG 1 textureId
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ CLASS net/minecraft/class_4722 net/minecraft/client/render/TexturedRenderLayers
ARG 0 id
METHOD method_58139 (Lnet/minecraft/class_2960;)Lnet/minecraft/class_4730;
ARG 0 id
METHOD method_60576 (Lnet/minecraft/class_6880$class_6883;)Lnet/minecraft/class_4730;
ARG 0 pattern
METHOD method_65526 createBedTextureId (Lnet/minecraft/class_2960;)Lnet/minecraft/class_4730;
ARG 0 id
METHOD method_65527 getBedTextureId (Lnet/minecraft/class_1767;)Lnet/minecraft/class_4730;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ CLASS net/minecraft/class_776 net/minecraft/client/render/block/BlockRenderManag
FIELD field_4168 models Lnet/minecraft/class_773;
FIELD field_4169 random Lnet/minecraft/class_5819;
FIELD field_4170 blockModelRenderer Lnet/minecraft/class_778;
FIELD field_55271 specialModelRenderDispatcherGetter Ljava/util/function/Supplier;
METHOD <init> (Lnet/minecraft/class_773;Ljava/util/function/Supplier;Lnet/minecraft/class_324;)V
ARG 1 models
ARG 2 specialModelRenderDispatcherGetter
ARG 3 blockColors
METHOD method_23071 renderDamage (Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1920;Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;)V
ARG 1 state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CLASS net/minecraft/class_823 net/minecraft/client/render/block/entity/BannerBlo
FIELD field_55156 standingFlagModel Lnet/minecraft/class_10377;
FIELD field_55157 wallFlagModel Lnet/minecraft/class_10377;
METHOD <init> (Lnet/minecraft/class_5599;)V
ARG 1 entityModelLoader
ARG 1 models
METHOD <init> (Lnet/minecraft/class_5614$class_5615;)V
ARG 1 context
METHOD method_23802 renderCanvas (Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;IILnet/minecraft/class_630;Lnet/minecraft/class_4730;ZLnet/minecraft/class_1767;Lnet/minecraft/class_9307;ZZ)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CLASS net/minecraft/class_825 net/minecraft/client/render/block/entity/BedBlockE
FIELD field_27744 bedHead Lnet/minecraft/class_3879;
FIELD field_27745 bedFoot Lnet/minecraft/class_3879;
METHOD <init> (Lnet/minecraft/class_5599;)V
ARG 1 entityModelLoader
ARG 1 models
METHOD <init> (Lnet/minecraft/class_5614$class_5615;)V
ARG 1 ctx
METHOD method_24188 (Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ CLASS net/minecraft/class_5614 net/minecraft/client/render/block/entity/BlockEnt
CLASS class_5615 Context
FIELD field_27748 renderDispatcher Lnet/minecraft/class_824;
FIELD field_27749 renderManager Lnet/minecraft/class_776;
FIELD field_27750 layerRenderDispatcher Lnet/minecraft/class_5599;
FIELD field_27750 loadedEntityModels Lnet/minecraft/class_5599;
FIELD field_27751 textRenderer Lnet/minecraft/class_327;
FIELD field_38882 itemRenderer Lnet/minecraft/class_918;
FIELD field_38883 entityRenderDispatcher Lnet/minecraft/class_898;
FIELD field_55284 itemModelManager Lnet/minecraft/class_10442;
METHOD <init> (Lnet/minecraft/class_824;Lnet/minecraft/class_776;Lnet/minecraft/class_10442;Lnet/minecraft/class_918;Lnet/minecraft/class_898;Lnet/minecraft/class_5599;Lnet/minecraft/class_327;)V
ARG 1 renderDispatcher
ARG 2 renderManager
ARG 3 itemModelManager
ARG 4 itemRenderer
ARG 5 entityRenderDispatcher
ARG 6 layerRenderDispatcher
Expand All @@ -19,7 +21,8 @@ CLASS net/minecraft/class_5614 net/minecraft/client/render/block/entity/BlockEnt
METHOD method_32140 getLayerModelPart (Lnet/minecraft/class_5601;)Lnet/minecraft/class_630;
ARG 1 modelLayer
METHOD method_32141 getRenderManager ()Lnet/minecraft/class_776;
METHOD method_32142 getLayerRenderDispatcher ()Lnet/minecraft/class_5599;
METHOD method_32142 getLoadedEntityModels ()Lnet/minecraft/class_5599;
METHOD method_32143 getTextRenderer ()Lnet/minecraft/class_327;
METHOD method_43334 getEntityRenderDispatcher ()Lnet/minecraft/class_898;
METHOD method_43335 getItemRenderer ()Lnet/minecraft/class_918;
METHOD method_65558 getItemModelManager ()Lnet/minecraft/class_10442;
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CLASS net/minecraft/class_8188 net/minecraft/client/render/block/entity/Decorate
FIELD field_42925 top Lnet/minecraft/class_630;
FIELD field_42926 bottom Lnet/minecraft/class_630;
METHOD <init> (Lnet/minecraft/class_5599;)V
ARG 1 entityModelLoader
ARG 1 models
METHOD <init> (Lnet/minecraft/class_5614$class_5615;)V
ARG 1 context
METHOD method_49343 getTextureIdFromSherd (Ljava/util/Optional;)Lnet/minecraft/class_4730;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CLASS net/minecraft/class_10418 net/minecraft/client/render/block/entity/LoadedBlockEntityModels
FIELD field_55269 EMPTY Lnet/minecraft/class_10418;
FIELD field_55270 renderers Ljava/util/Map;
METHOD <init> (Ljava/util/Map;)V
ARG 1 renderers
METHOD method_65535 render (Lnet/minecraft/class_2248;Lnet/minecraft/class_811;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;II)V
ARG 1 block
ARG 2 displayContext
ARG 3 matrices
ARG 4 vertexConsumers
ARG 5 light
ARG 6 overlay
METHOD method_65536 fromModels (Lnet/minecraft/class_5599;)Lnet/minecraft/class_10418;
ARG 0 models
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CLASS net/minecraft/class_834 net/minecraft/client/render/block/entity/ShulkerBoxBlockEntityRenderer
FIELD field_4387 model Lnet/minecraft/class_834$class_9984;
METHOD <init> (Lnet/minecraft/class_5599;)V
ARG 1 entityModelLoader
ARG 1 models
METHOD <init> (Lnet/minecraft/class_5614$class_5615;)V
ARG 1 ctx
METHOD method_65562 render (Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;IILnet/minecraft/class_2350;FLnet/minecraft/class_4730;)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CLASS net/minecraft/class_837 net/minecraft/client/render/block/entity/SignBlock
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;Z)Lnet/minecraft/class_3879;
ARG 0 entityModelLoader
ARG 0 models
ARG 1 type
ARG 2 standing
METHOD method_32158 (Lnet/minecraft/class_5614$class_5615;Lnet/minecraft/class_4719;)Lnet/minecraft/class_837$class_9985;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
CLASS net/minecraft/class_836 net/minecraft/client/render/block/entity/SkullBlockEntityRenderer
FIELD field_4390 TEXTURES Ljava/util/Map;
FIELD field_4391 MODELS Ljava/util/function/Function;
FIELD field_4391 models Ljava/util/function/Function;
METHOD <init> (Lnet/minecraft/class_5614$class_5615;)V
ARG 1 context
METHOD method_32160 getModels (Lnet/minecraft/class_5599;Lnet/minecraft/class_2484$class_2485;)Lnet/minecraft/class_5598;
ARG 0 modelLoader
ARG 0 models
ARG 1 type
METHOD method_32161 renderSkull (Lnet/minecraft/class_2350;FFLnet/minecraft/class_4587;Lnet/minecraft/class_4597;ILnet/minecraft/class_5598;Lnet/minecraft/class_1921;)V
ARG 0 direction
ARG 1 yaw
Expand All @@ -17,3 +20,5 @@ CLASS net/minecraft/class_836 net/minecraft/client/render/block/entity/SkullBloc
ARG 1 profile
METHOD method_3580 (Ljava/util/HashMap;)V
ARG 0 map
METHOD method_65563 (Lnet/minecraft/class_5599;Lnet/minecraft/class_2484$class_2485;)Lnet/minecraft/class_5598;
ARG 1 type
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
CLASS net/minecraft/class_9214 net/minecraft/client/render/block/entity/VaultBlockEntityRenderer
FIELD field_48953 random Lnet/minecraft/class_5819;
FIELD field_55286 itemModelManager Lnet/minecraft/class_10442;
FIELD field_55287 itemRenderState Lnet/minecraft/class_10428;
METHOD <init> (Lnet/minecraft/class_5614$class_5615;)V
ARG 1 context
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ CLASS net/minecraft/class_909 net/minecraft/client/render/entity/BipedEntityRend
ARG 3 itemModelResolver
METHOD method_62462 getPreferredArm (Lnet/minecraft/class_1309;)Lnet/minecraft/class_1306;
ARG 0 entity
METHOD method_65564 getArmPose (Lnet/minecraft/class_1308;Lnet/minecraft/class_1306;)Lnet/minecraft/class_572$class_573;
ARG 1 entity
ARG 2 arm
METHOD method_65568 getEquippedStack (Lnet/minecraft/class_1309;Lnet/minecraft/class_1304;)Lnet/minecraft/class_1799;
ARG 0 entity
ARG 1 slot
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CLASS net/minecraft/class_8138 net/minecraft/client/render/entity/DisplayEntityR
CLASS class_8139 BlockDisplayEntityRenderer
FIELD field_42528 blockRenderManager Lnet/minecraft/class_776;
CLASS class_8140 ItemDisplayEntityRenderer
FIELD field_55288 itemModelManager Lnet/minecraft/class_10442;
CLASS class_8141 TextDisplayEntityRenderer
FIELD field_42531 displayTextRenderer Lnet/minecraft/class_327;
METHOD method_49057 getLines (Lnet/minecraft/class_2561;I)Lnet/minecraft/class_8113$class_8123$class_8125;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ CLASS net/minecraft/class_898 net/minecraft/client/render/entity/EntityRenderDis
METHOD method_23162 drawShadowVertex (Lnet/minecraft/class_4587$class_4665;Lnet/minecraft/class_4588;IFFFFF)V
ARG 0 entry
ARG 1 vertices
ARG 2 color
ARG 3 x
ARG 4 y
ARG 5 z
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CLASS net/minecraft/class_953 net/minecraft/client/render/entity/FlyingItemEntityRenderer
FIELD field_17147 scale F
FIELD field_21745 lit Z
FIELD field_55301 itemModelManager Lnet/minecraft/class_10442;
METHOD <init> (Lnet/minecraft/class_5617$class_5618;FZ)V
ARG 1 ctx
ARG 2 scale
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ CLASS net/minecraft/class_915 net/minecraft/client/render/entity/ItemFrameEntity
ARG 2 glowLight
ARG 3 regularLight
METHOD method_33434 getModelId (Lnet/minecraft/class_10040;)Lnet/minecraft/class_1091;
ARG 0 state
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
CLASS net/minecraft/class_9483 net/minecraft/client/render/entity/OminousItemSpawnerEntityRenderer
FIELD field_55299 itemModelManager Lnet/minecraft/class_10442;
FIELD field_55300 random Lnet/minecraft/class_5819;
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
CLASS net/minecraft/class_10201 net/minecraft/client/render/entity/equipment/EquipmentModelLoader
FIELD field_54189 EMPTY Lnet/minecraft/class_10186;
FIELD field_54190 models Ljava/util/Map;
FIELD field_55459 FINDER Lnet/minecraft/class_7654;
METHOD method_64087 get (Lnet/minecraft/class_5321;)Lnet/minecraft/class_10186;
ARG 1 assetKey
METHOD method_65724 (Ljava/util/Map$Entry;)Lnet/minecraft/class_5321;
ARG 0 entry
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ CLASS net/minecraft/class_10197 net/minecraft/client/render/entity/equipment/Equ
ARG 1 dyeColor
METHOD method_64077 render (Lnet/minecraft/class_10186$class_10190;Lnet/minecraft/class_5321;Lnet/minecraft/class_3879;Lnet/minecraft/class_1799;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
ARG 1 layerType
ARG 2 assetKey
ARG 3 model
ARG 4 stack
ARG 5 matrices
ARG 6 vertexConsumers
ARG 7 light
METHOD method_64078 render (Lnet/minecraft/class_10186$class_10190;Lnet/minecraft/class_5321;Lnet/minecraft/class_3879;Lnet/minecraft/class_1799;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;ILnet/minecraft/class_2960;)V
ARG 1 layerType
ARG 2 assetKey
ARG 3 model
ARG 4 stack
ARG 5 matrices
Expand All @@ -29,3 +31,9 @@ CLASS net/minecraft/class_10197 net/minecraft/client/render/entity/equipment/Equ
ARG 1 key
CLASS class_10198 LayerTextureKey
CLASS class_10199 TrimSpriteKey
METHOD method_65573 getTexture ()Lnet/minecraft/class_2960;
METHOD method_65574 (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
ARG 2 path
METHOD method_65575 getAssetName (Lnet/minecraft/class_6880;Lnet/minecraft/class_5321;)Ljava/lang/String;
ARG 0 material
ARG 1 assetKey
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ CLASS net/minecraft/class_7288 net/minecraft/client/render/entity/feature/Emissi
FIELD field_38356 animationAlphaAdjuster Lnet/minecraft/class_7288$class_7289;
FIELD field_38464 modelPartVisibility Lnet/minecraft/class_7288$class_7311;
FIELD field_54861 renderLayerFunction Ljava/util/function/Function;
FIELD field_55302 ignoresInvisibility Z
METHOD <init> (Lnet/minecraft/class_3883;Lnet/minecraft/class_2960;Lnet/minecraft/class_7288$class_7289;Lnet/minecraft/class_7288$class_7311;Ljava/util/function/Function;Z)V
ARG 1 context
ARG 2 texture
ARG 3 animationAlphaAdjuster
ARG 4 modelPartVisibility
ARG 5 renderLayerFunction
ARG 6 ignoresInvisibility
METHOD method_42746 updateModelPartVisibility (Lnet/minecraft/class_10042;)Z
ARG 1 state
METHOD method_42747 (Lnet/minecraft/class_630;)V
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
CLASS net/minecraft/class_3887 net/minecraft/client/render/entity/feature/FeatureRenderer
FIELD field_17155 context Lnet/minecraft/class_3883;
METHOD <init> (Lnet/minecraft/class_3883;)V
ARG 1 context
METHOD method_17165 getContextModel ()Lnet/minecraft/class_583;
METHOD method_23196 render (Lnet/minecraft/class_583;Lnet/minecraft/class_2960;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;ILnet/minecraft/class_10042;I)V
ARG 0 contextModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ CLASS net/minecraft/class_976 net/minecraft/client/render/entity/feature/HeadFea
FIELD field_53211 headTransformation Lnet/minecraft/class_976$class_9994;
METHOD <init> (Lnet/minecraft/class_3883;Lnet/minecraft/class_5599;)V
ARG 1 context
ARG 2 loader
ARG 2 models
METHOD <init> (Lnet/minecraft/class_3883;Lnet/minecraft/class_5599;Lnet/minecraft/class_976$class_9994;)V
ARG 1 context
ARG 2 loader
ARG 2 models
ARG 3 headTransformation
METHOD method_32798 translate (Lnet/minecraft/class_4587;Lnet/minecraft/class_976$class_9994;)V
ARG 0 matrices
ARG 1 transformation
METHOD method_65572 (Lnet/minecraft/class_5599;Lnet/minecraft/class_2484$class_2485;)Lnet/minecraft/class_5598;
ARG 1 type
CLASS class_9994 HeadTransformation
FIELD field_53212 DEFAULT Lnet/minecraft/class_976$class_9994;
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
CLASS net/minecraft/class_989 net/minecraft/client/render/entity/feature/HeldItemFeatureRenderer
METHOD method_4192 renderItem (Lnet/minecraft/class_10426;Lnet/minecraft/class_10444;Lnet/minecraft/class_1306;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
ARG 1 entityState
ARG 2 itemState
ARG 3 arm
ARG 4 matrices
ARG 5 vertexConsumers
ARG 6 light
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
CLASS net/minecraft/class_5697 net/minecraft/client/render/entity/feature/PlayerHeldItemFeatureRenderer
FIELD field_32944 HEAD_YAW F
FIELD field_32945 HEAD_ROLL F
METHOD method_65576 renderSpyglass (Lnet/minecraft/class_10444;Lnet/minecraft/class_1306;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
ARG 1 spyglassState
ARG 2 arm
ARG 3 matrices
ARG 4 vertexConsumers
ARG 5 light
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ CLASS net/minecraft/class_4004 net/minecraft/client/render/entity/feature/Villag
METHOD <init> (Lnet/minecraft/class_3883;)V
ARG 1 context
METHOD method_65251 applyTransforms (Lnet/minecraft/class_10427;Lnet/minecraft/class_4587;)V
ARG 1 state
ARG 2 matrices
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CLASS net/minecraft/class_10072 net/minecraft/client/render/entity/state/FlyingItemEntityRenderState
FIELD field_55320 itemRenderState Lnet/minecraft/class_10444;
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ CLASS net/minecraft/class_10055 net/minecraft/client/render/entity/state/PlayerE
FIELD field_53544 jacketVisible Z
FIELD field_53545 leftPantsLegVisible Z
FIELD field_53546 rightPantsLegVisible Z
FIELD field_55317 spyglassState Lnet/minecraft/class_10444;
METHOD method_64259 getGlidingProgress ()F
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CLASS net/minecraft/class_10066 net/minecraft/client/render/entity/state/SkeletonEntityRenderState
FIELD field_53572 attacking Z
FIELD field_53573 shaking Z
FIELD field_55318 holdingBow Z
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CLASS net/minecraft/class_10082 net/minecraft/client/render/entity/state/WitchEntityRenderState
FIELD field_53615 id I
FIELD field_53616 holdingItem Z
FIELD field_55321 holdingPotion Z
Loading

0 comments on commit c01ee5e

Please sign in to comment.