-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Candelbras, candelilla, client binding stuff, it's a ton.
- Loading branch information
Showing
47 changed files
with
1,254 additions
and
164 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+260 Bytes
resources/assets/gardenstuff/textures/blocks/candelabra_arm_ext.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+225 Bytes
resources/assets/gardentrees/textures/blocks/candelilla_stage_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+286 Bytes
resources/assets/gardentrees/textures/blocks/candelilla_stage_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+381 Bytes
resources/assets/gardentrees/textures/blocks/candelilla_stage_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+483 Bytes
resources/assets/gardentrees/textures/blocks/candelilla_stage_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+689 Bytes
resources/assets/gardentrees/textures/blocks/candelilla_stage_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+585 Bytes
resources/assets/gardentrees/textures/blocks/candelilla_stage_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
23 changes: 17 additions & 6 deletions
23
src/com/jaquadro/minecraft/gardencore/core/CommonProxy.java
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,26 +1,37 @@ | ||
package com.jaquadro.minecraft.gardencore.core; | ||
|
||
import com.jaquadro.minecraft.gardencore.util.BindingStack; | ||
import net.minecraft.world.World; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public abstract class CommonProxy | ||
public class CommonProxy | ||
{ | ||
private Map<Object, BindingStack> bindingStacksClient = new HashMap<Object, BindingStack>(); | ||
private Map<Object, BindingStack> bindingStacksServer = new HashMap<Object, BindingStack>(); | ||
|
||
public void registerRenderers () | ||
{ } | ||
|
||
public void postInit () { | ||
registerBindingStack(ModBlocks.gardenProxy); | ||
} | ||
|
||
protected abstract Map<Object, BindingStack> getBindingRegistry (); | ||
|
||
public void registerBindingStack (Object object) { | ||
getBindingRegistry().put(object, new BindingStack()); | ||
bindingStacksClient.put(object, new BindingStack()); | ||
bindingStacksServer.put(object, new BindingStack()); | ||
} | ||
|
||
public BindingStack getClientBindingStack (Object object) { | ||
return bindingStacksClient.get(object); | ||
} | ||
|
||
public BindingStack getBindingStack (Object object) { | ||
return getBindingRegistry().get(object); | ||
public BindingStack getBindingStack (World world, Object object) { | ||
if (world.isRemote) | ||
return bindingStacksClient.get(object); | ||
else | ||
return bindingStacksServer.get(object); | ||
} | ||
} | ||
|
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
11 changes: 0 additions & 11 deletions
11
src/com/jaquadro/minecraft/gardencore/core/ServerProxy.java
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,16 +1,5 @@ | ||
package com.jaquadro.minecraft.gardencore.core; | ||
|
||
import com.jaquadro.minecraft.gardencore.util.BindingStack; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class ServerProxy extends CommonProxy | ||
{ | ||
private Map<Object, BindingStack> bindingStacks = new HashMap<Object, BindingStack>(); | ||
|
||
@Override | ||
protected Map<Object, BindingStack> getBindingRegistry () { | ||
return bindingStacks; | ||
} | ||
} |
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
Oops, something went wrong.