From a308aa67e3fe7f236c21a7c2bf0011213365771e Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Fri, 4 Jun 2021 16:25:04 +0900 Subject: [PATCH] Map getLuminanceSupplier methods (#2464) * Map getLuminanceSupplier methods * Update mappings/net/minecraft/block/CaveVines.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> --- mappings/net/minecraft/block/CaveVines.mapping | 10 ++++++++++ mappings/net/minecraft/block/GlowLichenBlock.mapping | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/mappings/net/minecraft/block/CaveVines.mapping b/mappings/net/minecraft/block/CaveVines.mapping index 061a9e3d7c..d890338c76 100644 --- a/mappings/net/minecraft/block/CaveVines.mapping +++ b/mappings/net/minecraft/block/CaveVines.mapping @@ -7,3 +7,13 @@ CLASS net/minecraft/class_5803 net/minecraft/block/CaveVines ARG 0 state ARG 1 world ARG 2 pos + METHOD method_37361 (ILnet/minecraft/class_2680;)I + ARG 1 state + METHOD method_37362 getLuminanceSupplier (I)Ljava/util/function/ToIntFunction; + COMMENT {@return a function that receives a {@link BlockState} and returns the luminance for the state} + COMMENT If there are no berries, it supplies the value 0. + COMMENT + COMMENT @apiNote The return value is meant to be passed to + COMMENT {@link AbstractBlock.Settings#luminance} builder method. + ARG 0 luminance + COMMENT luminance supplied when the block has berries diff --git a/mappings/net/minecraft/block/GlowLichenBlock.mapping b/mappings/net/minecraft/block/GlowLichenBlock.mapping index c775772fa0..fdc72bec32 100644 --- a/mappings/net/minecraft/block/GlowLichenBlock.mapping +++ b/mappings/net/minecraft/block/GlowLichenBlock.mapping @@ -2,3 +2,13 @@ CLASS net/minecraft/class_5777 net/minecraft/block/GlowLichenBlock FIELD field_28412 WATERLOGGED Lnet/minecraft/class_2746; METHOD method_34727 (Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z ARG 4 direction + METHOD method_37363 (ILnet/minecraft/class_2680;)I + ARG 1 state + METHOD method_37364 getLuminanceSupplier (I)Ljava/util/function/ToIntFunction; + COMMENT {@return a function that receives a {@link BlockState} and returns the luminance for the state} + COMMENT If the lichen has no visible sides, it supplies 0. + COMMENT + COMMENT @apiNote The return value is meant to be passed to + COMMENT {@link AbstractBlock.Settings#luminance} builder method. + ARG 0 luminance + COMMENT luminance supplied when the lichen has at least one visible side