refactor entity events. Allow multiple hosts have events on things

This commit is contained in:
gnembon committed 2019-11-29 10:34:13 -04:00
1 parent 1c35f5b6a9
commit afd7952a62
11 files changed
+190 -186

No files matched your search

@@ -1,22 +1,10 @@
package carpet.fakes;
import carpet.script.CarpetContext;
import carpet.script.CarpetEventServer;
import carpet.script.value.FunctionValue;
import carpet.script.value.Value;
import net.minecraft.entity.damage.DamageSource;
import java.util.List;
import carpet.script.EntityEventsGroup;
public interface EntityInterface
{
float getMainYaw(float partialTicks);
//scarpet part
void onDeathCallback(String reason);
void setDeathCallback(CarpetContext cc, FunctionValue function, List<Value> extraArgs);
void onDamageCallback(float amount, DamageSource source);
void setDamageCallback(CarpetContext cc, FunctionValue function, List<Value> extraArgs);
void setRemovedCallback(CarpetContext cc, FunctionValue function, List<Value> extraArgs);
void setTickCallback(CarpetContext cc, FunctionValue function, List<Value> extraArgs);
CarpetEventServer.ScheduledCall getTickCallback();
EntityEventsGroup getEventContainer();
}