Interface IEtheriumHelper
public interface IEtheriumHelper
Interface for etherium related helper methods.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.common.util.LazyOptional<IEtheriumConsumer>getEtheriumConsumer(net.minecraft.world.level.block.entity.BlockEntity blockEntity) net.minecraftforge.common.util.LazyOptional<IEtheriumConsumer>getEtheriumConsumer(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) net.minecraftforge.common.util.LazyOptional<IEtheriumProvider>getEtheriumProvider(net.minecraft.world.level.block.entity.BlockEntity blockEntity) net.minecraftforge.common.util.LazyOptional<IEtheriumProvider>getEtheriumProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) @Nullable EtheriumTypegetEtheriumType(net.minecraft.world.item.ItemStack stack) booleanhasEtheriumConsumer(net.minecraft.world.level.block.entity.BlockEntity blockEntity) booleanhasEtheriumConsumer(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) booleanhasEtheriumProvider(net.minecraft.world.level.block.entity.BlockEntity blockEntity) booleanhasEtheriumProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) voidsetEtheriumType(net.minecraft.world.item.ItemStack stack, EtheriumType type) Sets the etherium type of an item stack.
-
Method Details
-
hasEtheriumProvider
boolean hasEtheriumProvider(net.minecraft.world.level.block.entity.BlockEntity blockEntity) - Parameters:
blockEntity- The block entity to check.- Returns:
- Whether the given block entity has an etherium provider or not.
-
hasEtheriumConsumer
boolean hasEtheriumConsumer(net.minecraft.world.level.block.entity.BlockEntity blockEntity) - Parameters:
blockEntity- The block entity to check.- Returns:
- Whether the given block entity has an etherium consumer or not.
-
hasEtheriumProvider
boolean hasEtheriumProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Parameters:
level- The level to use.pos- The position to use.- Returns:
- Whether the block entity at the given position in the given level has an etherium provider or not.
-
hasEtheriumConsumer
boolean hasEtheriumConsumer(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Parameters:
level- The level to use.pos- The position to use.- Returns:
- Whether the block entity at the given position in the given level has an etherium consumer or not.
-
getEtheriumProvider
net.minecraftforge.common.util.LazyOptional<IEtheriumProvider> getEtheriumProvider(net.minecraft.world.level.block.entity.BlockEntity blockEntity) - Parameters:
blockEntity- The block entity to use.- Returns:
- The etherium provider of the given block entity.
-
getEtheriumConsumer
net.minecraftforge.common.util.LazyOptional<IEtheriumConsumer> getEtheriumConsumer(net.minecraft.world.level.block.entity.BlockEntity blockEntity) - Parameters:
blockEntity- The block entity to use.- Returns:
- The etherium consumer of the given block entity.
-
getEtheriumProvider
net.minecraftforge.common.util.LazyOptional<IEtheriumProvider> getEtheriumProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Parameters:
level- The level to use.pos- The position to use.- Returns:
- The etherium provider of the block entity at the given position in the given level.
-
getEtheriumConsumer
net.minecraftforge.common.util.LazyOptional<IEtheriumConsumer> getEtheriumConsumer(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) - Parameters:
level- The level to use.pos- The position to use.- Returns:
- The etherium consumer of the block entity at the given position in the given level.
-
getEtheriumType
- Parameters:
stack- The item stack to get the etherium type from.- Returns:
- The etherium type of the given item stack, or null if it does not have an etherium type.
-
setEtheriumType
Sets the etherium type of an item stack.- Parameters:
stack- The item stack to set the etherium type on.type- The etherium type to set.
-