Skip to content

Commit

Permalink
Fix api name in comments of BlockBehavior (#1909)
Browse files Browse the repository at this point in the history
Co-authored-by: ChampionAsh5357 <[email protected]>
  • Loading branch information
YocyCraft and ChampionAsh5357 authored Feb 6, 2025
1 parent 91fc037 commit 840719e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
return this.isRandomlyTicking;
}

+ @Deprecated //Forge: Use more sensitive version {@link IForgeBlockState#getSoundType(IWorldReader, BlockPos, Entity) }
+ @Deprecated //Neo: Use more sensitive version {@link net.neoforged.neoforge.common.extensions.IBlockStateExtension#getSoundType(LevelReader, BlockPos, Entity) }
protected SoundType getSoundType(BlockState p_320941_) {
return this.soundType;
}

+ @Deprecated
+ /** @deprecated NeoForge: use {@link net.neoforged.neoforge.common.extensions.IBlockExtension#getCloneItemStack(BlockState, LevelReader, BlockPos, Player, boolean) player-sensitive version} */
+ /** @deprecated Neo: use {@link net.neoforged.neoforge.common.extensions.IBlockExtension#getCloneItemStack(LevelReader, BlockPos, BlockState, boolean, Player) player-sensitive version} */
protected ItemStack getCloneItemStack(LevelReader p_382795_, BlockPos p_383120_, BlockState p_382830_, boolean p_388788_) {
return new ItemStack(this.asItem());
}
Expand All @@ -59,7 +59,7 @@
return this.useShapeForLightOcclusion;
}

+ /** @deprecated Forge: Use {@link BlockState#getLightEmission(BlockGetter, BlockPos)} instead */
+ /** @deprecated Neo: Use {@link net.neoforged.neoforge.common.extensions.IBlockStateExtension#getLightEmission(BlockGetter, BlockPos)} instead */
+ @Deprecated
public int getLightEmission() {
return this.lightEmission;
Expand Down Expand Up @@ -107,7 +107,7 @@
return this.getBlock().getSeed(this.asState(), p_60727_);
}

+ @Deprecated //Forge: Use more sensitive version {@link IForgeBlockState#getSoundType(IWorldReader, BlockPos, Entity) }
+ @Deprecated //Neo: Use more sensitive version {@link net.neoforged.neoforge.common.extensions.IBlockStateExtension#getSoundType(LevelReader, BlockPos, Entity) }
public SoundType getSoundType() {
return this.getBlock().getSoundType(this.asState());
}
Expand Down

0 comments on commit 840719e

Please sign in to comment.