Class SyncUtils

java.lang.Object
top.girlkisser.lazuli.api.world.SyncUtils

public final class SyncUtils extends Object
Provides tiny utilities for syncing blocks and block entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    sync(net.minecraft.world.level.block.entity.BlockEntity be)
    Sync the block and its block entity at the given location.
    static void
    sync(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
    Update clients of the block state at the given position.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • sync

      public static void sync(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Update clients of the block state at the given position.
      Parameters:
      level - The level.
      pos - The block position.
    • sync

      public static void sync(net.minecraft.world.level.block.entity.BlockEntity be)
      Sync the block and its block entity at the given location.
      Parameters:
      be - The block entity