Skip to content

迁移 - #5

Merged
Paudyancha merged 8 commits into
ANCCCB-DEV:dev/1.21.1/1.6from
Paudyancha:cha
Sep 20, 2026
Merged

Paudyancha merged 8 commits into
ANCCCB-DEV:dev/1.21.1/1.6from
Paudyancha:cha

Conversation

@Paudyancha

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

Checkstyle

⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck> reported by reviewdog 🐶
'(' is followed by whitespace.

private void dropItem( ItemStack itemStack) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '!=' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'!='后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '!=' is not preceded with whitespace.周围空格:'!='前面没有空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.周围空格:'{'前面没有空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

UseOnContext context = new UseOnContext(this.level(),player, InteractionHand.MAIN_HAND, itemStack, result);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck> reported by reviewdog 🐶
'(' is followed by whitespace.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '}' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'}'后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)

}else if (itemStack.getItem() instanceof TopazItem topazItem) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: 'else' is not preceded with whitespace.周围空格:'else'前面没有空格。

}else if (itemStack.getItem() instanceof TopazItem topazItem) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck> reported by reviewdog 🐶
')' is preceded with whitespace.

.define('R', ModItems.ROYAL_STEEL_INGOT )


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '->' is not preceded with whitespace.周围空格:'->'前面没有空格。

.item("genetic_ooze_bucket", prop-> new SolidBucketItem(CCBBlocks.GENETIC_OOZE_BLOCK.get(), SoundEvents.MUD_PLACE, prop))


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

