Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
Partonetrain committed Jan 4, 2025
1 parent 49200ff commit 827cbac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static boolean isCorundum() {

@LoadEvent
public final void setup(ZCommonSetup event) {
lampTag = Quark.asTagKey(Registries.BLOCK,"crystal_lamp");
lampTag = Quark.asTagKey(Registries.BLOCK, "crystal_lamp");
}

@LoadEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void postRegister(ZRegister.Post e) {

@LoadEvent
public final void setup(ZCommonSetup event) {
verticalSlabTag = Quark.asTagKey(Registries.BLOCK,"vertical_slabs");
verticalSlabTag = Quark.asTagKey(Registries.BLOCK, "vertical_slabs");
}

@LoadEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.violetmoon.quark.content.building.module;

import net.minecraft.core.registries.Registries;
import net.neoforged.neoforge.common.ItemAbilities;
import org.violetmoon.quark.base.Quark;
import org.violetmoon.quark.content.building.block.WoodPostBlock;
import org.violetmoon.zeta.event.bus.LoadEvent;
Expand All @@ -21,8 +22,6 @@
import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.LanternBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraftforge.common.ToolActions;

@ZetaLoadModule(category = "building")
public class WoodenPostsModule extends ZetaModule {
Expand All @@ -37,13 +36,13 @@ public final void register(ZRegister event) {

WoodPostBlock post = new WoodPostBlock(this, b, "", wood.soundWood());
WoodPostBlock stripped = new WoodPostBlock(this, b, "stripped_", wood.soundWood());
ToolInteractionHandler.registerInteraction(ToolActions.AXE_STRIP, post, stripped);
ToolInteractionHandler.registerInteraction(ItemAbilities.AXE_STRIP, post, stripped);
}
}

@LoadEvent
public final void setup(ZCommonSetup event) {
postsTag = Quark.asTagKey(Registries.ITEM,"posts");
postsTag = Quark.asTagKey(Registries.ITEM, "posts");
}

public static boolean canHangingBlockConnect(BlockState state, LevelReader worldIn, BlockPos pos, boolean prev) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public boolean isFood(ItemStack stack) {
private Ingredient getTemptationItems() {
if(temptationItems == null)
temptationItems = Ingredient.of(
Quark.asTagKey(Registries.ITEM,"crab_tempt_items"));
Quark.asTagKey(Registries.ITEM, "crab_tempt_items"));

return temptationItems;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

public class Foxhound extends Wolf implements Enemy {

public static final ResourceKey<LootTable> FOXHOUND_LOOT_TABLE = Quark.asResourceKey(Registries.LOOT_TABLE,"entities/foxhound");
public static final ResourceKey<LootTable> FOXHOUND_LOOT_TABLE = Quark.asResourceKey(Registries.LOOT_TABLE, "entities/foxhound");

private static final EntityDataAccessor<Boolean> TEMPTATION = SynchedEntityData.defineId(Foxhound.class, EntityDataSerializers.BOOLEAN);
private static final EntityDataAccessor<Boolean> IS_BLUE = SynchedEntityData.defineId(Foxhound.class, EntityDataSerializers.BOOLEAN);
Expand Down

0 comments on commit 827cbac

Please sign in to comment.