Interface EnergyContainerImpl


@ClassExtension(EnergyContainer.class) public interface EnergyContainerImpl
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static boolean
    holdsEnergy(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    holdsEnergy(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity entity, @Nullable net.minecraft.core.Direction direction)
     
     
    of(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity entity, @Nullable net.minecraft.core.Direction direction)
     
  • Method Details

    • of

      static EnergyContainer of(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity entity, @Nullable @Nullable net.minecraft.core.Direction direction)
    • of

      static EnergyContainer of(ItemStackHolder holder)
    • holdsEnergy

      @ImplementedByExtension static boolean holdsEnergy(net.minecraft.world.item.ItemStack stack)
    • holdsEnergy

      @ImplementedByExtension static boolean holdsEnergy(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity entity, @Nullable @Nullable net.minecraft.core.Direction direction)