Skip to content

Commit

Permalink
cleaningup code
Browse files Browse the repository at this point in the history
  • Loading branch information
RealYusufIsmail committed Dec 19, 2023
1 parent 64b1033 commit f55dc60
Show file tree
Hide file tree
Showing 98 changed files with 294 additions and 378 deletions.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/core/init/package-info.java

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/core/util/package-info.java

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/data/lang/package-info.java

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/data/loot/package-info.java

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/data/package-info.java

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/data/tags/package-info.java

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/entity/ai/package-info.java

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/entity/package-info.java

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/java/com/yusuf/bentenmod/item/package-info.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod;
package io.github.realyusufismail.bentenmod;

import com.yusuf.bentenmod.core.init.*;
import com.yusuf.bentenmod.core.util.ModResourceLocation;
import io.github.realyusufismail.bentenmod.core.init.*;
import io.github.realyusufismail.bentenmod.core.util.ModResourceLocation;
import io.github.realyusufismail.bentenmod.data.DataGenerators;
import net.minecraft.item.crafting.IRecipeSerializer;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.world.BiomeLoadingEvent;
Expand All @@ -35,8 +36,6 @@

@Mod("bentenmod")
public class BenTenMod {
// Directly reference a log4j logger.
public static final Logger LOGGER = LogManager.getLogger();
public static final String MOD_ID = "bentenmod";

public BenTenMod() {
Expand All @@ -52,11 +51,10 @@ public BenTenMod() {
GeckoLib.initialize();

bus.addGenericListener(IRecipeSerializer.class, RegisterRecipeInit::registerRecipes);
MinecraftForge.EVENT_BUS.addListener(EventPriority.HIGH, OreGenerationInit::addOres);
bus.addListener(DataGenerators::gatherData);
MinecraftForge.EVENT_BUS.addListener(this::onBiomeLoad);
MinecraftForge.EVENT_BUS.addListener(EventPriority.HIGH, OreGenerationInit::addOres);
MinecraftForge.EVENT_BUS.register(this);

bus.register(this);
}

public static ModResourceLocation getId(String path) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.client;
package io.github.realyusufismail.bentenmod.client;

import com.yusuf.bentenmod.BenTenMod;
import com.yusuf.bentenmod.client.renderer.KraabRenderer;
import com.yusuf.bentenmod.client.renderer.VilgaxRenderer;
import com.yusuf.bentenmod.core.init.EntityTypesInit;
import com.yusuf.bentenmod.core.keybind.Keybindings;
import com.yusuf.bentenmod.entity.KraabBoltEntity;
import io.github.realyusufismail.bentenmod.BenTenMod;
import io.github.realyusufismail.bentenmod.client.renderer.KraabRenderer;
import io.github.realyusufismail.bentenmod.client.renderer.VilgaxRenderer;
import io.github.realyusufismail.bentenmod.core.init.EntityTypesInit;
import io.github.realyusufismail.bentenmod.core.keybind.Keybindings;
import io.github.realyusufismail.bentenmod.entity.KraabBoltEntity;
import net.minecraft.client.renderer.entity.EntityRenderer;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.util.ResourceLocation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.client;
package io.github.realyusufismail.bentenmod.client;

import com.mojang.blaze3d.matrix.MatrixStack;
import java.awt.Color;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.client.model;
package io.github.realyusufismail.bentenmod.client.model;

import com.google.common.collect.ImmutableList;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import com.yusuf.bentenmod.entity.KraabEntity;
import io.github.realyusufismail.bentenmod.entity.KraabEntity;
import net.minecraft.client.renderer.entity.model.EntityModel;
import net.minecraft.client.renderer.model.ModelRenderer;
import net.minecraft.util.math.MathHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.client.model;
package io.github.realyusufismail.bentenmod.client.model;

import com.yusuf.bentenmod.BenTenMod;
import com.yusuf.bentenmod.entity.VilgaxEntity;
import io.github.realyusufismail.bentenmod.BenTenMod;
import io.github.realyusufismail.bentenmod.entity.VilgaxEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
package io.github.realyusufismail.bentenmod.client.model;

import javax.annotation.ParametersAreNonnullByDefault;
import mcp.MethodsReturnNonnullByDefault;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
package com.yusuf.bentenmod.client.renderer;
package io.github.realyusufismail.bentenmod.client;

import javax.annotation.ParametersAreNonnullByDefault;
import mcp.MethodsReturnNonnullByDefault;
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.client.renderer;
package io.github.realyusufismail.bentenmod.client.renderer;

import com.mojang.blaze3d.matrix.MatrixStack;
import com.yusuf.bentenmod.BenTenMod;
import com.yusuf.bentenmod.client.model.KraabModel;
import com.yusuf.bentenmod.entity.KraabEntity;
import io.github.realyusufismail.bentenmod.BenTenMod;
import io.github.realyusufismail.bentenmod.client.model.KraabModel;
import io.github.realyusufismail.bentenmod.entity.KraabEntity;
import net.minecraft.client.renderer.entity.EntityRendererManager;
import net.minecraft.client.renderer.entity.MobRenderer;
import net.minecraft.util.ResourceLocation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.client.renderer;
package io.github.realyusufismail.bentenmod.client.renderer;

import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import com.yusuf.bentenmod.client.model.VilgaxModel;
import com.yusuf.bentenmod.entity.VilgaxEntity;
import io.github.realyusufismail.bentenmod.client.model.VilgaxModel;
import io.github.realyusufismail.bentenmod.entity.VilgaxEntity;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.EntityRendererManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
package io.github.realyusufismail.bentenmod.client.renderer;

import javax.annotation.ParametersAreNonnullByDefault;
import mcp.MethodsReturnNonnullByDefault;
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.common;
package io.github.realyusufismail.bentenmod.common;

import com.yusuf.bentenmod.BenTenMod;
import io.github.realyusufismail.bentenmod.BenTenMod;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TranslationTextComponent;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.common.events;
package io.github.realyusufismail.bentenmod.common.events;

import com.yusuf.bentenmod.core.init.ItemInit;
import io.github.realyusufismail.bentenmod.core.init.ItemInit;
import net.minecraft.entity.player.PlayerAbilities;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.EquipmentSlotType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.common.events;
package io.github.realyusufismail.bentenmod.common.events;

import com.yusuf.bentenmod.BenTenMod;
import com.yusuf.bentenmod.core.init.KeybindsInit;
import io.github.realyusufismail.bentenmod.BenTenMod;
import io.github.realyusufismail.bentenmod.core.init.KeybindsInit;
import net.minecraft.client.Minecraft;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.InputEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.common.events;
package io.github.realyusufismail.bentenmod.common.events;

import com.yusuf.bentenmod.core.init.ItemInit;
import io.github.realyusufismail.bentenmod.core.init.ItemInit;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.ArmorItem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.common.events;
package io.github.realyusufismail.bentenmod.common.events;

import com.yusuf.bentenmod.core.init.ItemInit;
import io.github.realyusufismail.bentenmod.core.init.ItemInit;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.ArmorItem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.common.events;
package io.github.realyusufismail.bentenmod.common.events;

import com.yusuf.bentenmod.BenTenMod;
import com.yusuf.bentenmod.core.init.EntityTypesInit;
import com.yusuf.bentenmod.item.ModSpawnEggItem;
import io.github.realyusufismail.bentenmod.BenTenMod;
import io.github.realyusufismail.bentenmod.core.init.EntityTypesInit;
import io.github.realyusufismail.bentenmod.item.ModSpawnEggItem;
import net.minecraft.entity.EntityType;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.event.RegistryEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.yusuf.bentenmod.common.events;
package io.github.realyusufismail.bentenmod.common.events;

import com.yusuf.bentenmod.core.init.ItemInit;
import io.github.realyusufismail.bentenmod.core.init.ItemInit;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.ArmorItem;
Expand Down
Loading

0 comments on commit f55dc60

Please sign in to comment.