-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
base: master
Are you sure you want to change the base?
Fix some bug #711
Changes from all commits
0d027b4
3659360
331c5b9
7428e11
fd4621d
f020065
98268ce
68fb369
f52677b
52b22d2
b5d5222
a76fc12
73f506f
0b92b3c
7c7baf2
5df1143
10a992d
f9f11b6
8333b8f
f4db779
b74864d
cafaee6
9926e1d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package io.gomint.inventory.item; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
||
import io.gomint.GoMint; | ||
import io.gomint.world.block.data.GlassColor; | ||
|
||
/** | ||
* @author geNAZt | ||
|
@@ -19,4 +20,19 @@ static ItemStainedGlassPane create( int amount ) { | |
return GoMint.instance().createItemStack( ItemStainedGlassPane.class, amount ); | ||
} | ||
|
||
|
||
|
||
/** | ||
* Get the color of this glass pane | ||
* | ||
* @return color of this glass pane | ||
*/ | ||
GlassColor color(); | ||
|
||
/** | ||
* Set the color of this glass pane | ||
* | ||
* @param color which this glass pane should have | ||
*/ | ||
ItemStainedGlassPane color(GlassColor color); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2020 Gomint team | ||
* | ||
* This code is licensed under the BSD license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package io.gomint.world.block; | ||
|
||
import io.gomint.world.block.data.Facing; | ||
|
||
/** | ||
* @author jihuayu | ||
* @version 1.0 | ||
*/ | ||
public interface BlockBarrel extends Block { | ||
|
||
|
||
//TODO: docs | ||
Facing face(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a BlockFacing abstraction interface. Please use it |
||
|
||
//TODO: docs | ||
BlockBarrel face(Facing value); | ||
|
||
//TODO: docs | ||
Boolean open(); | ||
|
||
//TODO: docs | ||
BlockBarrel open(Boolean value); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
package io.gomint.world.block; | ||
|
||
import io.gomint.world.block.data.BlockColor; | ||
import io.gomint.world.block.data.Direction; | ||
|
||
/** | ||
* @author geNAZt | ||
|
@@ -53,4 +54,9 @@ public interface BlockBed extends Block { | |
*/ | ||
BlockBed head(boolean value); | ||
|
||
//TODO: docs | ||
Direction face(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a BlockFacing abstraction interface. Please use it |
||
|
||
//TODO: docs | ||
BlockBed face(Direction value); | ||
} |
This file was deleted.
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.
This should be moved to ItemGlass since there is no "stained" and "non-stained" version.