Package de.z0rdak.yawp.handler
Class HandlerUtil
java.lang.Object
de.z0rdak.yawp.handler.HandlerUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>getDimKey(net.minecraft.world.entity.Entity entity) static net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>getDimKey(net.minecraft.world.level.Level world) static Map<String,FlagCorrelation> getFlagMapRecursive(IProtectedRegion region, Map<String, FlagCorrelation> carry) static booleanisAnimal(net.minecraft.world.entity.Entity entity) static booleanisMonster(net.minecraft.world.entity.Entity entity) static booleanisServerSide(net.minecraft.world.entity.Entity entity) static booleanisServerSide(net.minecraft.world.level.Level world) static booleanisServerSide(net.minecraft.world.level.LevelAccessor world) static booleanisVillager(net.minecraft.world.entity.Entity entity) static booleannotServerSideOrPlayerNull(net.minecraft.world.entity.Entity entity) static voidsyncPlayerInventory(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) static voidupdateBlockState(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
-
Method Details
-
getDimKey
public static net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimKey(net.minecraft.world.entity.Entity entity) -
getDimKey
public static net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimKey(net.minecraft.world.level.Level world) -
isAnimal
public static boolean isAnimal(net.minecraft.world.entity.Entity entity) -
isServerSide
public static boolean isServerSide(net.minecraft.world.entity.Entity entity) -
isServerSide
public static boolean isServerSide(net.minecraft.world.level.LevelAccessor world) -
isServerSide
public static boolean isServerSide(net.minecraft.world.level.Level world) -
isVillager
public static boolean isVillager(net.minecraft.world.entity.Entity entity) -
isMonster
public static boolean isMonster(net.minecraft.world.entity.Entity entity) -
notServerSideOrPlayerNull
public static boolean notServerSideOrPlayerNull(net.minecraft.world.entity.Entity entity) -
syncPlayerInventory
public static void syncPlayerInventory(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player) -
updateBlockState
public static void updateBlockState(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) -
getFlagMapRecursive
public static Map<String,FlagCorrelation> getFlagMapRecursive(IProtectedRegion region, Map<String, FlagCorrelation> carry)
-