Map getLuminanceSupplier methods (#2464)

* Map getLuminanceSupplier methods

* Update mappings/net/minecraft/block/CaveVines.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
apple502j 2021-06-04 16:25:04 +09:00 committed by GitHub
parent b96c56fcd5
commit a308aa67e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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