Package gay.object.ioticblocks.api
Interface IotaHolderProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescription@Nullable at.petrak.hexcasting.api.addldata.ADIotaHoldergetIotaHolder(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.core.BlockPos pos) Returns anADIotaHolderinstance for the block at the given position, or null if the block is not of the expected type.
-
Method Details
-
getIotaHolder
@Nullable @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolder getIotaHolder(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.core.BlockPos pos) Returns anADIotaHolderinstance for the block at the given position, or null if the block is not of the expected type.
The value returned by this method should be considered ephemeral, ie. it shouldn't be cached because it may return an invalid result later.
-