public static final DeferredHolder<CreativeModeTab,CreativeModeTab> CHAPLUS_ITEMS = DEFERRED_REGISTER.register(


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck> reported by reviewdog 🐶
'"item"' has incorrect indentation level 0, expected level should be 4.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

.blockEntity("cement_worm",CementWormBlockEntity::new)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

public static final DeferredHolder<Fluid,GeneticOoze> GENETIC_OOZE = FLUIDS.register(


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

.block("cha_anvil",ChaAnvilBlock::new)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '->' is not preceded with whitespace.周围空格:'->'前面没有空格。

.initialProperties(()-> Blocks.SPRUCE_PLANKS)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

.block("genetic_ooze_block",GeneticOozeBlock::new)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '->' is not preceded with whitespace.周围空格:'->'前面没有空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '->' is not preceded with whitespace.周围空格:'->'前面没有空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.GenericWhitespaceCheck> reported by reviewdog 🐶
GenericWhitespace '<' is preceded with whitespace.泛型空白'<'前面有空格。

public class ForkRenderer <T extends ThrownHeavyHalberdEntity> extends EntityRenderer<T> {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck> reported by reviewdog 🐶
')' is preceded with whitespace.

public void render(T entity, float yaw, float partialTick, PoseStack pose, MultiBufferSource buffer, int light ) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

@EventBusSubscriber(modid = AnvilCraftCCB.MOD_ID ,value = Dist.CLIENT)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

@EventBusSubscriber(modid = AnvilCraftCCB.MOD_ID ,value = Dist.CLIENT)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.周围空格:'{'前面没有空格。

public static void breakBlock(PlayerInteractEvent.LeftClickBlock event){


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

PacketDistributor.sendToServer(new TuningForkPacket(event.getPos(),event.getHand()));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck> reported by reviewdog 🐶
'VARIABLE_DEF' has more than 1 empty lines before.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

public TuningForkPacket(BlockPos pos , InteractionHand hand) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
';' is preceded with whitespace.

if (!(player instanceof ServerPlayer serverPlayer)) return ;


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
';' is preceded with whitespace.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

TuningFork.tryBreakBlock(level ,player ,stack ,this.pos);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

TuningFork.tryBreakBlock(level ,player ,stack ,this.pos);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

TuningFork.tryBreakBlock(level ,player ,stack ,this.pos);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

TuningFork.tryBreakBlock(level ,player ,stack ,this.pos);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

TuningFork.tryBreakBlock(level ,player ,stack ,this.pos);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

TuningFork.tryBreakBlock(level ,player ,stack ,this.pos);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.周围空格:'{'前面没有空格。

public static void init(RegistrumRecipeProvider provider){


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

.save(provider , AnvilCraftCCB.of("fast_cooking/mush_bar_bowl"));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

.save(provider , AnvilCraftCCB.of("stamping/mush_bar"));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck> reported by reviewdog 🐶
Wrong lexicographical order for 'dev.anvilcraft.ccb.data.recipe.RecipeHandler' import. Should be before 'dev.anvilcraft.lib.v2.registrum.providers.ProviderType'.

import dev.anvilcraft.ccb.data.recipe.RecipeHandler;


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.周围空格:'{'前面没有空格。

public static void onLand(AnvilEvent.OnLand event){


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.周围空格:'{'前面没有空格。

if (hitBlockState.getBlock() instanceof WormBlock){


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.MatchXpathCheck#singleLineCommentStartWithSpace> reported by reviewdog 🐶
'//' must be followed by a whitespace.'//'后面必须跟一个空格。

//与 ItemInjectRecipeLoader 中生成的配方 id 保持一致


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.MatchXpathCheck#singleLineCommentStartWithSpace> reported by reviewdog 🐶
'//' must be followed by a whitespace.'//'后面必须跟一个空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.MethodParamPadCheck> reported by reviewdog 🐶
'(' is preceded with whitespace.

public static void inItemInject (InWorldRecipeEvent event) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '=' is not preceded with whitespace.周围空格:'='前面没有空格。

List<ItemIngredientPredicate> inputItems= recipe.getInputItems();


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

state = state.setValue(INFECTION,getInfection(stack,state));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

state = state.setValue(INFECTION,getInfection(stack,state));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

private static int getInfection(ItemStack stack ,BlockState state) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

private static int getInfection(ItemStack stack ,BlockState state) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

if (food != null) return Math.min(15,state.getValue(INFECTION)+stack.getCount()*food.nutrition());


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '+' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'+'后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)

if (food != null) return Math.min(15,state.getValue(INFECTION)+stack.getCount()*food.nutrition());


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '+' is not preceded with whitespace.周围空格:'+'前面没有空格。

if (food != null) return Math.min(15,state.getValue(INFECTION)+stack.getCount()*food.nutrition());


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:''后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)

if (food != null) return Math.min(15,state.getValue(INFECTION)+stack.getCount()*food.nutrition());


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '' is not preceded with whitespace.周围空格:''前面没有空格。

if (food != null) return Math.min(15,state.getValue(INFECTION)+stack.getCount()*food.nutrition());


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

@Config(name = AnvilCraftCCB.MOD_ID , type = ModConfig.Type.SERVER)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck> reported by reviewdog 🐶
Abbreviation in name 'THROW_THRESHOLD_TIME' must contain no more than '4' consecutive capital letters.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck> reported by reviewdog 🐶
Member name 'THROW_THRESHOLD_TIME' must match pattern '^(?![a-z]$)(?![a-z][A-Z])[a-z][a-zA-Z0-9$](?:_[0-9]+)$'.成员名'THROW_THRESHOLD_TIME'必须匹配模式'^(?![a-z]$)(?![a-z][A-Z])[a-z][a-zA-Z0-9$](?:_[0-9]+)$'。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.周围空格:'{'前面没有空格。

public class CementWormBlockEntity extends WormBlockEntity{


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck> reported by reviewdog 🐶
')' is preceded with whitespace.

if (worm.tank.getFluidAmount() < 1000 << size ) return false;


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

return template.placeInWorld((ServerLevelAccessor) level, posO, posO, settings,level.getRandom(), 3);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'if' construct must use '{}'s.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck> reported by reviewdog 🐶
')' is preceded with whitespace.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'else' construct must use '{}'s.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.MatchXpathCheck#singleLineCommentStartWithSpace> reported by reviewdog 🐶
'//' must be followed by a whitespace.'//'后面必须跟一个空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '+=' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'+='后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

this.registerDefaultState(this.getStateDefinition().any().setValue(INFECTION,0));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.周围空格:'{'前面没有空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.周围空格:'{'前面没有空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

this.registerDefaultState(this.getStateDefinition().any().setValue(HAS_EATEN_MELON,false));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'if' construct must use '{}'s.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

level.setBlockAndUpdate(pos, state.setValue(HAS_EATEN_MELON , true));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '}' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'}'后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)

}else if(state.getValue(HAS_EATEN_MELON))


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: 'else' is not preceded with whitespace.周围空格:'else'前面没有空格。

}else if(state.getValue(HAS_EATEN_MELON))


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'if' construct must use '{}'s.

}else if(state.getValue(HAS_EATEN_MELON))


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
'if' is not followed by whitespace.

}else if(state.getValue(HAS_EATEN_MELON))


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: 'if' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'if'后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)

}else if(state.getValue(HAS_EATEN_MELON))


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

