Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Enum Classes
  • Record Classes
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    net.minecraft.world.biome.Biome.FOLIAGE_NOISE
  • Deprecated Interfaces
    Interface
    Description
    net.minecraft.client.item.ModelPredicateProvider
    net.minecraft.particle.ParticleEffect.Factory
  • Deprecated Classes
    Class
    Description
    net.minecraft.entity.ai.brain.task.FollowMobWithIntervalTask
    net.minecraft.util.Lazy
    Use Suppliers.memoize(com.google.common.base.Supplier<T>) instead.
    net.minecraft.util.math.random.ThreadSafeRandom
    net.minecraft.util.StringIdentifiable.Codec
    net.minecraft.world.gen.feature.LakeFeature
    net.minecraft.world.gen.placementmodifier.CountMultilayerPlacementModifier
  • Deprecated Enum Classes
    Enum Class
    Description
    net.minecraft.world.level.LevelProperties.SpecialProperty
  • Deprecated Record Classes
    Record Class
    Description
    net.minecraft.world.gen.chunk.placement.StructurePlacement.ExclusionZone
  • Deprecated Fields
    Field
    Description
    net.minecraft.client.gui.widget.EntryListWidget.Entry.parentList
    net.minecraft.client.texture.SpriteAtlasTexture.BLOCK_ATLAS_TEXTURE
    net.minecraft.client.texture.SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE
    net.minecraft.item.BlockItem.block
    net.minecraft.item.ItemStack.item
    net.minecraft.SharedConstants.CURRENT_SERIES
    net.minecraft.SharedConstants.DATA_PACK_VERSION
    net.minecraft.SharedConstants.field_29736
    net.minecraft.SharedConstants.field_39963
    net.minecraft.SharedConstants.IS_DEVELOPMENT_VERSION
    net.minecraft.SharedConstants.RELEASE_TARGET_PROTOCOL_VERSION
    net.minecraft.SharedConstants.RESOURCE_PACK_VERSION
    net.minecraft.SharedConstants.VERSION_NAME
    net.minecraft.SharedConstants.WORLD_VERSION
    net.minecraft.util.math.random.Random.field_38930
    net.minecraft.world.biome.Biome.FOLIAGE_NOISE
    net.minecraft.world.chunk.Chunk.generationSettings
    net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Noise.xzScale
    net.minecraft.world.gen.noise.BuiltinNoiseParameters.OFFSET
    net.minecraft.world.World.threadSafeRandom
  • Deprecated Methods
    Method
    Description
    com.mojang.blaze3d.systems.RenderSystem.runAsFancy(Runnable)
    net.minecraft.block.AbstractBlock.AbstractBlockState.neighborUpdate(World, BlockPos, Block, BlockPos, boolean)
    net.minecraft.block.AbstractBlock.calcBlockBreakingDelta(BlockState, PlayerEntity, BlockView, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.calcBlockBreakingDelta(net.minecraft.entity.player.PlayerEntity, net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.canBucketPlace(BlockState, Fluid)
    Consider calling AbstractBlock.AbstractBlockState.canBucketPlace(net.minecraft.fluid.Fluid) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.canPathfindThrough(BlockState, BlockView, BlockPos, NavigationType)
    Consider calling AbstractBlock.AbstractBlockState.canPathfindThrough(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos, net.minecraft.entity.ai.pathing.NavigationType) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.canPlaceAt(BlockState, WorldView, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.canPlaceAt(net.minecraft.world.WorldView, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.canReplace(BlockState, ItemPlacementContext)
    Consider calling AbstractBlock.AbstractBlockState.canReplace(net.minecraft.item.ItemPlacementContext) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.createScreenHandlerFactory(BlockState, World, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.createScreenHandlerFactory(net.minecraft.world.World, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.emitsRedstonePower(BlockState)
    Consider calling AbstractBlock.AbstractBlockState.emitsRedstonePower() instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getAmbientOcclusionLightLevel(BlockState, BlockView, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.getAmbientOcclusionLightLevel(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getCameraCollisionShape(BlockState, BlockView, BlockPos, ShapeContext)
    Consider calling AbstractBlock.AbstractBlockState.getCameraCollisionShape(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos, net.minecraft.block.ShapeContext) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getCollisionShape(BlockState, BlockView, BlockPos, ShapeContext)
    Consider calling AbstractBlock.AbstractBlockState.getCollisionShape(BlockView, BlockPos, ShapeContext) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getComparatorOutput(BlockState, World, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.getComparatorOutput(net.minecraft.world.World, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getCullingShape(BlockState, BlockView, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.getCullingShape(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getDroppedStacks(BlockState, LootContext.Builder)
    Consider calling AbstractBlock.AbstractBlockState.getDroppedStacks(net.minecraft.loot.context.LootContext.Builder) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getFluidState(BlockState)
    Consider calling AbstractBlock.AbstractBlockState.getFluidState() instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getOpacity(BlockState, BlockView, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.getOpacity(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getOutlineShape(BlockState, BlockView, BlockPos, ShapeContext)
    Consider calling AbstractBlock.AbstractBlockState.getOutlineShape(BlockView, BlockPos, ShapeContext) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getPistonBehavior(BlockState)
    Consider calling AbstractBlock.AbstractBlockState.getPistonBehavior() instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getRaycastShape(BlockState, BlockView, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.getRaycastShape(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getRenderingSeed(BlockState, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.getRenderingSeed(net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getRenderType(BlockState)
    Consider calling AbstractBlock.AbstractBlockState.getRenderType() instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getSidesShape(BlockState, BlockView, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.getSidesShape(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getStateForNeighborUpdate(BlockState, Direction, BlockState, WorldAccess, BlockPos, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.getStateForNeighborUpdate(net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getStrongRedstonePower(BlockState, BlockView, BlockPos, Direction)
    Consider calling AbstractBlock.AbstractBlockState.getStrongRedstonePower(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.getWeakRedstonePower(BlockState, BlockView, BlockPos, Direction)
    Consider calling AbstractBlock.AbstractBlockState.getWeakRedstonePower(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.hasComparatorOutput(BlockState)
    Consider calling AbstractBlock.AbstractBlockState.hasComparatorOutput() instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.hasSidedTransparency(BlockState)
    Consider calling AbstractBlock.AbstractBlockState.hasSidedTransparency instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.isCullingShapeFullCube(BlockState, BlockView, BlockPos)
    net.minecraft.block.AbstractBlock.isShapeFullCube(BlockState, BlockView, BlockPos)
    Consider calling AbstractBlock.AbstractBlockState.isFullCube(net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.isSideInvisible(BlockState, BlockState, Direction)
    Consider calling AbstractBlock.AbstractBlockState.isSideInvisible(net.minecraft.block.BlockState, net.minecraft.util.math.Direction) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.mirror(BlockState, BlockMirror)
    Consider calling AbstractBlock.AbstractBlockState.mirror(net.minecraft.util.BlockMirror) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.neighborUpdate(BlockState, World, BlockPos, Block, BlockPos, boolean)
    Consider calling AbstractBlock.AbstractBlockState.neighborUpdate(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.onBlockAdded(BlockState, World, BlockPos, BlockState, boolean)
    Consider calling AbstractBlock.AbstractBlockState.onBlockAdded(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.onBlockBreakStart(BlockState, World, BlockPos, PlayerEntity)
    Consider calling AbstractBlock.AbstractBlockState.onBlockBreakStart(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.onEntityCollision(BlockState, World, BlockPos, Entity)
    Consider calling AbstractBlock.AbstractBlockState.onEntityCollision(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.onProjectileHit(World, BlockState, BlockHitResult, ProjectileEntity)
    Consider calling AbstractBlock.AbstractBlockState.onProjectileHit(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.hit.BlockHitResult, net.minecraft.entity.projectile.ProjectileEntity) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.onStacksDropped(BlockState, ServerWorld, BlockPos, ItemStack, boolean)
    Consider calling AbstractBlock.AbstractBlockState.onStacksDropped(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.item.ItemStack, boolean) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.onStateReplaced(BlockState, World, BlockPos, BlockState, boolean)
    Consider calling AbstractBlock.AbstractBlockState.onStateReplaced(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.onSyncedBlockEvent(BlockState, World, BlockPos, int, int)
    Consider calling AbstractBlock.AbstractBlockState.onSyncedBlockEvent(net.minecraft.world.World, net.minecraft.util.math.BlockPos, int, int) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.onUse(BlockState, World, BlockPos, PlayerEntity, Hand, BlockHitResult)
    Consider calling AbstractBlock.AbstractBlockState.onUse(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.Hand, net.minecraft.util.hit.BlockHitResult) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.prepare(BlockState, WorldAccess, BlockPos, int, int)
    Consider calling AbstractBlock.AbstractBlockState.prepare(WorldAccess, BlockPos, int, int) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.randomTick(BlockState, ServerWorld, BlockPos, Random)
    Consider calling AbstractBlock.AbstractBlockState.randomTick(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.rotate(BlockState, BlockRotation)
    Consider calling AbstractBlock.AbstractBlockState.rotate(net.minecraft.util.BlockRotation) instead. See why these methods are deprecated.
    net.minecraft.block.AbstractBlock.scheduledTick(BlockState, ServerWorld, BlockPos, Random)
    Consider calling AbstractBlock.AbstractBlockState.scheduledTick(net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random) instead. See why these methods are deprecated.
    net.minecraft.block.Block.getRegistryEntry()
    net.minecraft.block.entity.BlockEntity.setCachedState(BlockState)
    net.minecraft.client.item.ClampedModelPredicateProvider.call(ItemStack, ClientWorld, LivingEntity, int)
    net.minecraft.client.texture.NativeImage.makePixelArray()
    net.minecraft.client.util.RawTextureDataLoader.loadRawTextureData(ResourceManager, Identifier)
    net.minecraft.data.client.ModelIds.getMinecraftNamespacedBlock(String)
    net.minecraft.entity.ai.brain.Brain.getMemories()
    net.minecraft.entity.ai.brain.Brain.getPossibleActivities()
    net.minecraft.entity.ai.brain.Brain.getRunningTasks()
    net.minecraft.entity.Bucketable.copyDataFromNbt(MobEntity, NbtCompound)
    net.minecraft.entity.Bucketable.copyDataToStack(MobEntity, ItemStack)
    net.minecraft.entity.Entity.getBrightnessAtEyes()
    net.minecraft.entity.Entity.getLandingBlockState()
    net.minecraft.entity.Entity.getLandingPos()
    net.minecraft.entity.Entity.reinitDimensions()
    net.minecraft.entity.EntityType.getRegistryEntry()
    net.minecraft.fluid.Fluid.getRegistryEntry()
    net.minecraft.fluid.Fluid.isIn(TagKey<Fluid>)
    net.minecraft.GameVersion.getSeriesId()
    net.minecraft.GameVersion.getWorldVersion()
    net.minecraft.item.Item.fromBlock(Block)
    Please use Block.asItem()
    net.minecraft.item.Item.getRegistryEntry()
    net.minecraft.loot.function.SetNbtLootFunction.builder(NbtCompound)
    net.minecraft.network.PacketByteBuf.decode(Codec<T>)
    net.minecraft.network.PacketByteBuf.encode(Codec<T>, T)
    net.minecraft.registry.entry.RegistryEntry.Reference.intrusive(RegistryEntryOwner<T>, T)
    Intrusive holders exist for legacy reasons only.
    net.minecraft.registry.entry.RegistryEntryList.of(RegistryEntryOwner<T>, TagKey<T>)
    net.minecraft.server.world.ServerWorld.getDragonPart(int)
    net.minecraft.structure.SimpleStructurePiece.translate(int, int, int)
    net.minecraft.structure.StructurePiecesCollector.shift(int)
    net.minecraft.structure.StructurePiecesCollector.shiftInto(int, int, Random, int)
    net.minecraft.util.math.BlockBox.encompass(BlockBox)
    net.minecraft.util.math.BlockBox.encompass(BlockPos)
    net.minecraft.util.math.BlockBox.move(int, int, int)
    net.minecraft.util.math.BlockBox.move(Vec3i)
    net.minecraft.util.math.MathHelper.fwrapDegrees(double)
    net.minecraft.util.math.MathHelper.lerpAngle(float, float, float)
    net.minecraft.util.math.noise.DoublePerlinNoiseSampler.createLegacy(Random, DoublePerlinNoiseSampler.NoiseParameters)
    net.minecraft.util.math.noise.OctavePerlinNoiseSampler.createLegacy(Random, int, DoubleList)
    net.minecraft.util.math.noise.OctavePerlinNoiseSampler.createLegacy(Random, IntStream)
    net.minecraft.util.math.noise.OctavePerlinNoiseSampler.sample(double, double, double, double, double, boolean)
    net.minecraft.util.math.noise.PerlinNoiseSampler.sample(double, double, double, double, double)
    net.minecraft.util.math.random.Random.createThreadSafe()
    This one is hard to ensure deterministic behavior compared to the non-thread-safe one.
    net.minecraft.world.biome.Biome.getTemperature(BlockPos)
    net.minecraft.world.chunk.Chunk.getOrCreateGenerationSettings(Supplier<GenerationSettings>)
    net.minecraft.world.chunk.WorldChunk.addEntity(Entity)
    net.minecraft.world.ChunkRegion.toServerWorld()
    net.minecraft.world.dimension.DimensionType.worldFromDimensionNbt(Dynamic<?>)
    net.minecraft.world.event.GameEvent.getRegistryEntry()
    net.minecraft.world.gen.carver.CarverContext.applyMaterialRule(Function<BlockPos, RegistryEntry<Biome>>, Chunk, BlockPos, boolean)
    net.minecraft.world.gen.carver.CarverContext.getRegistryManager()
    net.minecraft.world.gen.chunk.ChunkGenerator.getGenerationSettings(RegistryEntry<Biome>)
    net.minecraft.world.gen.chunk.ChunkGeneratorSettings.mobGenerationDisabled()
    net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Noise.xzScale()
    net.minecraft.world.gen.structure.Structure.getShiftedPos(Structure.Context, BlockRotation)
    net.minecraft.world.gen.surfacebuilder.SurfaceBuilder.applyMaterialRule(MaterialRules.MaterialRule, CarverContext, Function<BlockPos, RegistryEntry<Biome>>, Chunk, ChunkNoiseSampler, BlockPos, boolean)
    net.minecraft.world.poi.PointOfInterest.getFreeTickets()
    net.minecraft.world.poi.PointOfInterestSet.getFreeTickets(BlockPos)
    net.minecraft.world.poi.PointOfInterestStorage.getFreeTickets(BlockPos)
    net.minecraft.world.WorldView.getBrightness(BlockPos)
    net.minecraft.world.WorldView.getSeaLevel()
    net.minecraft.world.WorldView.isChunkLoaded(int, int)
    net.minecraft.world.WorldView.isChunkLoaded(BlockPos)
    net.minecraft.world.WorldView.isPosLoaded(int, int)
    net.minecraft.world.WorldView.isRegionLoaded(int, int, int, int)
    net.minecraft.world.WorldView.isRegionLoaded(int, int, int, int, int, int)
    net.minecraft.world.WorldView.isRegionLoaded(BlockPos, BlockPos)
  • Deprecated Constructors
    Constructor
    Description
    net.minecraft.block.EntityShapeContext(Entity)
    net.minecraft.registry.tag.TagKey(RegistryKey<? extends Registry<T>>, Identifier)