Class DomumOrnamentumUtils

java.lang.Object
com.minecolonies.core.util.DomumOrnamentumUtils

public class DomumOrnamentumUtils extends Object
Utility methods for interacting with Domum Ornamentum
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable com.ldtteam.domumornamentum.block.IMateriallyTexturedBlock
    getBlock(@NotNull net.minecraft.world.item.ItemStack stack)
    Extracts the Domum Ornamentum block type from the stack.
    static @NotNull net.minecraft.world.item.ItemStack
    getRequestedStack(@NotNull IRequest<?> request)
    Extracts the first acceptable Domum Ornamentum stack from the given request.
    static boolean
    isDoBlock(net.minecraft.world.level.block.Block block)
    Checks if the given block belongs to DO

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: