-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conversion to client-side stacks in fake-entity metadata
Fixes #283
- Loading branch information
1 parent
6d51ace
commit 00d98d3
Showing
4 changed files
with
18 additions
and
5 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
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
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
3 changes: 1 addition & 2 deletions
3
nova/src/main/kotlin/xyz/xenondevs/nova/world/fakeentity/metadata/impl/ItemMetadata.kt
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
package xyz.xenondevs.nova.world.fakeentity.metadata.impl | ||
|
||
import net.minecraft.network.syncher.EntityDataSerializers | ||
import net.minecraft.world.item.ItemStack | ||
|
||
class ItemMetadata : EntityMetadata() { | ||
|
||
var item: ItemStack by entry(8, EntityDataSerializers.ITEM_STACK, ItemStack.EMPTY) | ||
var item: ItemStack by itemStack(8, true, ItemStack.EMPTY) | ||
|
||
} |