Uses of Class
net.minecraft.block.pattern.CachedBlockPosition
Package
Description
-
Uses of CachedBlockPosition in net.minecraft.block.pattern
Modifier and TypeFieldDescriptionprivate final LoadingCache
<BlockPos, CachedBlockPosition> BlockPattern.Result.cache
private final Map
<Character, Predicate<CachedBlockPosition>> BlockPatternBuilder.charMap
Modifier and TypeMethodDescriptionBlockPattern.Result.translate
(int offsetLeft, int offsetDown, int offsetForwards) Modifier and TypeMethodDescriptionprivate Predicate<CachedBlockPosition>[][][]
BlockPatternBuilder.bakePredicates()
Predicate<CachedBlockPosition>[][][]
BlockPattern.getPattern()
static LoadingCache
<BlockPos, CachedBlockPosition> static Predicate
<CachedBlockPosition> CachedBlockPosition.matchesBlockState
(Predicate<BlockState> state) Modifier and TypeMethodDescriptionprivate @Nullable BlockPattern.Result
BlockPattern.testTransform
(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache) BlockPatternBuilder.where
(char key, Predicate<CachedBlockPosition> predicate) ModifierConstructorDescriptionResult
(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache, int width, int height, int depth) -
Uses of CachedBlockPosition in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic Predicate
<CachedBlockPosition> BlockPredicateArgumentType.getBlockPredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Modifier and TypeMethodDescriptionboolean
BlockPredicateArgumentType.StatePredicate.test
(CachedBlockPosition cachedBlockPosition) boolean
BlockPredicateArgumentType.TagPredicate.test
(CachedBlockPosition cachedBlockPosition) boolean
BlockStateArgument.test
(CachedBlockPosition cachedBlockPosition) -
Uses of CachedBlockPosition in net.minecraft.item
Modifier and TypeFieldDescriptionprivate @Nullable CachedBlockPosition
BlockPredicatesChecker.cachedPos
Modifier and TypeMethodDescriptionboolean
ItemStack.canBreak
(CachedBlockPosition pos) boolean
ItemStack.canPlaceOn
(CachedBlockPosition pos) private static boolean
BlockPredicatesChecker.canUseCache
(CachedBlockPosition pos, @Nullable CachedBlockPosition cachedPos, boolean nbtAware) boolean
BlockPredicatesChecker.check
(CachedBlockPosition cachedPos) Returns true if any of the predicates in thestack
's NBT matched against the block atpos
, false otherwise. -
Uses of CachedBlockPosition in net.minecraft.predicate
-
Uses of CachedBlockPosition in net.minecraft.server.command
Modifier and TypeFieldDescriptionstatic final Predicate
<CachedBlockPosition> CloneCommand.IS_AIR_PREDICATE
Modifier and TypeMethodDescriptionprivate static int
CloneCommand.execute
(ServerCommandSource source, CloneCommand.DimensionalPos begin, CloneCommand.DimensionalPos end, CloneCommand.DimensionalPos destination, Predicate<CachedBlockPosition> filter, CloneCommand.Mode mode) private static int
FillCommand.execute
(ServerCommandSource source, BlockBox range, BlockStateArgument block, FillCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> filter) private static int
SetBlockCommand.execute
(ServerCommandSource source, BlockPos pos, BlockStateArgument block, SetBlockCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> condition)