Class BenchBlock

java.lang.Object
com.hypixel.hytale.builtin.crafting.component.BenchBlock
All Implemented Interfaces:
Component<ChunkStore>, Cloneable

public class BenchBlock extends Object implements Component<ChunkStore>
  • Field Details

  • Constructor Details

    • BenchBlock

      public BenchBlock()
    • BenchBlock

      public BenchBlock(int tierLevel, ItemStack[] upgradeItems)
  • Method Details

    • setGrantedAugmentTagsRefresher

      public static void setGrantedAugmentTagsRefresher(@Nonnull BenchBlock.GrantedAugmentTagsRefresher refresher)
    • refreshGrantedAugmentTags

      public static void refreshGrantedAugmentTags(@Nonnull Store<ChunkStore> store, @Nonnull Ref<ChunkStore> benchRef, @Nonnull org.joml.Vector3i pos)
    • setTierUpgradedListener

      public static void setTierUpgradedListener(@Nonnull BenchBlock.TierUpgradedListener listener)
    • notifyTierUpgraded

      public static void notifyTierUpgraded(@Nonnull World world, @Nonnull org.joml.Vector3i pos, int newTierLevel)
    • setOpenGate

      public static void setOpenGate(@Nonnull BenchBlock.OpenGate gate)
    • tryOpen

      public static boolean tryOpen(@Nonnull Ref<EntityStore> playerEntityRef, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull Ref<ChunkStore> benchRef, @Nonnull org.joml.Vector3i pos)
    • getComponentType

      public static ComponentType<ChunkStore, BenchBlock> getComponentType()
    • addUpgradeItems

      public void addUpgradeItems(@Nonnull List<ItemStack> consumed)
    • setTierLevel

      public void setTierLevel(int newTierLevel)
    • getTierLevel

      public int getTierLevel()
    • getGrantedAugmentTags

      @Nonnull public Set<String> getGrantedAugmentTags()
      Tags granted to this bench by nearby augment blocks; recipes may require a tag to be craftable.
    • setGrantedAugmentTags

      public void setGrantedAugmentTags(@Nonnull Set<String> grantedAugmentTags)
    • getUpgradeItems

      public ItemStack[] getUpgradeItems()
    • setUpgradeItems

      public void setUpgradeItems(ItemStack[] upgradeItems)
    • getTierStateName

      @Nonnull public String getTierStateName()
      Returns the state name for the current tier level. Tier 1 (default) returns NULL_STATE_ID, higher tiers return "TierN".
    • getWindows

      @Nonnull public Map<UUID, BenchWindow> getWindows()
    • clone

      @Nullable public Component<ChunkStore> clone()
      Specified by:
      clone in interface Component<ChunkStore>
      Returns:
      a clone instance of the original component instance.

    • getBaseBlockType

      @Nonnull public static BlockType getBaseBlockType(@Nonnull BlockType currentBlockType)
      Gets the base/root block type for tier state lookups. Always returns the default state key's block type, falling back to the given type.