-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64b202d
commit e5e5a8b
Showing
2 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package cam72cam.mod.entity; | ||
|
||
import cam72cam.mod.item.ItemStack; | ||
|
||
import java.util.UUID; | ||
|
||
/** Wrapper around ItemEntity */ | ||
public class ItemEntity extends Entity{ | ||
public net.minecraft.entity.item.ItemEntity internal; | ||
|
||
public ItemEntity(net.minecraft.entity.item.ItemEntity entity) { | ||
super(entity); | ||
this.internal = entity; | ||
} | ||
|
||
public ItemStack getContent(){ | ||
return new ItemStack(internal.getItem()); | ||
} | ||
|
||
public UUID getOwner(){ | ||
return internal.getOwnerId(); | ||
} | ||
|
||
public UUID getThrower(){ | ||
return internal.getThrowerId(); | ||
} | ||
public void setDefaultPickupDelay() { | ||
internal.setDefaultPickupDelay(); | ||
} | ||
|
||
public void setNoPickupDelay() { | ||
internal.setNoPickupDelay(); | ||
} | ||
|
||
public void setInfinitePickupDelay() { | ||
internal.setInfinitePickupDelay(); | ||
} | ||
|
||
public void setPickupDelay(int ticks) { | ||
internal.setPickupDelay(ticks); | ||
} | ||
|
||
public void setNoDespawn(){ | ||
internal.setNoDespawn(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters