Package de.z0rdak.yawp.api.permission
Class FlagPermissions
java.lang.Object
de.z0rdak.yawp.api.permission.FlagPermissions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlagStatecheckFlagPermission(net.minecraft.core.BlockPos pos, RegionFlag flag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim) static FlagStatecheckFlagPermission(net.minecraft.core.BlockPos pos, RegionFlag flag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, @Nullable Consumer<FlagCheckResult> onDeny) static FlagStatecheckFlagPermission(net.minecraft.core.BlockPos pos, RegionFlag flag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, @Nullable Consumer<FlagCheckResult> onAllow, @Nullable Consumer<FlagCheckResult> onDeny) static FlagStatecheckPlayerFlagPermission(RegionFlag flag, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.world.entity.player.Player player) static FlagStatecheckPlayerFlagPermission(RegionFlag flag, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.world.entity.player.Player player, @Nullable Consumer<FlagCheckResult> onDeny) static FlagStatecheckPlayerFlagPermission(RegionFlag flag, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.world.entity.player.Player player, @Nullable Consumer<FlagCheckResult> onAllow, @Nullable Consumer<FlagCheckResult> onDeny)
-
Constructor Details
-
FlagPermissions
public FlagPermissions()
-
-
Method Details
-
checkFlagPermission
public static FlagState checkFlagPermission(net.minecraft.core.BlockPos pos, RegionFlag flag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim) -
checkFlagPermission
public static FlagState checkFlagPermission(net.minecraft.core.BlockPos pos, RegionFlag flag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, @Nullable @Nullable Consumer<FlagCheckResult> onDeny) -
checkFlagPermission
public static FlagState checkFlagPermission(net.minecraft.core.BlockPos pos, RegionFlag flag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, @Nullable @Nullable Consumer<FlagCheckResult> onAllow, @Nullable @Nullable Consumer<FlagCheckResult> onDeny) -
checkPlayerFlagPermission
public static FlagState checkPlayerFlagPermission(RegionFlag flag, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.world.entity.player.Player player, @Nullable @Nullable Consumer<FlagCheckResult> onAllow, @Nullable @Nullable Consumer<FlagCheckResult> onDeny) -
checkPlayerFlagPermission
public static FlagState checkPlayerFlagPermission(RegionFlag flag, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.world.entity.player.Player player) -
checkPlayerFlagPermission
public static FlagState checkPlayerFlagPermission(RegionFlag flag, net.minecraft.core.BlockPos pos, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.world.entity.player.Player player, @Nullable @Nullable Consumer<FlagCheckResult> onDeny)
-