Interface CTCauldronInteraction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Fired when a Cauldron is interacted with.
- DocParam:
- this (blockState, level, pos, player, hand, stack) => <constant:minecraft:world/interactionresult:success>
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultinteract(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack) Called when a Cauldron is interacted with.
-
Method Details
-
interact
net.minecraft.world.InteractionResult interact(net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack) Called when a Cauldron is interacted with.- Parameters:
blockState- The blockstate of the cauldron.level- The current level.pos- The position of the cauldron.player- The player that interacted.hand- The hand that was used to interactstack- The stack that was used to interact- Returns:
- An
InteractionResultof what should happen.
-