Package net.minecraft.block
Interface CaveVines
- All Known Implementing Classes:
CaveVinesBodyBlock,CaveVinesHeadBlock
public interface CaveVines
- Mappings:
Namespace Name named net/minecraft/block/CaveVinesintermediary net/minecraft/class_5803official dgu
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ToIntFunction<BlockState> getLuminanceSupplier(int luminance) Returns a function that receives aBlockStateand returns the luminance for the state.static booleanhasBerries(BlockState state) static ActionResultpickBerries(@Nullable Entity picker, BlockState state, World world, BlockPos pos)
-
Field Details
-
SHAPE
- Mappings:
Namespace Name Mixin selector named SHAPELnet/minecraft/block/CaveVines;SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_28687Lnet/minecraft/class_5803;field_28687:Lnet/minecraft/class_265;official t_Ldgu;t_:Lexv;
-
BERRIES
- Mappings:
Namespace Name Mixin selector named BERRIESLnet/minecraft/block/CaveVines;BERRIES:Lnet/minecraft/state/property/BooleanProperty;intermediary field_28688Lnet/minecraft/class_5803;field_28688:Lnet/minecraft/class_2746;official u_Ldgu;u_:Ldtt;
-
-
Method Details
-
pickBerries
static ActionResult pickBerries(@Nullable @Nullable Entity picker, BlockState state, World world, BlockPos pos) - Mappings:
Namespace Name Mixin selector named pickBerriesLnet/minecraft/block/CaveVines;pickBerries(Lnet/minecraft/entity/Entity;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/ActionResult;intermediary method_33619Lnet/minecraft/class_5803;method_33619(Lnet/minecraft/class_1297;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1269;official aLdgu;a(Lbsr;Ldtc;Ldcw;Ljd;)Lbqr;
-
hasBerries
- Mappings:
Namespace Name Mixin selector named hasBerriesLnet/minecraft/block/CaveVines;hasBerries(Lnet/minecraft/block/BlockState;)Zintermediary method_33618Lnet/minecraft/class_5803;method_33618(Lnet/minecraft/class_2680;)Zofficial h_Ldgu;h_(Ldtc;)Z
-
getLuminanceSupplier
Returns a function that receives aBlockStateand 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
BlockStateand returns the luminance for the state - API Note:
- The return value is meant to be passed to
AbstractBlock.Settings.luminancebuilder method. - Mappings:
Namespace Name Mixin selector named getLuminanceSupplierLnet/minecraft/block/CaveVines;getLuminanceSupplier(I)Ljava/util/function/ToIntFunction;intermediary method_37362Lnet/minecraft/class_5803;method_37362(I)Ljava/util/function/ToIntFunction;official i_Ldgu;i_(I)Ljava/util/function/ToIntFunction;
-