Interface IForgeDispensibleContainerItem
- All Known Subinterfaces:
 DispensibleContainerItem
- All Known Implementing Classes:
 BucketItem,MobBucketItem,SolidBucketItem
public interface IForgeDispensibleContainerItem
- 
Method Summary
Modifier and TypeMethodDescriptiondefault booleanemptyContents(@Nullable Player player, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack container) Empties the contents of the container and returns whether it was successful.private DispensibleContainerItemself() 
- 
Method Details
- 
self
 - 
emptyContents
default boolean emptyContents(@Nullable @Nullable Player player, Level level, BlockPos pos, @Nullable @Nullable BlockHitResult hitResult, @Nullable @Nullable ItemStack container) Empties the contents of the container and returns whether it was successful.- Parameters:
 player- Player who empties the container. May be null for blocks like dispensers.level- Level to place the content inpos- The position in the level to empty the contenthitResult- Hit result of the interaction. May be null for blocks like dispensers.container- ItemStack of the container. May be null for backwards compatibility.- Returns:
 - true if emptying the contents of the container was successful, false otherwise
 
 
 -