Uses of Class
net.minecraft.block.pattern.CachedBlockPosition
Packages that use CachedBlockPosition
Package
Description
-
Uses of CachedBlockPosition in net.minecraft.block.pattern
Fields in net.minecraft.block.pattern with type parameters of type CachedBlockPositionModifier and TypeFieldDescriptionprivate final LoadingCache<BlockPos,CachedBlockPosition> BlockPattern.Result.cacheprivate final Map<Character,Predicate<CachedBlockPosition>> BlockPatternBuilder.charMapMethods in net.minecraft.block.pattern that return CachedBlockPositionModifier and TypeMethodDescriptionBlockPattern.Result.translate(int offsetLeft, int offsetDown, int offsetForwards) Methods in net.minecraft.block.pattern that return types with arguments of type CachedBlockPositionModifier and TypeMethodDescriptionprivate Predicate<CachedBlockPosition>[][][]BlockPatternBuilder.bakePredicates()Predicate<CachedBlockPosition>[][][]BlockPattern.getPattern()static LoadingCache<BlockPos,CachedBlockPosition> static Predicate<CachedBlockPosition>CachedBlockPosition.matchesBlockState(Predicate<BlockState> state) Method parameters in net.minecraft.block.pattern with type arguments of type CachedBlockPositionModifier and TypeMethodDescriptionprivate @Nullable BlockPattern.ResultBlockPattern.testTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache) BlockPatternBuilder.where(char key, Predicate<CachedBlockPosition> predicate) Constructor parameters in net.minecraft.block.pattern with type arguments of type CachedBlockPositionModifierConstructorDescriptionResult(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos, CachedBlockPosition> cache, int width, int height, int depth) -
Uses of CachedBlockPosition in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return types with arguments of type CachedBlockPositionModifier and TypeMethodDescriptionstatic Predicate<CachedBlockPosition>BlockPredicateArgumentType.getBlockPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Methods in net.minecraft.command.argument with parameters of type CachedBlockPositionModifier and TypeMethodDescriptionbooleanBlockPredicateArgumentType.StatePredicate.test(CachedBlockPosition cachedBlockPosition) booleanBlockPredicateArgumentType.TagPredicate.test(CachedBlockPosition cachedBlockPosition) booleanBlockStateArgument.test(CachedBlockPosition cachedBlockPosition) -
Uses of CachedBlockPosition in net.minecraft.item
Fields in net.minecraft.item declared as CachedBlockPositionModifier and TypeFieldDescriptionprivate @Nullable CachedBlockPositionBlockPredicatesChecker.cachedPosMethods in net.minecraft.item with parameters of type CachedBlockPositionModifier and TypeMethodDescriptionbooleanItemStack.canDestroy(Registry<Block> blockRegistry, CachedBlockPosition pos) booleanItemStack.canPlaceOn(Registry<Block> blockRegistry, CachedBlockPosition pos) private static booleanBlockPredicatesChecker.canUseCache(CachedBlockPosition pos, @Nullable CachedBlockPosition cachedPos, boolean nbtAware) booleanBlockPredicatesChecker.check(ItemStack stack, Registry<Block> blockRegistry, CachedBlockPosition pos) Returns true if any of the predicates in thestack's NBT matched against the block atpos, false otherwise. -
Uses of CachedBlockPosition in net.minecraft.server.command
Fields in net.minecraft.server.command with type parameters of type CachedBlockPositionModifier and TypeFieldDescriptionstatic final Predicate<CachedBlockPosition>CloneCommand.IS_AIR_PREDICATEMethod parameters in net.minecraft.server.command with type arguments of type CachedBlockPositionModifier and TypeMethodDescriptionprivate static intCloneCommand.execute(ServerCommandSource source, CloneCommand.DimensionalPos begin, CloneCommand.DimensionalPos end, CloneCommand.DimensionalPos destination, Predicate<CachedBlockPosition> filter, CloneCommand.Mode mode) private static intFillCommand.execute(ServerCommandSource source, BlockBox range, BlockStateArgument block, FillCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> filter) private static intSetBlockCommand.execute(ServerCommandSource source, BlockPos pos, BlockStateArgument block, SetBlockCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> condition)