more entity events and entity item api
This commit is contained in:
1 parent
25b37913f2
commit
06b3f7c532
9 files changed
+121
-21
No files matched your search
@@ -4,6 +4,7 @@ import carpet.script.CarpetContext;
|
||||
import carpet.script.CarpetEventServer;
|
||||
import carpet.script.ScriptHost;
|
||||
import carpet.script.value.Value;
|
||||
import net.minecraft.entity.damage.DamageSource;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -13,8 +14,8 @@ public interface EntityInterface
|
||||
//scarpet part
|
||||
void onDeathCallback(String reason);
|
||||
void setDeathCallback(CarpetContext cc, String function, List<Value> extraArgs);
|
||||
void onDamageCallback();
|
||||
void onDamageCallback(float amount, DamageSource source);
|
||||
void setDamageCallback(CarpetContext cc, String function, List<Value> extraArgs);
|
||||
void onRemovedCallback();
|
||||
void setRemovedCallback(CarpetContext cc, String function, List<Value> extraArgs);
|
||||
void setTickCallback(CarpetContext cc, String function, List<Value> extraArgs);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package carpet.fakes;
|
||||
|
||||
public interface ItemEntityInterface
|
||||
{
|
||||
int getAge();
|
||||
int getPickupDelay();
|
||||
}
|
||||
Reference in new issue
Block a user