level.setBlockAndUpdate(pos, state.setValue(HAS_EATEN_MELON,damageDropped(level , belowPos , belowBlock)));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

level.setBlockAndUpdate(pos, state.setValue(HAS_EATEN_MELON,damageDropped(level , belowPos , belowBlock)));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

level.setBlockAndUpdate(pos, state.setValue(HAS_EATEN_MELON,damageDropped(level , belowPos , belowBlock)));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

private boolean damageDropped(Level level , BlockPos belowPos ,Block belowBlock) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck> reported by reviewdog 🐶
',' is preceded with whitespace.

private boolean damageDropped(Level level , BlockPos belowPos ,Block belowBlock) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

private boolean damageDropped(Level level , BlockPos belowPos ,Block belowBlock) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

level.setBlockAndUpdate(belowPos,ModBlocks.STURDY_DEEPSLATE.getDefaultState());


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

level.setBlockAndUpdate(belowPos,Blocks.DEEPSLATE.defaultBlockState());


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '}' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'}'后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)

}else if (level.getBlockState(belowPos).is(Tags.Blocks.STONES)) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: 'else' is not preceded with whitespace.周围空格:'else'前面没有空格。

}else if (level.getBlockState(belowPos).is(Tags.Blocks.STONES)) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '}' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'}'后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: 'else' is not preceded with whitespace.周围空格:'else'前面没有空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck> reported by reviewdog 🐶
')' is preceded with whitespace.

if (level.getBlockEntity(pos) instanceof WormBlockEntity worm ) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.MatchXpathCheck#singleLineCommentStartWithSpace> reported by reviewdog 🐶
'//' must be followed by a whitespace.'//'后面必须跟一个空格。


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.MatchXpathCheck#singleLineCommentStartWithSpace> reported by reviewdog 🐶
'//' must be followed by a whitespace.'//'后面必须跟一个空格。

//结束时调用.如果时间大于配置发射


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 140 characters (found 169).

if (this.getUseDuration(stack, entity) - timeCharged >= AnvilCraftCCB.CONFIG.THROW_THRESHOLD_TIME && stack.getMaxDamage() - stack.getDamageValue() > 4) {


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

stack.hurtAndBreak(1, (ServerLevel) player.level(),player,item -> {});


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

stack.hurtAndBreak(1, (ServerLevel) player.level(),player,item -> {});


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'if' construct must use '{}'s.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck> reported by reviewdog 🐶
Distance between variable 'sStack' declaration and its first usage is 4, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value).

ItemStack sStack = player.getOffhandItem();


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck> reported by reviewdog 🐶
Local variable name 'sStack' must match pattern '^a-z?$'.局部变量名'sStack'必须匹配模式'^a-z?$'。

ItemStack sStack = player.getOffhandItem();


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'if' construct must use '{}'s.

if (!player.getMainHandItem().isEmpty())


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'if' construct must use '{}'s.

if (player.getUsedItemHand()!= InteractionHand.OFF_HAND)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '!=' is not preceded with whitespace.周围空格:'!='前面没有空格。

if (player.getUsedItemHand()!= InteractionHand.OFF_HAND)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'if' construct must use '{}'s.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
'if' is not followed by whitespace.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: 'if' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)周围空格:'if'后面没有空格。空块只有在不作为多块语句的一部分时才能表示为{}(4.1.3)


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

fork.setItemPlayer(player,sStack.split(1));


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 140 characters (found 142).

ItemStack blockItem = player.getItemInHand(player.getMainHandItem() != stack ? InteractionHand.MAIN_HAND : InteractionHand.OFF_HAND);


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck> reported by reviewdog 🐶
')' is preceded with whitespace.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck> reported by reviewdog 🐶
'if' construct must use '{}'s.


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

stack.hurtAndBreak(Math.min((durability >> 2), 16), (ServerLevel) player.level(),player,item -> {});


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

stack.hurtAndBreak(Math.min((durability >> 2), 16), (ServerLevel) player.level(),player,item -> {});


⚠️ [Checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck> reported by reviewdog 🐶
'METHOD_DEF' should be separated from previous line.

@Paudyancha Paudyancha self-assigned this Sep 20, 2026
@Paudyancha Paudyancha linked an issue Sep 20, 2026 that may be closed by this pull request
@Paudyancha
Paudyancha merged commit 5187961 into ANCCCB-DEV:dev/1.21.1/1.6 Sep 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TODO] 迁移钢叉,猹砧

2 participants