Skip to content

Commit

Permalink
Fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Max094Reikeb committed Feb 10, 2024
1 parent 63f8462 commit 37b31d8
Show file tree
Hide file tree
Showing 32 changed files with 42 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import net.minecraft.entity.damage.DamageScaling;
import net.minecraft.entity.damage.DamageType;
import net.minecraft.registry.*;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;

public class NEGDamageTypes {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.mmodding.notenoughgamerules;

import com.mmodding.notenoughgamerules.events.AfterRespawnListener;
import com.mmodding.notenoughgamerules.events.DynamicRegistrySetupListener;
import com.mmodding.notenoughgamerules.events.PlayerSleepsListener;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.entity.event.v1.EntitySleepEvents;
import net.fabricmc.fabric.api.entity.event.v1.ServerPlayerEvents;
Expand All @@ -12,9 +15,6 @@
import net.minecraft.registry.tag.DamageTypeTags;
import net.minecraft.util.Identifier;
import net.minecraft.world.GameRules;
import com.mmodding.notenoughgamerules.events.AfterRespawnListener;
import com.mmodding.notenoughgamerules.events.DynamicRegistrySetupListener;
import com.mmodding.notenoughgamerules.events.PlayerSleepsListener;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

public class NotEnoughGamerules implements ModInitializer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.mmodding.notenoughgamerules.events;

import com.mmodding.notenoughgamerules.Gamerules;
import net.fabricmc.fabric.api.entity.event.v1.ServerPlayerEvents;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.server.network.ServerPlayerEntity;
import com.mmodding.notenoughgamerules.Gamerules;

public class AfterRespawnListener implements ServerPlayerEvents.AfterRespawn {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.mmodding.notenoughgamerules.events;

import com.mmodding.notenoughgamerules.NEGDamageTypes;
import net.fabricmc.fabric.api.event.registry.DynamicRegistrySetupCallback;
import net.fabricmc.fabric.api.event.registry.DynamicRegistryView;
import net.minecraft.registry.RegistryKeys;
import com.mmodding.notenoughgamerules.NEGDamageTypes;

public class DynamicRegistrySetupListener implements DynamicRegistrySetupCallback {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.mmodding.notenoughgamerules.events;

import com.mmodding.notenoughgamerules.Gamerules;
import net.fabricmc.fabric.api.entity.event.v1.EntitySleepEvents;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import com.mmodding.notenoughgamerules.Gamerules;
import org.jetbrains.annotations.Nullable;

public class PlayerSleepsListener implements EntitySleepEvents.AllowSleeping {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.mmodding.notenoughgamerules.mixin;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.network.packet.c2s.play.ChatMessageC2SPacket;
import net.minecraft.server.network.ServerPlayNetworkHandler;
import net.minecraft.server.network.ServerPlayerEntity;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.mmodding.notenoughgamerules.mixin;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.boss.dragon.EnderDragonFight;
import net.minecraft.server.world.ServerWorld;
import com.mmodding.notenoughgamerules.Gamerules;
import org.objectweb.asm.Opcodes;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.WorldView;
import net.minecraft.world.biome.Biome;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.mmodding.notenoughgamerules.mixin;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.effect.StatusEffect;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.AbstractBlock;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
Expand All @@ -8,7 +9,6 @@
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.BlockState;
import net.minecraft.block.CoralBlockBlock;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.BlockState;
import net.minecraft.block.CoralBlock;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.BlockState;
import net.minecraft.block.CoralFanBlock;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.BlockState;
import net.minecraft.block.CoralWallFanBlock;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.BlockState;
import net.minecraft.block.IceBlock;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.BlockState;
import net.minecraft.block.OxidizableBlock;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.PistonBlock;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.world.RedstoneView;
import net.minecraft.world.World;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.mmodding.notenoughgamerules.mixin.blocks;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.block.BlockState;
import net.minecraft.block.SnowBlock;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.random.Random;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.passive.AnimalEntity;
import net.minecraft.server.world.ServerWorld;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LightningEntity;
import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.damage.DamageSources;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.world.World;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import net.minecraft.entity.mob.HoglinEntity;
import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.mob.HoglinEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import com.mmodding.notenoughgamerules.Gamerules;
import com.mmodding.notenoughgamerules.NotEnoughGamerules;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.damage.DamageSource;
Expand All @@ -8,8 +10,6 @@
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import com.mmodding.notenoughgamerules.Gamerules;
import com.mmodding.notenoughgamerules.NotEnoughGamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.LightningEntity;
import net.minecraft.entity.passive.PigEntity;
import net.minecraft.server.world.ServerWorld;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import net.minecraft.entity.mob.AbstractPiglinEntity;
import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.mob.AbstractPiglinEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import net.minecraft.entity.TntEntity;
import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.TntEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.vehicle.TntMinecartEntity;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.LightningEntity;
import net.minecraft.entity.passive.VillagerEntity;
import net.minecraft.server.world.ServerWorld;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.mob.ZombieEntity;
import net.minecraft.util.math.random.Random;
import net.minecraft.world.Difficulty;
import com.mmodding.notenoughgamerules.Gamerules;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.mmodding.notenoughgamerules.mixin.entities;

import net.minecraft.entity.mob.ZombieVillagerEntity;
import com.mmodding.notenoughgamerules.Gamerules;
import net.minecraft.entity.mob.ZombieVillagerEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.mmodding.notenoughgamerules.mixin.player;

import com.mmodding.notenoughgamerules.NotEnoughGamerules;
import com.mmodding.notenoughgamerules.mixin.entities.LivingEntityMixin;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.damage.DamageSource;
import com.mmodding.notenoughgamerules.NotEnoughGamerules;
import com.mmodding.notenoughgamerules.mixin.entities.LivingEntityMixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.mmodding.notenoughgamerules.mixin.player;

import com.mmodding.notenoughgamerules.NotEnoughGamerules;
import com.mmodding.notenoughgamerules.mixin.entities.LivingEntityMixin;
import net.minecraft.client.network.OtherClientPlayerEntity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.damage.DamageSource;
import com.mmodding.notenoughgamerules.NotEnoughGamerules;
import com.mmodding.notenoughgamerules.mixin.entities.LivingEntityMixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package com.mmodding.notenoughgamerules.mixin.player;

import com.mmodding.notenoughgamerules.Gamerules;
import com.mmodding.notenoughgamerules.NEGDamageTypes;
import com.mmodding.notenoughgamerules.NotEnoughGamerules;
import com.mmodding.notenoughgamerules.mixin.entities.LivingEntityMixin;
import net.minecraft.entity.Entity;
import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.player.HungerManager;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.Text;
import net.minecraft.util.ActionResult;
import net.minecraft.world.GameRules;
import com.mmodding.notenoughgamerules.NEGDamageTypes;
import com.mmodding.notenoughgamerules.Gamerules;
import com.mmodding.notenoughgamerules.NotEnoughGamerules;
import com.mmodding.notenoughgamerules.mixin.entities.LivingEntityMixin;
import org.objectweb.asm.Opcodes;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand Down

0 comments on commit 37b31d8

Please sign in to comment.