Package com.minecolonies.core.util
Class DomumOrnamentumUtils
java.lang.Object
com.minecolonies.core.util.DomumOrnamentumUtils
Utility methods for interacting with Domum Ornamentum
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable com.ldtteam.domumornamentum.block.IMateriallyTexturedBlockgetBlock(@NotNull net.minecraft.world.item.ItemStack stack) Extracts the Domum Ornamentum block type from the stack.static @NotNull net.minecraft.world.item.ItemStackgetRequestedStack(@NotNull IRequest<?> request) Extracts the first acceptable Domum Ornamentum stack from the given request.static booleanisDoBlock(net.minecraft.world.level.block.Block block) Checks if the given block belongs to DO
-
Method Details
-
getBlock
@Nullable public static @Nullable com.ldtteam.domumornamentum.block.IMateriallyTexturedBlock getBlock(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) Extracts the Domum Ornamentum block type from the stack.- Parameters:
stack- the stack to inspect.- Returns:
- the
IMateriallyTexturedBlock, or null if the stack doesn't have one.
-
getRequestedStack
@NotNull public static @NotNull net.minecraft.world.item.ItemStack getRequestedStack(@NotNull @NotNull IRequest<?> request) Extracts the first acceptable Domum Ornamentum stack from the given request.- Parameters:
request- the request to inspect.- Returns:
- the first acceptable DO stack, or empty if this isn't a request for a DO block.
-
isDoBlock
public static boolean isDoBlock(net.minecraft.world.level.block.Block block) Checks if the given block belongs to DO- Parameters:
block-- Returns:
-