Skip to content

Instantly share code, notes, and snippets.

@dha-lo-jd
Last active December 29, 2015 06:08
Show Gist options
  • Save dha-lo-jd/7626415 to your computer and use it in GitHub Desktop.
Save dha-lo-jd/7626415 to your computer and use it in GitHub Desktop.
List<EntityAITaskEntry> entries = Lists.newArrayList(tasks.taskEntries);
for (EntityAITaskEntry entry : entries) {
tasks.removeTask(entry.action);
}
@Override
public void resetTask() {
// お食事強制終了(チッ残ねn
entity = null;
capture = false;
theWorld.playSoundAtEntity(theUtility, "random.burp", 1.5F, theWorld.rand.nextFloat() * 0.1F + 0.9F);
((EntityLivingChest) theUtility).setOpen(false);
// パーティクルを止める
theUtility.getDataWatcher().updateObject(30, "");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment