How do I get the blocks surrounding the player on client side during every player tick?
I tried subscribing to the PlayerTickEvent, but it doesn't fire.
package com.test.mod
import net.minecraftforge.event.TickEvent.PlayerTickEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, modid = Main.ID)
public class Registry {
@SubscribeEvent
public static void onPlayerTick(PlayerTickEvent event)
{
System.out.println("Complete");
}
}
I also considered extending the PlayerEntity class, then overriding the Tick method, but I don't know how to register classes that extend PlayerEntity. Is it the same as registering other entities?