Uses of Class
net.minecraft.block.pattern.CachedBlockPosition
Package | Description |
---|---|
net.minecraft.block.pattern | |
net.minecraft.command.argument | |
net.minecraft.item | |
net.minecraft.server.command |
-
Uses of CachedBlockPosition in net.minecraft.block.pattern
Fields in net.minecraft.block.pattern with type parameters of type CachedBlockPosition Modifier and Type Field Description private LoadingCache<BlockPos,CachedBlockPosition>
BlockPattern.Result. cache
private Map<Character,Predicate<CachedBlockPosition>>
BlockPatternBuilder. charMap
Methods in net.minecraft.block.pattern that return CachedBlockPosition Modifier and Type Method Description CachedBlockPosition
BlockPattern.BlockStateCacheLoader. load(BlockPos blockPos)
CachedBlockPosition
BlockPattern.Result. translate(int offsetLeft, int offsetDown, int offsetForwards)
Methods in net.minecraft.block.pattern that return types with arguments of type CachedBlockPosition Modifier and Type Method Description private Predicate<CachedBlockPosition>[][][]
BlockPatternBuilder. bakePredicates()
Predicate<CachedBlockPosition>[][][]
BlockPattern. getPattern()
static LoadingCache<BlockPos,CachedBlockPosition>
BlockPattern. makeCache(WorldView world, boolean forceLoad)
static Predicate<CachedBlockPosition>
CachedBlockPosition. matchesBlockState(Predicate<BlockState> state)
Method parameters in net.minecraft.block.pattern with type arguments of type CachedBlockPosition Modifier and Type Method Description private @Nullable BlockPattern.Result
BlockPattern. testTransform(BlockPos frontTopLeft, Direction forwards, Direction up, LoadingCache<BlockPos,CachedBlockPosition> cache)
BlockPatternBuilder
BlockPatternBuilder. where(char key, Predicate<CachedBlockPosition> predicate)
Constructor parameters in net.minecraft.block.pattern with type arguments of type CachedBlockPosition Constructor Description Result(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 CachedBlockPosition Modifier and Type Method Description Predicate<CachedBlockPosition>
BlockPredicateArgumentType.BlockPredicate. create(TagManager tagManager)
static Predicate<CachedBlockPosition>
BlockPredicateArgumentType. getBlockPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
Methods in net.minecraft.command.argument with parameters of type CachedBlockPosition Modifier and Type Method Description boolean
BlockPredicateArgumentType.StatePredicate. test(CachedBlockPosition cachedBlockPosition)
boolean
BlockPredicateArgumentType.TagPredicate. test(CachedBlockPosition cachedBlockPosition)
boolean
BlockStateArgument. test(CachedBlockPosition cachedBlockPosition)
-
Uses of CachedBlockPosition in net.minecraft.item
Fields in net.minecraft.item declared as CachedBlockPosition Modifier and Type Field Description private CachedBlockPosition
ItemStack. lastDestroyPos
private CachedBlockPosition
ItemStack. lastPlaceOnPos
Methods in net.minecraft.item with parameters of type CachedBlockPosition Modifier and Type Method Description private static boolean
ItemStack. areBlocksEqual(CachedBlockPosition first, @Nullable CachedBlockPosition second)
boolean
ItemStack. canDestroy(TagManager tagManager, CachedBlockPosition pos)
boolean
ItemStack. canPlaceOn(TagManager tagManager, CachedBlockPosition pos)
-
Uses of CachedBlockPosition in net.minecraft.server.command
Fields in net.minecraft.server.command with type parameters of type CachedBlockPosition Modifier and Type Field Description static Predicate<CachedBlockPosition>
CloneCommand. IS_AIR_PREDICATE
Method parameters in net.minecraft.server.command with type arguments of type CachedBlockPosition Modifier and Type Method Description private static int
CloneCommand. execute(ServerCommandSource source, BlockPos begin, BlockPos end, BlockPos 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)