Package net.minecraft.block
Interface CaveVines
- All Known Implementing Classes:
CaveVinesBodyBlock
,CaveVinesHeadBlock
public interface CaveVines
- Mappings:
Namespace Name official ckm
intermediary net/minecraft/class_5803
named net/minecraft/block/CaveVines
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ToIntFunction<BlockState>
getLuminanceSupplier
(int luminance) Returns a function that receives aBlockState
and returns the luminance for the state.static boolean
hasBerries
(BlockState state) static ActionResult
pickBerries
(BlockState state, World world, BlockPos pos)
-
Field Details
-
SHAPE
- Mappings:
Namespace Name Mixin selector official o_
Lckm;o_:Ldxj;
intermediary field_28687
Lnet/minecraft/class_5803;field_28687:Lnet/minecraft/class_265;
named SHAPE
Lnet/minecraft/block/CaveVines;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
BERRIES
- Mappings:
Namespace Name Mixin selector official p_
Lckm;p_:Lcwf;
intermediary field_28688
Lnet/minecraft/class_5803;field_28688:Lnet/minecraft/class_2746;
named BERRIES
Lnet/minecraft/block/CaveVines;BERRIES:Lnet/minecraft/state/property/BooleanProperty;
-
-
Method Details
-
pickBerries
- Mappings:
Namespace Name Mixin selector official a_
Lckm;a_(Lcvo;Lcgx;Lgt;)Lbaj;
intermediary method_33619
Lnet/minecraft/class_5803;method_33619(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1269;
named pickBerries
Lnet/minecraft/block/CaveVines;pickBerries(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/ActionResult;
-
hasBerries
- Mappings:
Namespace Name Mixin selector official a
Lckm;a(Lcvo;)Z
intermediary method_33618
Lnet/minecraft/class_5803;method_33618(Lnet/minecraft/class_2680;)Z
named hasBerries
Lnet/minecraft/block/CaveVines;hasBerries(Lnet/minecraft/block/BlockState;)Z
-
getLuminanceSupplier
Returns a function that receives aBlockState
and returns the luminance for the state. If there are no berries, it supplies the value 0.- Parameters:
luminance
- luminance supplied when the block has berries- Returns:
- a function that receives a
BlockState
and returns the luminance for the state - API Note:
- The return value is meant to be passed to
AbstractBlock.Settings.luminance
builder method. - Mappings:
Namespace Name Mixin selector official f_
Lckm;f_(I)Ljava/util/function/ToIntFunction;
intermediary method_37362
Lnet/minecraft/class_5803;method_37362(I)Ljava/util/function/ToIntFunction;
named getLuminanceSupplier
Lnet/minecraft/block/CaveVines;getLuminanceSupplier(I)Ljava/util/function/ToIntFunction;
-