Skip to content

Commit

Permalink
Removed another debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
Minenash committed Jun 10, 2021
1 parent bd307c6 commit fecbb2a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.fabricmc.example;
package com.minenash.monsters_in_the_closet;

import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.world.World;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
package net.fabricmc.example.mixin;
package com.minenash.monsters_in_the_closet.mixin;

import net.fabricmc.example.MonstersInTheCloset;
import com.minenash.monsters_in_the_closet.MonstersInTheCloset;
import net.minecraft.block.BedBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.HorizontalFacingBlock;
import net.minecraft.block.enums.BedPart;
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Hand;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Box;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.fabricmc.example.mixin;
package com.minenash.monsters_in_the_closet.mixin;

import net.fabricmc.example.MonstersInTheCloset;
import com.minenash.monsters_in_the_closet.MonstersInTheCloset;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.entity.mob.HostileEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package net.fabricmc.example.mixin;
package com.minenash.monsters_in_the_closet.mixin;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.example.MonstersInTheCloset;
import com.minenash.monsters_in_the_closet.MonstersInTheCloset;
import net.minecraft.client.network.ClientPlayerEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.fabricmc.example.mixin;
package com.minenash.monsters_in_the_closet.mixin;

import net.fabricmc.example.MonstersInTheCloset;
import com.minenash.monsters_in_the_closet.MonstersInTheCloset;
import net.minecraft.client.MinecraftClient;
import net.minecraft.entity.Entity;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -13,10 +13,8 @@ public class MinecraftClientMixin {

@Inject(method = "hasOutline", at = @At("RETURN"), cancellable = true)
private void showOutline(Entity entity, CallbackInfoReturnable<Boolean> info) {
if (MonstersInTheCloset.list.contains(entity)) {
System.out.println(entity);
if (MonstersInTheCloset.list.contains(entity))
info.setReturnValue(true);
}
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package net.fabricmc.example.mixin;
package com.minenash.monsters_in_the_closet.mixin;

import com.mojang.datafixers.util.Either;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.example.MonstersInTheCloset;
import com.minenash.monsters_in_the_closet.MonstersInTheCloset;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.mob.HostileEntity;
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/monsters_in_the_closet.mixins.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"required": true,
"minVersion": "0.8",
"package": "net.fabricmc.example.mixin",
"package": "com.minenash.monsters_in_the_closet.mixin",
"compatibilityLevel": "JAVA_16",
"mixins": [
"BedBlockMixin",
"ClientPlayNetworkHandlerMixin",
"MinecraftClientMixin"
],
"client": [
"ClientPlayerEntityMixin"
"ClientPlayerEntityMixin",
"ClientPlayNetworkHandlerMixin"
],
"server": [
"ServerPlayerEntityMixin"
Expand Down

0 comments on commit fecbb2a

Please sign in to comment.