Package top.girlkisser.lazuli.api.world
Class SyncUtils
java.lang.Object
top.girlkisser.lazuli.api.world.SyncUtils
Provides tiny utilities for syncing blocks and block entities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsync(net.minecraft.world.level.block.entity.BlockEntity be) Sync the block and its block entity at the given location.static voidsync(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Update clients of the block state at the given position.
-
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
-