8000 Fix some bug by jihuayu · Pull Request #711 · gomint/gomint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix some bug #711

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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Fix some bug #711

wants to merge 23 commits into from

Conversation

jihuayu
Copy link
Contributor
@jihuayu jihuayu commented Jan 21, 2021

No description provided.

@jihuayu
Copy link
Contributor Author
jihuayu commented Jan 27, 2021

ItemStack#itemType() will be added after enum ItemType refactor.

@jihuayu jihuayu marked this pull request as ready for review January 27, 2021 10:33
@@ -1,6 +1,7 @@
package io.gomint.inventory.item;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved to ItemGlass since there is no "stained" and "non-stained" version.

@@ -1,6 +1,7 @@
package io.gomint.inventory.item;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved to ItemGlassPane since there is no "stained" and "non-stained" version.

@geNAZt
Copy link
Member
geNAZt commented Feb 6, 2021

Also please fill in the docs. I won't merge API filled with documentation Todos

@geNAZt geNAZt self-assigned this Feb 6, 2021


//TODO: docs
Facing face();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a BlockFacing abstraction interface. Please use it

@@ -53,4 +54,9 @@
*/
BlockBed head(boolean value);

//TODO: docs
Direction face();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a BlockFacing abstraction interface. Please use it

@@ -7,7 +7,6 @@
* @author geNAZt
* @version 1.0
*/
@RegisterInfo( sId = "minecraft:leaves2")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has this register been removed but not the implementation class? There is currently no way to use this and the API class on it


@Override
public io.gomint.inventory.item.ItemStainedGlassPane color(GlassColor color) {
this.data((short) color.ordinal());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the transparent has been merged to the end it would result in invalid data. Please handle that case different. Also you need to change the material here to glass_pane

@@ -84,7 +84,7 @@ public Bearing opposite() {
*/
public static Bearing fromAngle( float angle ) {
// Normalize angle
angle -= 90;
angle += 180;// Why -90?
Copy link
Member
@geNAZt geNAZt Feb 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

180 also is wrong. best would be to change north and south in the if statements below and getting rid of any further angle manipulation.

Also this seems to be correct, i have cross checked it with the way JE coordinate system works. And its the same for bedrock it seems

}
// @Override
// public String blockId() {
// return "minecraft:stained_glass";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use git, please delete commented code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0