-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ch.14): rewrite Ch. 14 #59
base: bleeding
Are you sure you want to change the base?
Conversation
public boolean canPlayerInteractWith(EntityPlayer player) { | ||
// 决定了指定玩家是否能与这个 Container 交互。 | ||
// 返回 false 会阻止玩家正常使用 GUI。 | ||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这么写会有复制物品的bug。既然它是一个tile,应当判断这个tile还在不在玩家附近。具体参见 TileEntityLockableLoot#isUsableByPlayer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是一个空架子……
|
||
就 Container 和 GuiContainer 之间的关系,ustc-zzzz 有一张图很好的对其进行了解释: | ||
- 画线段 | ||
- 画矩形(需首先绑定纹理) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(需首先绑定纹理)
drawGradientRect 要哭了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
……
Synopsis / 简介
重写第 14 章。
Description / 详细说明
从零开始重写第 14 章:Minecraft GUI 系统详解。
Justification / 理由
烂尾工程一扫空。
Remarks / 备注
嗝。